Modal Sandboxes

Modal's Sandboxes API runs untrusted code in gVisor-isolated containers on Modal's serverless cloud, with GPU access. For Python-first teams that already use Modal or need GPUs next to agent code.

vCPU
$0.071/vCPU-hr (source: Modal Pricing)
Memory
$0.024/GiB-hr (source: Modal Pricing)
2 vCPU + 4 GiB
$0.238/hr 1.44x E2B
Isolation
gVisor
Pause / resume
Not published
Max session
5 min default, up to 24 h

Visit Modal Sandboxes Compare side by side Request a quote Checked

Priced next to Modal Sandboxes

All providers against E2B
Provider2 vCPU + 4 GiB$/hrvs E2BRelative costIsolation
Google Agent Platform Code Execution $0.206 (source: Google Cloud Agent Platform pricing) 1.24x —
Amazon Bedrock AgentCore Code Interpreter $0.217 (source: Amazon Bedrock AgentCore Pricing) 1.31x microVM
Modal Sandboxes $0.238 (source: Modal Pricing) 1.44x gVisor
Runloop $0.317 (source: Runloop Pricing) 1.91x VM
Vercel Sandbox $0.341 (source: Vercel Sandbox pricing and quotas) 2.06x Firecracker microVM

Every field

Source on each value
Isolation Isolation technology the vendor states for each sandbox.
gVisor (source: Modal Sandboxes guide)
Other isolation options Alternative runtimes the vendor offers besides the default (e.g. VM runtime, gVisor for GPU).
VM runtime with its own Linux kernel (no GPU) (source: Modal Sandboxes guide)
Deployment Managed cloud service, self-hosted software, or both.
managed (source: Modal Pricing)
Billing basis What the meter counts: wall-clock allocated resources, active CPU only, requests/plan quota, session-hours, or free software.
wall clock (source: Modal Pricing)
vCPU price $/vCPU-hr Published on-demand CPU rate normalised to USD per vCPU-hour (per-second rates multiplied by 3,600; per-core rates divided by vCPUs per core where the vendor defines it). Lowest public tier, default region.
$0.071 (source: Modal Pricing)
Memory price $/GiB-hr Published memory rate normalised to USD per GiB-hour (GB treated as GiB where the vendor does not distinguish). 0 means the vendor states memory is free.
$0.024 (source: Modal Pricing)
Sandbox from $/sandbox-hr Smallest published per-sandbox hourly price, where the vendor publishes one.
Not published
Paid plan from $/mo Cheapest paid platform plan fee (before usage).
$250.00 (source: Modal Pricing)
Free tier A free plan, free monthly allowance or sign-up credit exists.
Yes (source: Modal Pricing)
Free tier detail What the free tier or credit includes, as published.
Starter: $0 plan with $30/month free compute credits. (source: Modal Pricing)
Cold start ms Vendor-published create/boot time in milliseconds. Only filled when the vendor publishes a number; see startup_claim for context (percentile, conditions).
Not published
Resume time ms Vendor-published resume-from-pause/standby/snapshot time in milliseconds.
Not published
Startup claim The vendor's startup/resume wording with conditions, quoted or closely paraphrased.
Not published
Max session length Longest single sandbox session by plan, as published.
5 min default, up to 24 h (source: Modal Sandboxes guide)
Persistence / snapshots Filesystem state can be kept between runs (snapshots, persistent disks, volumes).
Yes (source: Modal Pricing)
Pause / resume A sandbox can be paused, suspended, hibernated or put in standby and resumed later.
Not published
Memory state kept Pause/hibernate preserves running memory state, not only the filesystem.
Not published
Fork / branch A running or snapshotted sandbox can be cloned into new sandboxes.
Not published
GPU GPU sandboxes are offered.
Yes (source: Modal Sandboxes guide)
Self-host Can run on your own hardware or cluster (open source or licensed).
Not published
BYOC / VPC Vendor-managed deployment inside your own cloud account.
Not published
Open source Core sandbox runtime is published under an open-source licence.
Not published
Licence Open-source licence of the runtime, if any.
Not published
SDKs / languages Official SDK languages (or supported execution languages where noted).
Python, JavaScript, Go (source: Modal Pricing)
Regions Published regions or region count.
Not published
Max vCPU per sandbox vCPU Largest published vCPU count per sandbox on any self-serve or enterprise plan.
Not published
Max memory per sandbox GiB Largest published memory per sandbox.
Not published
Concurrency Published concurrent sandbox limits by plan.
Not published
SOC 2 SOC 2 status as stated by the vendor.
Type II (source: Modal security and privacy)
HIPAA Vendor offers HIPAA-compliant usage/BAA (on any plan).
Yes (source: Modal Pricing)
Pricing from
$0.071 per vCPU-hour
Pricing as published
Sandboxes billed at non-preemptible rates (3x list): $0.00003942 per physical core-second (1 core = 2 vCPU) and $0.00000667/GiB-s; normalised to $0.071/vCPU-h and $0.024/GiB-h. HIPAA on Enterprise only. Pricing checked 2026-11-09.

Sources

  1. Modal Pricing accessed 2026-11-09
  2. Modal Sandboxes guide accessed 2026-11-09
  3. Modal security and privacy accessed 2026-11-09

Get pricing from Modal Sandboxes and two close alternatives

Tell us what you need once. We send it to matching providers and they reply to you directly.

Quote requests open shortly. To get in first, email hello@sandboxproviders.com.