Skip to main content

GPU Types

GET /v2/ai/sandbox-gpu-types lists the GPU types the account can rent. Only enabled, qualified types are listed; requesting anything else fails with 422 resources_not_allowed.
The values above illustrate the shape only. Read the actual catalog from the API.

Worked Example

With the B300 entry above, "gpu": {"type": "B300", "count": 8} gives the sandbox: The totals are calculated when the sandbox is created and stored with it. GET /v2/ai/sandboxes/{sandbox_id} returns them as cpu, memory_mib, and disk_gib, and a later change to the catalog doesn’t change an existing sandbox. cpu is a number and can be fractional.

Whole-Node Rental

Each sandbox currently rents a whole GPU node. gpu is required and names a type and a count from its allowed_counts. The CLI takes it as TYPE:COUNT:
  • The sandbox gets every GPU on one node of that type, with that type’s cpu, memory_mib, and disk_gib defaults multiplied by the count. These values appear on the sandbox.
  • No other sandbox shares the node.
  • disk_gib is the size of /data, the sandbox’s own disk, mounted in every sandbox. Writing past its size fails with “no space left on device”, and the sandbox keeps running.
  • Everything written outside /data (the image’s directories, /tmp, caches, package installs) counts against the root filesystem’s separate limit, root_disk_gib. Going past it ends the sandbox with disk_limit_exceeded.
  • Nothing on either survives the sandbox: persist data to Cloud Storage from inside the sandbox.

GPU Limits

Each organization has a limit per GPU type: the most GPUs of that type its sandboxes can hold at once. Every sandbox that hasn’t ended counts, queued and preparing ones included. A create that would take the organization over its limit for the requested type fails at once with 429 quota_exceeded, and the error’s detail names the type, the limit, the GPUs in use, and the GPUs requested. It is never queued. Contact support to raise a limit.

Queueing

When the organization is within its GPU limit but no node of the requested type is free, the sandbox waits in queued. Once a node is found, it can spend time in preparing while its GPUs are prepared. queue_timeout (default 600 seconds, maximum 86,400) covers both: a sandbox still queued or preparing when it passes ends with termination_reason: queue_timeout. Queued and preparing time isn’t billed.

Billing

  • The billing clock starts when the sandbox enters running (started_at) and stops when it is terminated. Time in queued, preparing, scheduled, and starting, including image pulls, is free.
  • A sandbox is billed per node type, per second. The price list is in prices on GET /v2/ai/sandbox-gpu-types.
  • What is billed is the rented node over wall-clock time, not measured utilization.
  • Set timeout or idle_timeout to bound the cost of a sandbox that is left running.