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

# Contract Types

> Get list of all contract types with availability and pricing statistics

## Example

List every contract type with availability and pricing statistics:

```bash theme={null}
curl -H "Authorization: Bearer $TOKEN" \
  "https://data-api.compute-index.com/v1/contract-types"
```


## OpenAPI

````yaml pricing/openapi.json GET /v1/contract-types
openapi: 3.1.0
info:
  title: GPU Pricing API
  description: |2-

        **GPU Pricing API** provides real-time and historical pricing data
        for GPU compute across 50+ cloud providers and GPU marketplaces.

        ## Features
        - Search current prices across vendors
        - Historical price trends
        - GPU transaction data
        - **Informational Price Index** — EWMA-smoothed composite indices by GPU family, region, and contract type
        - **Transaction Price Index** — smoothed indices derived from verified GPU transactions
        - **Custom Index** — EWMA-smoothed H100 sub-model indices by region, contract type, and vendor category
        - Global region coverage (US, EU, APAC)
        - GPU availability tracking
        - Scope-based API key access control

        ## Authentication
        Send your token as a Bearer token in the `Authorization` header on every request:
        ```
        Authorization: Bearer YOUR_TOKEN
        ```
        Example:
        ```bash
        curl -H "Authorization: Bearer $TOKEN" "https://data-api.compute-index.com/v1/vendors"
        ```
        Tokens are issued by Compute Index (david@compute-index.com); long-lived, treat as secrets.

        > The legacy `X-API-Key` header is deprecated — use the `Authorization: Bearer` header above.

        ## Rate Limits
        - **Free tier**: 100 requests/minute, 10,000/day
        - **Pro tier**: 1,000 requests/minute, 100,000/day
        - **Enterprise**: Custom limits

        ## Data Coverage
        - 50+ vendors (AWS, Azure, GCP, Oracle, CoreWeave, Lambda, RunPod, Vast.AI, FluidStack, Vultr, etc.)
        - 30M+ historical pricing records
        - Updated multiple times daily

        ## Support
        - Support: david@compute-index.com
        
  contact:
    name: API Support
    email: david@compute-index.com
  license:
    name: Commercial License
    url: https://compute-desk.com/license
  version: 1.0.0
servers:
  - url: https://data-api.compute-index.com
security: []
paths:
  /v1/contract-types:
    get:
      tags:
        - Metadata
      summary: List all contract types
      description: Get list of all contract types with availability and pricing statistics
      operationId: list_contract_types_v1_contract_types_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractTypeListResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    ContractTypeListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/ContractTypeResponse'
          type: array
          title: Data
        total_count:
          type: integer
          title: Total Count
      type: object
      required:
        - data
        - total_count
      title: ContractTypeListResponse
      description: Response schema for list of contract types
    ContractTypeResponse:
      properties:
        contract_type:
          type: string
          title: Contract Type
        total_record_count:
          type: integer
          title: Total Record Count
          description: Total records (current + historical)
        open_record_count:
          type: integer
          title: Open Record Count
          description: Current price records (valid_to IS NULL)
        vendor_count:
          type: integer
          title: Vendor Count
        gpu_model_count:
          type: integer
          title: Gpu Model Count
        region_count:
          type: integer
          title: Region Count
        vendors:
          items:
            type: string
          type: array
          title: Vendors
          description: List of vendors offering this contract type
        gpu_models:
          items:
            type: string
          type: array
          title: Gpu Models
          description: List of GPU models available for this contract type
        contract_terms:
          items:
            type: string
          type: array
          title: Contract Terms
          description: List of contract terms/lengths (non-null only)
      type: object
      required:
        - contract_type
        - total_record_count
        - open_record_count
        - vendor_count
        - gpu_model_count
        - region_count
        - vendors
        - gpu_models
        - contract_terms
      title: ContractTypeResponse
      description: Response schema for contract type metadata
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````