Vercel Sandbox Pricing Explained: Real-World Costs
Eli Mernit12 min read
Vercel Sandbox bills two main meters: $0.128 per vCPU-hour of Active CPU, charged only while code is using the CPU, and $0.0212 per GB-hour of provisioned memory, charged for every minute the sandbox runs. Memory is fixed at 2 GB per vCPU, so a 2 vCPU, 4 GB sandbox costs between $0.085 and $0.34 an hour in the default region. The Hobby plan includes a free monthly quota, and Pro usage draws on a $20 monthly credit.
Vercel Sandbox pricing at a glance
A Vercel Sandbox bill has up to eight meters. Active CPU and provisioned memory make up most of it. The rest are sandbox creations, data transfer, snapshot storage and three drive meters. Hobby gets a fixed quota of each at no charge, and Pro and Enterprise pay the rates below.
| Meter | Hobby, included | Pro rate |
|---|---|---|
| Active CPU | 5 hours a month | $0.128 per vCPU-hour |
| Provisioned memory | 420 GB-hours a month | $0.0212 per GB-hour |
| Sandbox creations | 5,000 a month | $0.60 per million |
| Data transfer | 20 GB a month | Covered by Flat Rate CDN |
| Snapshot storage | 15 GB, lifetime | $0.08 per GB-month |
| Drive storage | 15 GB, lifetime | $0.05 per GB-month |
| Drive reads | 30 GB a month | $0.0015 per GB |
| Drive writes | 30 GB a month | $0.004 per GB |
The CPU, memory, data transfer and drive rates are for iad1 in Washington, D.C., the default region. Vercel lists the same rates for Enterprise as for Pro, plus $0.15 per GB of data transfer in iad1. Enterprise contracts have custom pricing and quotas.
Active CPU adds up CPU time across the sandbox's vCPUs. Time spent waiting on a network request, a database query or a model call doesn't count. Provisioned memory is the sandbox's memory size multiplied by the time it runs, whether or not anything is executing.
Vercel Sandbox cost per hour by sandbox size
The hourly cost depends on the vCPU count, because each vCPU comes with 2 GB of memory and the two can't be sized separately. A sandbox has 1 vCPU or an even number from 2 up to the plan's maximum, and the default is 2. The table multiplies each size by the iad1 rates.
| Size | Idle hour: memory only | Hour at 10% CPU | Hour with every vCPU busy |
|---|---|---|---|
| 1 vCPU, 2 GB | $0.0424 | $0.0552 | $0.1704 |
| 2 vCPU, 4 GB | $0.0848 | $0.1104 | $0.3408 |
| 4 vCPU, 8 GB | $0.1696 | $0.2208 | $0.6816 |
| 8 vCPU, 16 GB | $0.3392 | $0.4416 | $1.3632 |
For the 2 vCPU row, memory is 4 GB × $0.0212, or $0.0848. Ten percent CPU use is 0.2 vCPU-hours × $0.128, which adds $0.0256, and two busy vCPUs add $0.256. The 10% column matches the assumption in Vercel's own pricing examples, which treat a sandbox as mostly waiting on LLM calls.
Two details change the figure for short and for memory-heavy jobs:
- Memory bills in 1-minute minimum increments. A command that finishes in five seconds still pays for a minute of memory: $0.0007 on a 1 vCPU sandbox and $0.0014 on a 2 vCPU one.
- More memory means more vCPUs. A job that needs 16 GB has to take the 8 vCPU size. If the CPU stays quiet, the extra vCPUs cost nothing, but the memory is billed at $0.3392 an hour.
Vercel Sandbox pricing by region
Vercel Sandbox runs in 19 regions, and the CPU and memory rates in 16 of them are higher than in iad1. The docs show one region at a time behind a selector. The table lists them all, with the cost of one hour of a 2 vCPU, 4 GB sandbox at 10% CPU use in each.
| Region | Active CPU per vCPU-hour | Memory per GB-hour | 2 vCPU, 4 GB hour at 10% CPU |
|---|---|---|---|
| Washington, D.C. (iad1), Cleveland (cle1), Portland (pdx1) | $0.128 | $0.0212 | $0.1104 |
| Mumbai (bom1) | $0.140 | $0.0232 | $0.1208 |
| Montreal (yul1) | $0.147 | $0.0243 | $0.1266 |
| Singapore (sin1), Stockholm (arn1) | $0.160 | $0.0266 | $0.1384 |
| Dublin (dub1) | $0.168 | $0.0278 | $0.1448 |
| Seoul (icn1) | $0.169 | $0.0280 | $0.1458 |
| Hong Kong (hkg1) | $0.176 | $0.0292 | $0.1520 |
| London (lhr1), Paris (cdg1) | $0.177 | $0.0292 | $0.1522 |
| San Francisco (sfo1) | $0.177 | $0.0294 | $0.1530 |
| Sydney (syd1) | $0.180 | $0.0298 | $0.1552 |
| Frankfurt (fra1) | $0.184 | $0.0304 | $0.1584 |
| Cape Town (cpt1) | $0.200 | $0.0332 | $0.1728 |
| Tokyo (hnd1), Osaka (kix1) | $0.202 | $0.0334 | $0.1740 |
| São Paulo (gru1) | $0.221 | $0.0366 | $0.1906 |
San Francisco is 38% above iad1 on CPU, and São Paulo is 73% above. Sandbox creations and snapshot storage cost the same in every region. A sandbox uses the project's default region unless the create call names another, so a project set to a region near its database pays that region's rate for every sandbox.
Vercel Sandbox free tier: what the Hobby plan includes
The Hobby plan includes Sandbox at no charge, inside a monthly quota: 5 hours of Active CPU, 420 GB-hours of memory, 5,000 creations and 20 GB of data transfer. Past the quota Vercel doesn't bill anything. Sandbox creation is paused until your quota resets (Vercel's docs give both the next billing cycle and 30 days after first use).
In sandbox-hours, the quota works out like this for the default 2 vCPU, 4 GB size:
- Memory: 420 GB-hours is 105 hours of a 2 vCPU sandbox, or 210 hours of a 1 vCPU one.
- CPU: 5 Active CPU hours is 25 sandbox-hours at 10% CPU use (0.2 vCPU-hours each), or 2.5 hours with both vCPUs busy. For most workloads the CPU quota runs out before the memory quota.
Hobby also has tighter limits. A session lasts 45 minutes at most, 10 sandboxes can run at once, and a sandbox tops out at 4 vCPUs and 8 GB. New sandboxes can be allocated at 20 to 40 vCPUs a minute.
How the Pro plan's $20 credit applies to Sandbox
All Sandbox usage on Pro is charged against the plan's $20 monthly credit first, and anything past it is billed at the list rates. The Pro platform fee is $20 a month and includes one deploying seat and that $20 credit, so a one-seat team with no other Vercel usage pays the larger of $20 and its Sandbox usage.
At iad1 rates, $20 covers about 181 hours of a 2 vCPU, 4 GB sandbox at 10% CPU, or about 59 hours with both vCPUs busy. The credit is shared with every other metered Vercel resource on the team, such as functions and builds, and it expires at the end of the month. Extra deploying seats are $20 a month each.
Does Vercel charge for an idle sandbox?
Yes, for memory. A running sandbox bills its provisioned memory for every minute it is up, and only the CPU charge falls close to zero. Vercel's docs give the example of an idle 2 vCPU sandbox averaging 1% CPU: that hour is 0.02 vCPU-hours and 4 GB-hours, or about $0.087. A stopped sandbox bills no CPU or memory.
What decides the idle bill is how soon the sandbox stops:
- The default timeout is 5 minutes. You set a longer one with the
timeoutoption and push it out withsandbox.extendTimeout(), up to the plan's session limit. - Calling `sandbox.stop()` ends the charges right away. Without it, the sandbox bills memory until the timeout expires.
- A stop saves files, not processes. Sandboxes are persistent by default: when a session stops, Vercel snapshots the filesystem, and the next SDK call on that sandbox starts a new session from the snapshot. A dev server or a REPL has to be started again.
- Each automatic snapshot uses Snapshot Storage. Pass
persistent: falsefor one-off sandboxes, and they stop without a snapshot.
So a coding agent that waits an hour between instructions has two options. Keeping the session open holds its processes and costs about $0.087 for that hour on a 2 vCPU sandbox. Stopping costs nothing for compute and restores the files on the next call, without the running processes. Our guide to what a microVM is explains why a pause that keeps memory is a different feature from a filesystem snapshot.
Snapshot, drive and data transfer charges
These meters are small for most workloads, but the first one grows without any action on your part if the defaults are left alone.
Snapshot storage is $0.08 per GB-month in every region. A persistent sandbox creates a snapshot every time a session stops, and a snapshot expires 30 days after its last use by default. A retention policy that keeps only the most recent snapshot holds the charge flat: a workspace with one 5 GB snapshot is $0.40 a month. Snapshots outlive the sandbox they came from, so deleting a sandbox doesn't stop their storage charge.
Drives are persistent volumes that a sandbox mounts. Storage is $0.05 per GB-month in iad1, measured on the data stored and not on the size provisioned. Reads are $0.0015 per GB and writes are $0.004 per GB.
Sandbox creations are $0.60 per million calls to Sandbox.create(). Ten thousand creations cost less than one cent.
Data transfer counts what a sandbox sends to the internet plus all traffic to and from its exposed ports. Downloads into the sandbox, such as packages and Git clones, are free. On Pro it is covered by Flat Rate CDN, whose included tier has 1 TB of data transfer a month. On Enterprise the rate is $0.15 per GB in iad1 and most regions, and it rises to $0.35 in Seoul.
What Vercel Sandbox costs per month: three worked bills
These three bills use Pro rates in iad1 and show usage before the $20 credit. With one seat and no other Vercel usage, each total is also the month's bill, because each is above $20.
| Workload | Inputs | Monthly usage |
|---|---|---|
| Code interpreter | 10,000 non-persistent sessions of 2 minutes at 1 vCPU, 2 GB, CPU busy a quarter of the time: 333 sandbox-hours | $24.81 |
| Coding agent workspace | One 2 vCPU, 4 GB sandbox for 176 hours, averaging 0.3 vCPU, with one 5 GB snapshot kept | $22.08 |
| Always-on small agent | One 1 vCPU, 2 GB sandbox for 720 hours, averaging 0.025 vCPU | $32.83 |
Code interpreter: $24.81. Memory is 666.7 GB-hours at $0.0212: $14.13. CPU is 83.3 vCPU-hours at $0.128: $10.67. The 10,000 creations add $0.006.
Coding agent workspace: $22.08. 176 hours is 8 hours a day for 22 working days. Memory is 704 GB-hours: $14.92. CPU is 52.8 vCPU-hours: $6.76. The snapshot is 5 GB × $0.08: $0.40. If the workspace needs 8 GB of memory, it has to be a 4 vCPU sandbox. Memory doubles to $29.85 and the total becomes $37.01, assuming the same work still uses 52.8 Active CPU hours across the extra cores.
Always-on small agent: $32.83. Memory is 1,440 GB-hours: $30.53. CPU is 18 vCPU-hours: $2.30. Memory is 93% of this bill. A session ends after 24 hours on Pro, so the agent restarts from its filesystem snapshot at least once a day, and the snapshot adds $0.08 per GB kept.
Vercel Sandbox vs E2B, Daytona, Cloudflare and Beam pricing
The sandbox platforms split into two billing models. Vercel and Cloudflare charge CPU for active use and memory for the provisioned size. E2B, Daytona and Beam charge the provisioned vCPUs and memory for every second the sandbox runs. The table prices one hour of a 2 vCPU sandbox on each, at two levels of CPU use.
| Platform | Shape and inputs | Hour at 10% CPU | Hour with both vCPUs busy |
|---|---|---|---|
| Vercel Sandbox, iad1 | 2 vCPU, 4 GB: 4 × $0.0212 plus $0.128 per vCPU-hour used | $0.1104 | $0.3408 |
| Cloudflare standard-3 | 2 vCPU, 8 GiB, 16 GB disk: $0.076 for memory and disk plus $0.072 per vCPU-hour used | $0.0904 | $0.2200 |
| E2B | 2 vCPU, 4 GiB: 2 × $0.0504 + 4 × $0.0162, disk included | $0.1656 | $0.1656 |
| Daytona | 2 vCPU, 4 GiB, disk within the 5 GiB free allowance: 2 × $0.0504 + 4 × $0.0162 | $0.1656 | $0.1656 |
| Beam, Shared tier (opt-in) | 2 vCPU, 4 GiB: 2 × $0.011 + 4 × $0.0055 | $0.0440 | $0.0440 |
| Beam, Performance tier (default) | 2 vCPU, 4 GiB: 2 × $0.05 + 4 × $0.01 | $0.1400 | $0.1400 |
Cloudflare has no predefined 2 vCPU, 4 GiB instance, so its row is the 2 vCPU type, which has 8 GiB. On the 4 GB shape, the Vercel figure meets E2B's and Daytona's at about 32% CPU use and Beam's Performance tier at about 22%.
The plan fees differ as well. Vercel Hobby is free inside its quota, and Pro is $20 a month per deploying seat with a $20 credit. E2B's Hobby plan is $0 with a one-time $100 credit, 10 concurrent sandboxes and a 1-hour limit on continuous runtime, and Pro is $150 a month plus usage. Daytona has no plan fee and includes $200 of free compute. Cloudflare needs the $5 Workers Paid plan. Beam's Developer plan is $20 a month with $20 of credits and allows 30 concurrent vCPUs.
Our E2B pricing, Daytona pricing and Cloudflare Sandbox pricing guides break those bills down the same way.
Vercel Sandbox limits: session length, size and GPUs
The limits that most often shape a Vercel Sandbox bill are the session cap and the maximum size. A sandbox is sized in vCPUs and memory only, and Vercel lists no GPU sizes.
| Limit | Hobby | Pro | Enterprise |
|---|---|---|---|
| Maximum session | 45 minutes | 24 hours | 24 hours |
| Maximum size | 4 vCPU, 8 GB | 8 vCPU, 16 GB | 32 vCPU, 64 GB |
| Concurrent sandboxes | 10 | 10,000 | 10,000 |
| vCPU allocation rate | 20 to 40 a minute | 150 a minute, rising to 5,000 | 150 a minute, rising to 5,000 |
| Ephemeral disk | 64 GB | 64 GB | 64 GB |
The session cap applies to one boot of the microVM. A persistent sandbox can be resumed again and again, and each resume starts a new session from the saved files.
Three requirements point to another platform: a GPU, memory sized apart from CPU, or a pause that keeps running processes. A Beam sandbox sets cpu and memory separately and is created from Python or TypeScript with one SDK call. It runs in a container by default, and use_vm=True runs a CPU sandbox in a microVM instead. This one runs on the Shared CPU tier, installs a package into the image, runs code and saves the filesystem as a reusable image:
from beam import Image, Sandbox
sb = Sandbox(
cpu=2,
memory="4Gi",
cpu_tier="shared",
image=Image(python_version="python3.11").add_python_packages(["pandas"]),
keep_warm_seconds=1800,
).create()
try:
result = sb.process.run_code("import pandas as pd; print(pd.__version__)")
print(result.stdout)
# Save the filesystem; Image.from_id(image_id) boots new sandboxes from it
image_id = sb.create_image_from_filesystem()
finally:
sb.terminate()keep_warm_seconds is the sandbox's lifetime, not an idle timer, so 1800 ends it after 30 minutes unless you call update_ttl(), and -1 removes the limit. The cpu_tier argument needs beam-client 0.2.236 or later.
Beam bills the sandbox's provisioned size by the millisecond while it runs, with no egress fees. This 2 vCPU, 4 GiB sandbox is $0.044 an hour on the Shared tier ($0.011 per vCPU-hour plus $0.0055 per GiB-hour, for sandboxes up to 8 vCPUs and 16 GiB) and $0.14 an hour on the Performance tier ($0.05 plus $0.01), which is the default for new accounts. To use a GPU, pass gpu with a model name such as "RTX4090". A GPU sandbox bills the GPU rate plus GPU-attached CPU and memory: $0.69 an hour for an RTX 4090, $0.18972 per vCPU-hour and $0.0198 per GiB-hour. With 2 vCPUs and 4 GiB that is $0.69 + $0.3794 + $0.0792, or about $1.15 an hour.
For an agent that has to keep its processes between turns, a Beam VM is a named Linux machine with a persistent root disk. Pausing it keeps memory and running processes and stops compute billing. VMs are CPU-only. Our Vercel Sandbox alternatives guide compares more platforms on isolation and state, and AI agent hosting covers VMs, sandboxes and serverless for agents.
How to choose a sandbox by billing model
Start from how the sandbox spends its time, then check the limits.
- Your app already deploys on Vercel and sessions mostly wait on a model: Vercel Sandbox. Active CPU billing fits, auth comes from the project's OIDC token, and files persist by default.
- You want a free quota for a personal project: Vercel Hobby, inside its 45-minute sessions and 5 Active CPU hours.
- CPU is busy for most of the session, as in builds, test suites and data jobs: compare the busy column. Flat per-second billing is $0.044 to $0.1656 an hour for 2 vCPUs and 4 GiB in the table above, against $0.3408 on Vercel.
- The job needs a lot of memory and little CPU: a platform that sizes them separately, such as E2B, Daytona or Beam.
- The agent keeps state in running processes between turns: a platform that pauses with memory, such as E2B or a Beam VM. A Vercel stop restores files only.
- The code needs a GPU: a Beam sandbox or a Daytona GPU sandbox.
- Your users are far from the eastern United States: check the regional table first, since the rate depends on where the sandbox runs.
FAQ
How much does Vercel Sandbox cost?
On Pro in the default iad1 region, Vercel Sandbox costs $0.128 per vCPU-hour of Active CPU and $0.0212 per GB-hour of provisioned memory, with 2 GB of memory per vCPU. A 2 vCPU, 4 GB sandbox is $0.1104 an hour at 10% CPU use and $0.3408 with both vCPUs busy. Usage is charged against Pro's $20 monthly credit first.
Does Vercel Sandbox have a free tier?
Yes. The Hobby plan includes 5 hours of Active CPU, 420 GB-hours of memory, 5,000 sandbox creations and 20 GB of data transfer a month. Sessions are limited to 45 minutes and 10 concurrent sandboxes, and sandbox creation pauses when the quota is used up.
Does Vercel charge for an idle sandbox?
Yes, for memory. A running sandbox bills provisioned memory for the whole time it is up, in 1-minute minimum increments, and Active CPU only while code uses the CPU. An idle 2 vCPU sandbox is about $0.087 an hour in iad1, and a stopped sandbox bills only for its stored snapshots.
Is Vercel Sandbox cheaper than E2B?
It depends on CPU use. A 2 vCPU, 4 GB Vercel sandbox in iad1 is $0.1104 an hour at 10% CPU and $0.3408 with both vCPUs busy. An E2B sandbox of that size is $0.1656 an hour at any CPU level, and the two figures meet at about 32% CPU use. E2B's Pro plan is $150 a month against $20 for Vercel Pro.
How long can a Vercel sandbox run?
One session runs for up to 45 minutes on Hobby and 24 hours on Pro and Enterprise, and the default timeout is 5 minutes. A persistent sandbox can be resumed after a session ends, which starts a new session from the saved filesystem without the processes that were running.
Does Vercel Sandbox support GPUs?
Vercel lists no GPU sizes for Sandbox. A sandbox is sized in vCPUs with 2 GB of memory each, up to 8 vCPUs on Pro and 32 on Enterprise. For GPU code execution, use a sandbox platform that attaches GPUs, such as Beam or Daytona.
Does Vercel Sandbox pricing change by region?
Yes. Active CPU runs from $0.128 per vCPU-hour in iad1, Cleveland and Portland to $0.221 in São Paulo, and memory from $0.0212 to $0.0366 per GB-hour. Sandbox creations and snapshot storage cost the same in every region.
Run sandboxes with flat per-second pricing
A Beam sandbox bills one rate for the size you set, by the millisecond, with CPU and memory sized separately, GPUs available and no egress fees. Create a Beam account and run the snippet above to price your own workload. Current rates are on the Beam pricing page.
