See current rates. New accounts default to Performance, and workloads opt into Shared or Spot; omitting the tier keeps an existing account’s default. When Performance capacity is full, Performance workloads may run on Shared hosts, still with no CPU sharing. GPU workloads and private pools keep their own pricing and placement.
Tiered VMs and VM-backed sandboxes require at least 1 vCPU / 1 GiB. Ordinary containers support fractional resources.
Requires
beam-client >= 0.2.236 or @beamcloud/beam-js >= 1.1.7.
Choosing Compute Capacity
For GPU workloads, see GPU Acceleration for serverless availability and Compute Pools for reserved GPU hardware.
Configuring a CPU Tier
Functions, Endpoints, and Deployments
Passcpu_tier in Python decorators, cpuTier in JavaScript, or --cpu-tier in CLI deployments:
Virtual Machines
- Python:
VM("devbox", cpu_tier="shared", cpu=4, memory=8192).create() - JavaScript:
VM.create({ name: "devbox", cpuTier: "shared", cpu: 4, memory: 8192 })
beam vm update devbox --cpu-tier performance, vm.update(cpu_tier="performance"), or vm.update({ cpuTier: "performance" })). The new tier applies from the next start at its current rates, while past usage keeps its original prices. Forks inherit the tier and start at current rates. See VM Configuration.
Sandboxes
- Python:
Sandbox(cpu_tier="shared", cpu=2, memory="2Gi") - JavaScript:
new Sandbox({ name: "dev", cpuTier: "shared", cpu: 2, memory: "2Gi" })
Spot Interruption Behavior
Spot work waits for spare capacity instead of adding machines and may be interrupted with 30 seconds’ notice:- Functions and sandboxes: Fail if no spare capacity frees up within 20 minutes. Spot functions retry interruptions within their configured retry limit. Spot sandboxes terminate when reclaimed; persistent mounts survive, while process state and temporary files do not.
- Deployments and HTTP endpoints: Keep trying while they have requests, queued tasks, or
min_containers, and replace interrupted containers the same way. Interrupted HTTP requests fail; Beam does not transparently replay them, so set application timeouts and retries for your requests. - Virtual machines: Receive a 30-second graceful shutdown window on preemption. The disk and URLs remain, while memory is lost. Start a preempted VM explicitly with
beam vm start <name>; incoming traffic does not restart it. Check VM details for the preemption reason.