What is memory-only billing?

Memory-only billing charges one rate per GiB of memory for each unit of time. The CPU power comes with the memory, in proportion to it, so no separate CPU rate applies.

Updated

How AWS Lambda does it

AWS Lambda is a well-known example of this model. It bills the duration of each run in GB-seconds, based on the memory set for the function. Lambda allocates CPU power in proportion to the memory you configure. CPU has no separate charge. At 1,769 MB, a function has the equivalent of one vCPU.

What it means for a sandbox

A memory-only price ties CPU to memory. If you need more CPU, you must also choose more memory and pay for it. The charge depends on the memory and the run time, not on how much CPU the code uses. A vCPU-hour price works differently, because it prices CPU on its own. Compare two prices only when you know how much CPU each memory size gives.

What to check

  • The unit: per GiB-second, per GiB-hour, or per GB-hour. See GiB-hour.
  • How much CPU each memory size gives.
  • Whether the price includes disk and network traffic.

Providers with memory-only billing

  • Apify AI Code SandboxApify Actor that runs AI-generated code in an isolated container, with MCP, REST API and shell access.
    Isolation
    Container
    vCPU / hr
    Included
    Free tier
    $5 / mo
  • BlaxelSandboxes that pause when idle and resume with state.
    Isolation
    MicroVM
    vCPU / hr
    Included
    Free tier
    Credit of up to $200
  • OpenAI Code InterpreterSandboxed containers where OpenAI models write and run Python code.
    Isolation
    Container
    vCPU / hr
    Not listed
    Free tier
    Not listed
  • Sandbox0Long-running agent sandboxes with durable storage.
    Isolation
    gVisor
    vCPU / hr
    Included
    Free tier
    $5 credit
  • SF Compute Autoresearch SandboxesIsolated microVMs for AI agents that fork from a saved snapshot, part of SF Compute Autoresearch.
    Isolation
    MicroVM
    vCPU / hr
    Included
    Free tier
    None

Related terms

All glossary terms

Related