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

# List available instance types

> Returns instance types with pricing for a compute config. Returns available instance types for provisioning. Results are cached.



## OpenAPI

````yaml /openapi.json get /v1/compute/instance_types
openapi: 3.1.0
info:
  title: CNAP API
  version: 1.0.0
  description: >-
    Public API for managing CNAP workspaces, clusters, templates, products, and
    deployments.


    Authenticate with a Personal Access Token via the `Authorization: Bearer
    cnap_pat_...` header.


    Workspace-scoped endpoints require the `X-Workspace-Id` header.
servers:
  - url: https://api.cnap.tech
    description: Production
security: []
paths:
  /v1/compute/instance_types:
    get:
      tags:
        - Compute
      summary: List available instance types
      description: >-
        Returns instance types with pricing for a compute config. Returns
        available instance types for provisioning. Results are cached.
      parameters:
        - schema:
            type: string
            description: Config name (optional — derived from cluster context when omitted)
          required: false
          description: Config name (optional — derived from cluster context when omitted)
          name: config
          in: query
      responses:
        '200':
          description: Available instance types
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/InstanceType'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Config not found (NodeClassNotReady)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComputeError'
      security:
        - BearerAuth: []
components:
  schemas:
    InstanceType:
      type: object
      properties:
        name:
          type: string
          example: cpx31
        arch:
          type: string
          example: amd64
        cpu:
          type: number
          example: 4
        memory_mib:
          type: number
          example: 8192
        storage_mib:
          type: number
          example: 163840
        price_per_hour:
          type: number
          example: 0.0208
        available:
          type: boolean
          example: true
        zone:
          type: string
          example: fsn1
        capacity_type:
          type: string
          example: on-demand
      required:
        - name
        - arch
        - cpu
        - memory_mib
        - storage_mib
        - price_per_hour
        - available
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: not_found
            message:
              type: string
              example: Resource not found
            param:
              type: string
              description: The request field that caused the error
              example: name
            suggestion:
              type: string
              example: Run `cnap clusters list` to see available clusters
            details: {}
          required:
            - code
            - message
      required:
        - error
    ComputeError:
      type: object
      properties:
        type:
          type: string
          example: InsufficientCapacity
          description: >-
            Machine-readable error type (e.g., InsufficientCapacity,
            NodeClaimNotFound)
        message:
          type: string
          example: cpx31 out of stock in fsn1
      required:
        - type
        - message
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at
        https://cnap.tech/account/tokens

````