Skip to main content
The unmodified E2B SDK works too: see switch from E2B.

Lifecycle

Move the end of a running sandbox with POST /sandboxes/{id}/timeout. A paused sandbox reports in endAt when it was paused: no timeout runs while it is paused.

Templates

A template is the prepared VM a sandbox starts from, and base is the general Linux image. See Templates for the list, the sizes and how to make your own start state.

Region and class

A create may name region and class; both are optional and the E2B SDKs send neither. region is ash (US East, Ashburn; the default). ams is accepted and served in Ashburn for now; see Regions. An unknown region answers 422 unknown_region, and a region with no machine taking VMs answers 503 region_unavailable, so a sandbox never starts somewhere other than asked. class picks the CPU class. burstable runs on shared vCPUs that burst to full speed. guaranteed gives the sandbox whole cores of its own, for paid accounts; when no node has the cores free right now, the create answers 503 guaranteed_capacity with a Retry-After, and the sandbox always runs in the class you asked for. Without class, a paid sandbox of 4 vCPUs or more takes whole cores whenever a node has them. The create answer and GET /sandboxes/{id} report the class the sandbox runs in as "class": "guaranteed" or "class": "burstable".

Metadata

metadata on create is a map of strings kept with the sandbox and returned by GET /sandboxes/{id} and the list.

Ports and preview URLs

A port opened inside a sandbox gets a preview URL; see Ports and preview URLs.

Network

A sandbox reaches the internet by default. Close it, allow named destinations and change the rules of a running sandbox; see Network and egress.

Limits

Plans and included hours are on Plans and billing; every limit with its answer is on limits.