# List GPU Instances

`GET /v1/instances`

List available GPU instances and pricing from the pipeline API.

- Base URL: `https://api.qualia.dev`
- Authentication: an API key in the `X-API-Key` header, or `Authorization: Bearer …`

## Responses

- `200` List of available GPU instances with pricing: `application/json` `InstancesListResponse`
- `401` Invalid or missing API key: `application/json` `ErrorResponse`

## Schemas

```yaml
InstancesListResponse:
  properties:
    data:
      items:
        $ref: "#/components/schemas/Instance"
      type: array
      description: List of available instances
  type: object
  required:
    - data
  title: InstancesListResponse
  description: Response containing available GPU instances.
Instance:
  properties:
    id:
      type: string
      description: Instance type ID (use this when creating finetune jobs)
    name:
      type: string
      description: Instance flavor name
    description:
      type: string
      description: Instance description
    gpu_description:
      type: string
      description: Clean GPU description
    credits_per_hour:
      type: integer
      description: Cost in credits per hour
    driver:
      type: string
      description: Compute driver that serves this type (for compute hints)
      default: ""
    specs:
      $ref: "#/components/schemas/InstanceSpecs"
      description: Hardware specifications
    regions:
      items:
        $ref: "#/components/schemas/InstanceRegion"
      type: array
      description: Available regions
    region_count:
      type: integer
      description: Number of available regions
      default: 1
  type: object
  required:
    - id
    - name
    - description
    - gpu_description
    - credits_per_hour
    - specs
  title: Instance
  description: A single GPU instance type.
InstanceSpecs:
  properties:
    vcpus:
      type: integer
      description: Number of virtual CPUs
    memory_gib:
      type: integer
      description: Memory in GiB
    storage_gib:
      type: integer
      description: Storage in GiB (0 when unknown)
      default: 0
    gpu_count:
      type: integer
      description: Number of GPUs
    gpu_type:
      type: string
      description: GPU model name
    gpu_vram_gib:
      type: integer
      description: GPU VRAM per device in GiB (0 when unknown)
      default: 0
  type: object
  required:
    - vcpus
    - memory_gib
    - gpu_count
    - gpu_type
  title: InstanceSpecs
  description: Hardware specifications for an instance.
InstanceRegion:
  properties:
    name:
      type: string
      description: Region identifier
    description:
      type: string
      description: Human-readable region name
  type: object
  required:
    - name
    - description
  title: InstanceRegion
  description: A region where an instance is available.
ErrorResponse:
  properties:
    detail:
      type: string
      description: Error message describing what went wrong
  type: object
  required:
    - detail
  title: ErrorResponse
  description: Standard error response.
```
