Active CPU billing vs Per-second billing

Active CPU billing charges CPU only while code runs. Per-second billing charges CPU and memory while the sandbox runs.

Updated

Active CPU billing

CPU is charged only while your code is using it.

Used by
Bunny Sandbox, Runtime, ix, Oblien Workspace, Fly.io Sprites, Shardflux, DigitalOcean Harness Runtime, Smol Machines, PandaStack Sandbox, Railway Sandboxes, Tensorlake Sandboxes, Cloudflare Sandbox, Amazon Bedrock AgentCore Code Interpreter, Amazon Bedrock AgentCore Runtime, Deno Sandbox, Upstash Box, Vercel Sandbox

Per-second billing

A price for each second of compute time, not for each hour.

Used by
Krova Cloud, Agent37 Cloud, StateSet Sandbox, tama, Buddy Sandboxes, Sailboxes, Northflank Sandboxes, Alibaba Cloud Agent Sandbox, Prime Sandboxes, DigitalOcean MicroVMs, Isorun, AgentBay, BytePlus AI Cloud Native Sandbox, Novita Sandbox, CreateOS Sandbox, Collimate, EQVPS Sandboxes, Prized Sandboxes, Vers, Freestyle VMs, Hyperbrowser Sandboxes, Dedalus Machines, boxd, microsandbox cloud, BoxLite Cloud, Daytona, Declaw, E2B, HopX, InstaVM, Leap0, Runta, Superserve, Tenki Sandbox, Thunder Sandboxes, Solari, LangSmith Sandboxes, Beam Sandboxes, Islo Machines, Modal, OpenPond Sandboxes, Gemini Enterprise Agent Platform Code Execution, Azure Container Apps Sandboxes, Microsoft Foundry hosted agents, AWS Lambda MicroVMs, Runloop, CoreWeave Sandboxes, Depot Sandboxes, Agent Sandbox, Brimble Sandboxes, Qiniu Cloud Sandbox, Watasu

How they differ

4 fields, side by side

Active CPU billing
Per-second billing
CPU while code waits
Active CPU billing: Not billed
Per-second billing: Billed
Memory
Active CPU billing: Billed for the whole run
Per-second billing: Billed for the whole run
What counts as CPU time
Active CPU billing: Only time the code uses the CPU
Per-second billing: All time the sandbox runs
Cost of a waiting agent
Active CPU billing: Memory only
Per-second billing: CPU and memory

When the difference matters

An agent often waits for a model reply, a download or a test server. Under active CPU billing, those waits cost memory only. Under per-second billing, they also cost CPU time. The gap is largest for code that waits most of the time.

Which one to look for

Check the billing model on the provider's pricing page. Check whether CPU is billed only while code runs. Compare the memory charge, because both models bill memory for the whole run.

Providers using each

List price per vCPU-hour

Related terms

All glossary terms

Related