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

# List GPU types

> Lists the GPU types you can rent: each with its GPU count per node, the CPU, memory and disk a sandbox of that type gets per GPU, and prices.

A sandbox's `gpu.count` must be one of the type's `allowed_counts`. Currently each type lists exactly one, its node's GPU count, so a sandbox rents the whole node; read the count from this list rather than hard-coding it. A sandbox's CPU, memory and disk are the type's per-GPU defaults × its GPU count. Requesting a type or count that isn't listed fails with `resources_not_allowed`.



## OpenAPI

````yaml /openapi/source/external/sandboxes/sandboxes.json get /ai/sandbox-gpu-types
openapi: 3.1.0
info:
  title: Telnyx API
  version: 1.0.0
  description: >-
    Run a container image of your choice on a whole GPU node, each sandbox in
    its own virtual machine, for seconds or indefinitely. Run commands inside
    it, move files in and out, stream its logs, read its metrics, and pay per
    second while it runs.


    ## Preview


    GPU Sandboxes is in an invite-only preview. `GET /ai/sandbox-access` tells
    whether it is enabled for your organization.


    ## Authentication


    All endpoints require a Telnyx API key sent as a Bearer token in the
    `Authorization` header.


    ## Retries


    Every side-effecting endpoint accepts an `Idempotency-Key` header. Send one
    on `POST /ai/sandboxes` and `POST /ai/sandboxes/{sandbox_id}/execs`, so a
    retry after a lost response doesn't start (and bill) a second workload.


    ## Errors


    Errors use the standard Telnyx error body. General errors carry their
    5-digit `code` (e.g. `10009`); Sandboxes-specific errors are identified by
    their name in `title` (e.g. `quota_exceeded`).
  contact:
    email: support@telnyx.com
  x-latency-category: responsive
  x-endpoint-cost: light
servers:
  - url: https://api.telnyx.com/v2
    description: Telnyx API v2
security:
  - bearerAuth: []
tags:
  - name: Sandboxes
    description: >-
      Create, find, wait for, tag and terminate sandboxes, and close the main
      process's stdin.
  - name: Sandbox execs
    description: Run commands in a running sandbox.
  - name: Sandbox files
    description: Read, write, list and delete files inside a running sandbox.
  - name: Sandbox logs
    description: The main process's stored and live output.
  - name: Sandbox metrics
    description: CPU, network, memory, disk and GPU usage.
  - name: Sandbox GPU types
    description: What you can rent, and at what price.
  - name: Sandbox access
    description: Whether Sandboxes is enabled for your organization.
paths:
  /ai/sandbox-gpu-types:
    get:
      tags:
        - Sandbox GPU types
      summary: List GPU types
      description: >-
        Lists the GPU types you can rent: each with its GPU count per node, the
        CPU, memory and disk a sandbox of that type gets per GPU, and prices.


        A sandbox's `gpu.count` must be one of the type's `allowed_counts`.
        Currently each type lists exactly one, its node's GPU count, so a
        sandbox rents the whole node; read the count from this list rather than
        hard-coding it. A sandbox's CPU, memory and disk are the type's per-GPU
        defaults × its GPU count. Requesting a type or count that isn't listed
        fails with `resources_not_allowed`.
      operationId: ListSandboxGpuTypes
      parameters:
        - description: Page number (1-based).
          in: query
          name: page[number]
          required: false
          schema:
            default: 1
            minimum: 1
            type: integer
        - description: Number of items per page (max 100).
          in: query
          name: page[size]
          required: false
          schema:
            default: 20
            maximum: 100
            minimum: 1
            type: integer
      responses:
        '200':
          description: The GPU types you can rent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GpuTypeListRespData'
              example:
                data:
                  - type: B300
                    allowed_counts:
                      - 8
                    cpu:
                      default: 24
                      max: 24
                    memory_mib:
                      default: 262144
                      max: 262144
                    disk_gib:
                      default: 1024
                      max: 1024
                    root_disk_gib: 200
                    prices:
                      - sku: sandbox.node.b300
                        unit: node-second
                        amount: '0.0123'
                        currency: USD
                meta:
                  page_number: 1
                  page_size: 20
                  total_pages: 1
                  total_results: 1
        '400':
          description: >-
            Validation error: the standard Telnyx validation errors (codes such
            as 10004 missing parameter, 10015 bad request, 10025 invalid string
            length, 10026 invalid type).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelnyxErrors'
        '401':
          description: Missing or invalid API key (code 10009).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelnyxErrors'
              example:
                errors:
                  - code: '10009'
                    title: Authentication failed
                    detail: Could not find any usable credentials in the request.
        '403':
          description: >-
            - `sandboxes_require_verification`: your account isn't fully
            verified.

            - `sandboxes_not_whitelisted`: Sandboxes isn't enabled for your
            organization (invite-only preview); `GET /ai/sandbox-access` tells
            whether it is.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelnyxErrors'
              example:
                errors:
                  - title: sandboxes_not_whitelisted
                    detail: The organization isn't whitelisted.
        '503':
          description: A dependency can't answer right now (code 10037); retry later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelnyxErrors'
              example:
                errors:
                  - code: '10037'
                    title: Service unavailable
                    detail: A dependency can't answer right now; retry later.
