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.
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/sandboxesreturns at once withstate: queued. The sandbox then goes throughpreparing(when its GPUs need preparing),scheduled, andstarting(pulling the image) torunning. When no node is free, it waits in the queue for up toqueue_timeoutseconds. - 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-Keyheader. 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.