Skip to main content
Invite-only preview. GPU Sandboxes is available only to accounts enabled for the preview. Check yours with GET /v2/ai/sandbox-access. Every other GPU Sandboxes endpoint answers 403 sandboxes_not_whitelisted for an account that isn’t enabled.
GPU Sandboxes rent a whole GPU node for a container image of your choice. For CPU-only sandboxes that run agent code, see Agent Sandboxes.
A sandbox runs one container image in its own virtual machine on Telnyx bare-metal hardware. Each sandbox currently rents a whole GPU node: it gets every GPU on the node, and no other sandbox shares it. Its CPU, memory, and disk are listed with the GPU type. A sandbox can run for a few seconds or indefinitely (timeout: null). It is billed per second while running. Use GPU Sandboxes through the Telnyx CLI (telnyx-edge sandbox-gpu) or the REST API under https://api.telnyx.com/v2/ai, with your Telnyx API key. Get Started shows both.

What You Can Do

Key Behavior

  • Asynchronous start. POST /v2/ai/sandboxes returns at once with state: queued. The sandbox then goes through preparing (when its GPUs need preparing), scheduled, and starting (pulling the image) to running. When no node is free, it waits in the queue for up to queue_timeout seconds.
  • Whole-node GPU rental. A sandbox names a GPU type and a count from the type’s allowed_counts. Currently each type lists one count, its node’s GPU count, so the sandbox gets the whole node. Its CPU, memory, and disk come from the type.
  • Processes outlive connections. Execs keep running when a client disconnects. Reconnect from anywhere and replay output from a byte offset.
  • Logs in your own bucket. The main process’s stdout and stderr are stored in a Telnyx Cloud Storage bucket in your account, readable through the API or any S3 tool.
  • Restricted network. A sandbox reaches the public internet only, never Telnyx internal addresses. Outbound access can be limited to a CIDR allowlist or turned off entirely. Sandboxes accept no inbound connections.
  • Retry-safe writes. Every side-effecting endpoint accepts an Idempotency-Key header. A retried create returns the same sandbox instead of starting, and billing, a second one.

Next Steps

Get Started

Create a GPU sandbox, run a command, read a file, and terminate it.

Lifecycle

States, termination reasons, timeouts, and readiness.

GPU Types and Billing

Node types, sizing, GPU limits, queueing, and per-second billing.

Execs

Run commands, wait for exit codes, send signals.