components:
  schemas:
    GpuTypeListRespData:
      properties:
        data:
          items:
            $ref: '#/components/schemas/GpuType'
          type: array
        meta:
          $ref: '#/components/schemas/Meta'
      required:
        - data
        - meta
      type: object
    TelnyxErrors:
      description: The standard Telnyx error body.
      properties:
        errors:
          description: One or more errors.
          items:
            $ref: '#/components/schemas/TelnyxError'
          type: array
      required:
        - errors
      type: object
    GpuType:
      description: >-
        A GPU type you can rent; only types you can rent now are listed.
        Currently a sandbox of this type gets a whole node.
      properties:
        allowed_counts:
          description: >-
            The GPU counts that can be requested as `gpu.count`. Currently each
            type lists exactly one, its node's GPU count, so a sandbox rents the
            whole node. Read `gpu.count` from this list rather than hard-coding
            it.
          items:
            type: integer
          type: array
        cpu:
          $ref: '#/components/schemas/FloatRange'
          description: >-
            CPU cores per GPU: a sandbox of this type gets `default` × its GPU
            count.
        disk_gib:
          $ref: '#/components/schemas/IntRange'
          description: >-
            Size in GiB of `/data`, the sandbox's own disk, per GPU: a sandbox
            of this type gets `default` × its GPU count.
        root_disk_gib:
          description: >-
            Limit in GiB of the root filesystem: the image plus everything
            written outside `/data`. It's for the whole sandbox, whatever its
            GPU count. Going past it ends the sandbox with
            `disk_limit_exceeded`.
          type: integer
        memory_mib:
          $ref: '#/components/schemas/IntRange'
          description: >-
            Memory in MiB per GPU: a sandbox of this type gets `default` × its
            GPU count.
        prices:
          description: Prices, billed per second while running; `null` until published.
          items:
            $ref: '#/components/schemas/Price'
          type:
            - array
            - 'null'
        type:
          description: GPU type, e.g. `B300`. Pass it as `gpu.type`.
          type: string
      required:
        - type
        - allowed_counts
        - cpu
        - memory_mib
        - disk_gib
        - root_disk_gib
        - prices
      type: object
    Meta:
      description: >-
        Pagination metadata for page-number lists (`page[number]` /
        `page[size]`).
      properties:
        page_number:
          description: The page returned (1-based).
          type: integer
        page_size:
          description: Items per page.
          type: integer
        total_pages:
          description: Number of pages.
          type: integer
        total_results:
          description: Number of items across all pages.
          type: integer
      required:
        - page_number
        - page_size
        - total_pages
        - total_results
      type: object
    TelnyxError:
      description: One error in the standard Telnyx error body.
      properties:
        code:
          description: >-
            Telnyx error code: a 5-digit string for general errors, e.g.
            `10009`. Sandboxes-specific errors are identified by their name in
            `title`.
          type: string
        detail:
          description: Human-readable explanation.
          type:
            - string
            - 'null'
        meta:
          description: Extra information.
          anyOf:
            - $ref: '#/components/schemas/TelnyxErrorMeta'
            - type: 'null'
        source:
          description: Where the error is.
          anyOf:
            - $ref: '#/components/schemas/TelnyxErrorSource'
            - type: 'null'
        title:
          description: >-
            Short, constant summary of the error. For Sandboxes-specific errors,
            the error's name, e.g. `quota_exceeded`.
          type: string
      required:
        - title
      type: object
    FloatRange:
      description: A fractional resource per GPU.
      properties:
        default:
          description: >-
            Per GPU: what a sandbox of this type gets, multiplied by its GPU
            count.
          type: number
        max:
          description: Equal to `default`.
          type: number
      required:
        - default
        - max
      type: object
    IntRange:
      description: A whole-number resource per GPU.
      properties:
        default:
          description: >-
            Per GPU: what a sandbox of this type gets, multiplied by its GPU
            count.
          type: integer
        max:
          description: Equal to `default`.
          type: integer
      required:
        - default
        - max
      type: object
    Price:
      description: One billed unit.
      properties:
        amount:
          description: Price per unit, as a decimal string.
          type: string
        currency:
          description: ISO 4217 currency code, e.g. `USD`.
          type: string
        sku:
          description: Billing SKU, e.g. `sandbox.node.b300`.
          type: string
        unit:
          description: Billing unit, e.g. `node-second`.
          type: string
      required:
        - sku
        - unit
        - amount
        - currency
      type: object
    TelnyxErrorMeta:
      description: Extra error information.
      properties:
        url:
          default: null
          description: Documentation page for the error code.
          type:
            - string
            - 'null'
      type: object
    TelnyxErrorSource:
      description: Where in the request the error was found.
      properties:
        parameter:
          default: null
          description: Name of the offending parameter.
          type:
            - string
            - 'null'
        pointer:
          default: null
          description: JSON pointer into the request body, e.g. `/timeout`.
          type:
            - string
            - 'null'
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````