What is per-second billing?

Per-second billing charges for CPU and memory for each second that a sandbox runs. The charge continues while the code waits, so an idle sandbox still costs money.

Updated

How the math works

One hour has 3,600 seconds. Multiply the rate per second by 3,600 to get the rate per hour. Do this for each rate on the price list, for example the CPU rate and the memory rate.

Why idle time costs money

An agent often waits, for example for a model to answer. Per-second billing counts those seconds, the same as busy seconds. Active CPU billing does not count CPU seconds spent waiting. A shorter idle timeout stops an unused sandbox sooner, so it runs fewer seconds.

Minimum charges

Some clouds set a minimum charge per instance, so a short run can cost more than its seconds. Amazon EC2 bills Linux instances per second, with a minimum of 60 seconds for each instance. Check the minimum on each provider's pricing page.

What to check

  • The unit on the price list: per second, per minute, or per hour.
  • Whether CPU and memory have separate rates.
  • The minimum charge for each run.
  • Whether the rate still applies while the sandbox is idle.

Providers with per-second billing

6 of 52
  • Krova CloudFirecracker microVMs with root access, billed by the minute.
    Isolation
    Firecracker
    vCPU / hr
    $0.001
    Free tier
    $5 credit
  • Agent37 CloudPersistent Linux sandboxes and VMs for code and agents.
    Isolation
    gVisor
    vCPU / hr
    $0.001
    Free tier
    $5 credit
  • StateSet SandboxSandboxes for AI agents, one Kubernetes pod each, with gVisor isolation.
    Isolation
    gVisor
    vCPU / hr
    $0.006
    Free tier
    $25 credit
  • tamaLinux VMs with GPUs, billed by the second.
    Isolation
    Full VM
    vCPU / hr
    $0.012
    Free tier
    Not listed
  • Buddy SandboxesPersistent Linux VMs that AI agents create and control through an API, SDK, CLI or MCP.
    Isolation
    Full VM
    vCPU / hr
    $0.014
    Free tier
    $1 / mo
  • SailboxesPersistent Linux VMs for long-horizon AI agents.
    Isolation
    Full VM
    vCPU / hr
    $0.015
    Free tier
    $5 credit each month

Per-second billing compared

Related terms

All glossary terms

Related