> ## Documentation Index
> Fetch the complete documentation index at: https://docs.styne.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Limits

> The limits the API enforces, with the answer you get when you hit each one.

The numbers of each plan are on [Plans and billing](https://docs.styne.ai/billing.md). This page lists what the API enforces and the answer for each.

| Limit | Value | When exceeded |
| - | - | - |
| Sandbox timeout (`timeout` on create, resume, fork and `/timeout`) | 1 to 86,400 seconds on every plan and trial (`caps.max_sandbox_lifetime_seconds` in `GET /v1/run/usage` says 86,400); **300 seconds when a create leaves it out**, as the E2B SDKs send. An account with no plan and no trial is held to 3,600 seconds | `400 invalid_argument` outside the range |
| VMs and browsers running at once | Trial 3 VMs and 2 browsers; Starter 200 and 25; Pro 1,000 and 100; Scale 2,000 and 300. Only a running sandbox counts: a sleeping one (`standby`, paused in memory or `archived`) costs nothing and takes no running slot, a fork child counts, and a killed or sleeping sandbox frees its slot at once. `GET /v1/run/usage` shows the count as `concurrent_sandboxes` | `429 limit_concurrent` with `Retry-After` |
| Sandboxes resident on the nodes (running, or paused in memory) | Trial: what its plan runs at once, 5 sandboxes (3 VMs and 2 browsers), 20 vCPU and 40 GiB at the plan's 4 vCPU size; plan 100, or the entitlement's `target` when that is higher. A kill, a delete or a browser removal frees the room at once, so a client that deletes may create again in the next call. `caps.max_resident_sandboxes` and `resident_sandboxes` in `GET /v1/run/usage` are the ceiling and the use | `429 resident_limit`, `limit: resident_sandboxes` |
| New VMs or browsers started | Trial 150 a day; Starter 30 a minute, 300 an hour, 1,000 a day; Pro 60 a minute, 1,000 an hour, 5,000 a day; Scale 100 a minute, 2,000 an hour, 10,000 a day | `429 limit_rate_minute`, `limit_rate_hour` or `limit_rate_day` with `Retry-After` |
| Included hours | Trial 20 VM hours and 20 browser hours; Starter 700 and 350; Pro 4,000 and 2,500; Scale 14,000 and 7,500. Only running time counts | the trial answers `422 limit_hours`; a plan goes on at the hourly overage rate |
| Capacity above your plan's `target` | capacity is added in steps | `429 capacity_provisioning` while a step is pending, `429 quota_exceeded` above the target |
| Sandboxes held in any state (running, or paused at any tier) | trial 10; plan 1,000, or ten times the entitlement's `target` when that is higher | `429 storage_limit`, `limit: held_sandboxes` |
| Saved snapshots, checkpoints included | trial 10; Starter 20; Pro 100; Scale 300 | `429 storage_limit`, `limit: snapshots` |
| Volumes | trial 3; plan 300 | `429 storage_limit`, `limit: volumes` |
| GiB provisioned over all volumes | trial 10 GiB; plan 1,000 GiB | `429 storage_limit`, `limit: volume_gib` |
| Size of the saved snapshots (their `sizeBytes`) | trial 20 GiB; plan 1,000 GiB. A new snapshot is refused once the account's snapshots hold that much | `429 storage_limit`, `limit: snapshot_gib` |
| Exec output | streamed, no cap | |
| MCP command and file output | cut at 64 KiB | the text ends at the cut; see [MCP](https://docs.styne.ai/mcp.md) |
| Files: results of search, find and replace | 1,000 by default, 10,000 at most; `truncated: true` says there was more | |
| Files: signed URL lifetime | 1 to 86,400 seconds, 300 by default | `400 invalid_argument` |
| Files: replace, one file | UTF-8 text up to 8 MiB | the file is listed with an `error` and left alone |

`GET /browsers/concurrency` shows the running browser count as `active` and the ceiling as `limit`, which is `null` when the account has none.

## Search, fetch and crawl

| Limit | Value | When exceeded |
| - | - | - |
| Requests per minute, per account | 600; 1,200 once the account has added credit; plans have their own | `429` with `Retry-After` |
| Requests in flight, per account | 10; 20 once the account has added credit; plans have their own | `429` with `Retry-After` |
| Results per search | 1 to 20 | `400` |
| URLs per fetch | 1 to 100 | `400` |
| Pages per crawl job | 1,000 without a plan; 2,000 Builder; 5,000 Startup; 10,000 Scale | the job ends at the limit |
| Crawl depth and run time | 10 hops, 6 hours | the job ends |

The details are on [Search](https://docs.styne.ai/search.md), [Fetch](https://docs.styne.ai/fetch.md) and [Crawl](https://docs.styne.ai/crawl.md).

## When you hit a limit

A refusal never deletes a sleeping sandbox. `message` names the way up; delete a sandbox to make room under a storage limit. The `limit_*` refusals carry `Retry-After`; `422 limit_hours` ends only when you upgrade.

Every refusal and its answer is listed on [errors](https://docs.styne.ai/errors.md).

## Sandbox sizes

Pick a size with `"size"` on create (`small`, `default`, `large`, `xlarge`; the E2B SDKs: `template="large"`). A create that
names no template and no size gets `default`; one that names only `cpuCount` or `memoryMB` gets the smallest size that has
them. The disk is the sandbox's root filesystem, its own and empty of anything another sandbox wrote.

| Size | vCPU | Memory | Disk |
| - | - | - | - |
| `small` | 2 | 4 GiB | 51 GiB |
| `default` | 4 | 8 GiB | 51 GiB |
| `large` | 8 | 16 GiB | 111 GiB |
| `xlarge` | 16 | 32 GiB | 251 GiB |

A sandbox takes the size of its template; your own templates keep the size they were built with. Asking a template for
more than it has (`cpuCount`, `memoryMB` beside `templateID`) answers `400 invalid_argument` with the template's size instead
of serving a smaller sandbox.

A browser template, where one is listed, is for [browsers](https://docs.styne.ai/browsers.md), not for sandboxes.

## Disk written per node

A sandbox disk is sparse: a 20 GiB or 51 GiB disk takes host space only for what the sandbox writes. To keep one account
from filling a node, a node refuses a new sandbox, fork or resume of an account whose running sandboxes on that node
have already written **1000 GiB** to their disks together (the same figure as the largest stored ceilings of a paid
account). The answer is `429 storage_limit` with `limit: "written_gib"`, `used` and `maximum` in GiB. Another node may
still take the sandbox. A disk keeps what was written until its sandbox is deleted, so free room by deleting sandboxes
you no longer need; ordinary use never gets near the figure (a sandbox cannot write more than its disk size).

## Shared CPU: burst credits

Where a node runs burst credits, a sandbox on the shared
class works like an AWS T3 or a Fly shared vCPU:

* It may use **16 % of each vCPU** without limit (its baseline; 12 % for a 1 vCPU size and 23 % for 16 vCPUs) and earns
  credit for every second it stays under it.
* It may run at full speed on all its vCPUs while it has credit. Every new sandbox starts with **10 minutes of full
  speed**, so a sandbox that lives shorter is never held, however many an account creates. Only an account that keeps
  more than 16 % of all its vCPUs on a node busy over the last hour (a sandbox that spent its 10 minutes at full
  speed on 4 vCPUs is about that much) starts its new sandboxes there with less until the hour has passed: no full
  speed at all, or the launch floor where the node sets one (for example 1 minute, never more than the 10 minutes, so
  a short benchmark, test run or build step still runs at full speed).
* Once the credit is spent, the sandbox is **held to its baseline** (`cpu.max`), never stopped or refused. Full speed
  returns once it has saved 30 seconds of full speed again. Credit saves up to 24 hours of baseline and is kept for 24
  hours across a pause.
* `GET /sandboxes/{id}/metrics` shows the state of every sample: `cpuBaselinePct`, `cpuBurstSecondsLeft` and
  `cpuAtBaseline`. The dashboard shows it on the sandbox page.
* A sandbox of a free account has no burst credit: it is held to a flat ceiling of 25 % of its vCPUs, the `caps.cpu_cap_pct`
  of `GET /v1/run/usage`.
* A guaranteed sandbox (the dedicated class, when it is offered) has no baseline and is never held.

## Rate limits

The API itself applies no per-key request rate limit. A burst that the nodes cannot take answers `503 capacity` or
`429 capacity_provisioning` with a `Retry-After`; see [errors](https://docs.styne.ai/errors.md).

## Read your own numbers

`GET /v1/run/usage` returns the grant, what is used and remaining, the caps and the number of concurrent sandboxes of the
account; see [Plans and billing](https://docs.styne.ai/billing.md#read-your-usage).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.