> ## 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.

# Prices: Current

> Search current GPU prices with flexible filtering, pagination, and sorting. Reflects the state at the moment of the call; consumers building reproducible daily snapshots should use /as-of with a date instead.

Returns the raw per-offer GPU price records that are active right now — the live quotes behind the indices, one row per vendor SKU. Narrow the result with any combination of `vendor`, `gpu_model`, `region`, `contract_type`, price / GPU-count / memory bounds, and sort with `sort_by` / `sort_order`.

<Info>
  The interactive playground ("Try it") shows only the **first page** of results — the full result set can run to hundreds of thousands of records. Page through the complete data with `page` / `page_size` (max 1000).
</Info>

## Example

```bash theme={null}
# Cheapest live H100 quotes
curl -H "Authorization: Bearer $TOKEN" \
  "https://data-api.compute-index.com/v1/prices/current?gpu_model=H100&sort_by=price_usd_per_gpu_hour&sort_order=asc"

# AWS or GCP on-demand under $2/GPU-hr
curl -H "Authorization: Bearer $TOKEN" \
  "https://data-api.compute-index.com/v1/prices/current?vendor=aws,gcp&contract_type=ondemand&max_price=2.0"
```


## OpenAPI

````yaml pricing/openapi.json GET /v1/prices/current
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
        - **Transaction Aggregates** — privacy-safe blends of settled GPU transactions
        - **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**: 10 requests/minute, 1,000/day
        - **Pro tier**: 100 requests/minute, 100,000/day
        - **Enterprise**: Custom limits

        Limits are per key, on fixed windows: the per-minute window resets at the top
        of each minute and the daily quota at 00:00 UTC.

        ## 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/prices/current:
    get:
      tags:
        - Prices
      summary: Get current GPU prices
      description: >-
        Search current GPU prices with flexible filtering, pagination, and
        sorting. Reflects the state at the moment of the call; consumers
        building reproducible daily snapshots should use /as-of with a date
        instead.
      operationId: get_current_prices_v1_prices_current_get
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            description: Page number (starts at 1)
            default: 1
            title: Page
          description: Page number (starts at 1)
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 1000
            minimum: 1
            description: Items per page (max 1000)
            default: 100
            title: Page Size
          description: Items per page (max 1000)
        - name: vendor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Filter by vendor (exact match). Supports comma-separated list (max
              20). Example: aws,gcp,azure
            title: Vendor
          description: >-
            Filter by vendor (exact match). Supports comma-separated list (max
            20). Example: aws,gcp,azure
        - name: gpu_model
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Filter by GPU model (partial match). Supports comma-separated list
              (max 5). Example: H100,A100,L40S
            title: Gpu Model
          description: >-
            Filter by GPU model (partial match). Supports comma-separated list
            (max 5). Example: H100,A100,L40S
        - name: gpu_canonical_name
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Filter by canonical GPU name (exact match). Supports
              comma-separated list (max 20). Example: nvidia-h100-sxm-80gb
            title: Gpu Canonical Name
          description: >-
            Filter by canonical GPU name (exact match). Supports comma-separated
            list (max 20). Example: nvidia-h100-sxm-80gb
        - name: region
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Filter by region (exact match). Supports comma-separated list (max
              20). Example: us-east-1,eu-west-1
            title: Region
          description: >-
            Filter by region (exact match). Supports comma-separated list (max
            20). Example: us-east-1,eu-west-1
        - name: contract_type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Filter by contract type. Supports comma-separated list (max 20).
              Example: ondemand,spot,reserved
            title: Contract Type
          description: >-
            Filter by contract type. Supports comma-separated list (max 20).
            Example: ondemand,spot,reserved
        - name: availability
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by availability status
            title: Availability
          description: Filter by availability status
        - name: min_price
          in: query
          required: false
          schema:
            anyOf:
              - type: number
                minimum: 0
              - type: 'null'
            description: Minimum price per GPU hour (USD)
            title: Min Price
          description: Minimum price per GPU hour (USD)
        - name: max_price
          in: query
          required: false
          schema:
            anyOf:
              - type: number
                minimum: 0
              - type: 'null'
            description: Maximum price per GPU hour (USD)
            title: Max Price
          description: Maximum price per GPU hour (USD)
        - name: min_gpu_count
          in: query
          required: false
          schema:
            anyOf:
              - type: number
                minimum: 0
              - type: 'null'
            description: Minimum number of GPUs
            title: Min Gpu Count
          description: Minimum number of GPUs
        - name: max_gpu_count
          in: query
          required: false
          schema:
            anyOf:
              - type: number
                minimum: 0
              - type: 'null'
            description: Maximum number of GPUs
            title: Max Gpu Count
          description: Maximum number of GPUs
        - name: min_memory_gb
          in: query
          required: false
          schema:
            anyOf:
              - type: number
                minimum: 0
              - type: 'null'
            description: Minimum GPU memory in GB
            title: Min Memory Gb
          description: Minimum GPU memory in GB
        - name: max_memory_gb
          in: query
          required: false
          schema:
            anyOf:
              - type: number
                minimum: 0
              - type: 'null'
            description: Maximum GPU memory in GB
            title: Max Memory Gb
          description: Maximum GPU memory in GB
        - name: sort_by
          in: query
          required: false
          schema:
            type: string
            description: Sort field
            default: price_usd_per_gpu_hour
            title: Sort By
          description: Sort field
        - name: sort_order
          in: query
          required: false
          schema:
            type: string
            description: Sort order (asc or desc)
            default: asc
            title: Sort Order
          description: Sort order (asc or desc)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GPUPriceListResponse'
              example:
                data:
                  - availability: available
                    available_at: '2026-02-01T00:00:00+00:00'
                    base_product_key: >-
                      e761854fc8427a37e7306df0f85738d7acf47a6439a7903f66187cb9d7c219c2
                    contract_details: null
                    contract_term: null
                    contract_type: ondemand
                    created_by: ingest_incremental.py
                    extracted_at: '2026-02-11T16:35:04.315378+00:00'
                    form_factor: SXM5
                    gpu_canonical_name: nvidia-h100-sxm5-80gb
                    gpu_count: 8
                    gpu_manufacturer: NVIDIA
                    gpu_memory_gb: 80
                    gpu_model: H100
                    id: 6d250f10-18b9-47f0-aa40-8bc4d3ea004c
                    instance_type: p5.48xlarge
                    instance_variant: shared_capacityblock
                    interconnect: NVLink
                    job_execution_id: null
                    last_seen_at: '2026-07-20T05:06:14.832340+00:00'
                    metadata:
                      comment: aws_p5.48xlarge_us-east-2_ondemand
                    os: SUSE
                    price_hash: >-
                      a0905c33001548b0f2f804eaf9256ecb135e6cfb2d1b185bb68f8fc64785f8a5
                    price_usd_per_gpu_hour: 0.015625
                    product_key: >-
                      8feb9a8e2586b611b80b7e15cc40c16d336f7994fd6f9dddd62979841e371b7c
                    ram_gb: 2048
                    raw_price: 0.125
                    raw_price_unit: USD/hour
                    region: us-east-2
                    source: api
                    source_file: aws_ondemand_pricing_20260211_163110_45821.json
                    updated_by: ingest_incremental.py
                    valid_to: null
                    vcpu: 192
                    vendor: aws
                    vendor_gpu_name: H100
                    vendor_region: US East (Ohio)
                    vendor_sku: WF85GX4SU4SUA4J5
                  - availability: available
                    available_at: '2026-02-01T00:00:00+00:00'
                    base_product_key: >-
                      53a1d394df5334a76fb3f231a4ac2b1f4dd8d4133afd0c0061ca9894de4aaff1
                    contract_details: null
                    contract_term: null
                    contract_type: ondemand
                    created_by: ingest_incremental.py
                    extracted_at: '2026-02-11T16:34:51.056301+00:00'
                    form_factor: SXM5
                    gpu_canonical_name: nvidia-h100-sxm5-80gb
                    gpu_count: 8
                    gpu_manufacturer: NVIDIA
                    gpu_memory_gb: 80
                    gpu_model: H100
                    id: 99366153-43df-4dd8-9aef-bb88ed6f4b4f
                    instance_type: p5.48xlarge
                    instance_variant: shared_capacityblock
                    interconnect: NVLink
                    job_execution_id: null
                    last_seen_at: '2026-07-20T05:06:01.702394+00:00'
                    metadata:
                      comment: aws_p5.48xlarge_ap-northeast-2_ondemand
                    os: SUSE
                    price_hash: >-
                      a0905c33001548b0f2f804eaf9256ecb135e6cfb2d1b185bb68f8fc64785f8a5
                    price_usd_per_gpu_hour: 0.015625
                    product_key: >-
                      f20d48b6bc951f49998ec7e1f51d63531073d9afb4222108665a878488869172
                    ram_gb: 2048
                    raw_price: 0.125
                    raw_price_unit: USD/hour
                    region: ap-northeast-2
                    source: api
                    source_file: aws_ondemand_pricing_20260211_163110_45821.json
                    updated_by: ingest_incremental.py
                    valid_to: null
                    vcpu: 192
                    vendor: aws
                    vendor_gpu_name: H100
                    vendor_region: Asia Pacific (Seoul)
                    vendor_sku: 7VHQERY7PETQGPSY
                filters:
                  availability: null
                  contract_type: ondemand
                  gpu_canonical_name: null
                  gpu_model: H100
                  max_gpu_count: null
                  max_memory_gb: null
                  max_price: null
                  min_gpu_count: null
                  min_memory_gb: null
                  min_price: null
                  region: null
                  sort_by: price_usd_per_gpu_hour
                  sort_order: asc
                  vendor: null
                pagination:
                  has_next: true
                  has_previous: false
                  page: 1
                  page_size: 2
                  total_count: 1924
                  total_pages: 962
        '400':
          description: Bad Request — invalid query parameters
          content:
            application/json:
              schema:
                title: ErrorResponse
                type: object
                properties:
                  detail:
                    type: string
                required:
                  - detail
              examples:
                invalid_sort_order:
                  summary: Invalid sort_order
                  value:
                    detail: sort_order must be "asc" or "desc"
                too_many_values:
                  summary: Too many comma-separated filter values
                  value:
                    detail: gpu_model supports maximum 5 comma-separated values
        '401':
          description: Unauthorized — missing or invalid credentials
          content:
            application/json:
              schema:
                title: ErrorResponse
                type: object
                properties:
                  detail:
                    type: string
                required:
                  - detail
              examples:
                missing_credentials:
                  summary: No credentials supplied
                  value:
                    detail: >-
                      Authentication required. Provide an X-API-Key header or an
                      Authorization: Bearer token.
                invalid_token:
                  summary: Invalid or expired token
                  value:
                    detail: Invalid or expired token
        '403':
          description: Forbidden — key lacks the required scope
          content:
            application/json:
              schema:
                title: ErrorResponse
                type: object
                properties:
                  detail:
                    type: string
                required:
                  - detail
              examples:
                missing_scope:
                  summary: Key lacks the required scope
                  value:
                    detail: >-
                      Access denied. Your API key does not have permission to
                      access this resource.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: >-
            Too Many Requests — limit and reset are returned in X-RateLimit-*
            headers; the limit reflects your key's tier
          content:
            application/json:
              schema:
                title: ErrorResponse
                type: object
                properties:
                  detail:
                    type: string
                required:
                  - detail
              examples:
                minute_limit:
                  summary: Per-minute limit exceeded (figure reflects your key's tier)
                  value:
                    detail: 'Rate limit exceeded: 100 requests per minute'
      security:
        - HTTPBearer: []
components:
  schemas:
    GPUPriceListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/GPUPriceResponse'
          type: array
          title: Data
        pagination:
          additionalProperties: true
          type: object
          title: Pagination
        filters:
          additionalProperties: true
          type: object
          title: Filters
      type: object
      required:
        - data
        - pagination
        - filters
      title: GPUPriceListResponse
      description: Response schema for list of GPU prices with pagination
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    GPUPriceResponse:
      properties:
        id:
          type: string
          title: Id
        product_key:
          type: string
          title: Product Key
        price_hash:
          type: string
          title: Price Hash
        base_product_key:
          type: string
          title: Base Product Key
        extracted_at:
          type: string
          format: date-time
          title: Extracted At
        available_at:
          type: string
          format: date-time
          title: Available At
        valid_to:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Valid To
        last_seen_at:
          type: string
          format: date-time
          title: Last Seen At
        vendor:
          type: string
          title: Vendor
        vendor_sku:
          type: string
          title: Vendor Sku
        vendor_region:
          type: string
          title: Vendor Region
        region:
          type: string
          title: Region
        contract_type:
          type: string
          title: Contract Type
        vendor_gpu_name:
          type: string
          title: Vendor Gpu Name
        gpu_canonical_name:
          type: string
          title: Gpu Canonical Name
        gpu_manufacturer:
          type: string
          title: Gpu Manufacturer
        gpu_model:
          type: string
          title: Gpu Model
        gpu_count:
          anyOf:
            - type: number
            - type: 'null'
          title: Gpu Count
        gpu_memory_gb:
          anyOf:
            - type: number
            - type: 'null'
          title: Gpu Memory Gb
        form_factor:
          anyOf:
            - type: string
            - type: 'null'
          title: Form Factor
        interconnect:
          anyOf:
            - type: string
            - type: 'null'
          title: Interconnect
        instance_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Instance Type
        instance_variant:
          anyOf:
            - type: string
            - type: 'null'
          title: Instance Variant
        vcpu:
          anyOf:
            - type: number
            - type: 'null'
          title: Vcpu
        ram_gb:
          anyOf:
            - type: number
            - type: 'null'
          title: Ram Gb
        os:
          anyOf:
            - type: string
            - type: 'null'
          title: Os
        price_usd_per_gpu_hour:
          type: number
          title: Price Usd Per Gpu Hour
        raw_price:
          type: number
          title: Raw Price
        raw_price_unit:
          type: string
          title: Raw Price Unit
        contract_term:
          anyOf:
            - type: string
            - type: 'null'
          title: Contract Term
        contract_details:
          anyOf:
            - type: string
            - type: 'null'
          title: Contract Details
        availability:
          type: string
          title: Availability
        source:
          type: string
          title: Source
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        updated_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated By
        job_execution_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Job Execution Id
        source_file:
          anyOf:
            - type: string
            - type: 'null'
          title: Source File
      type: object
      required:
        - id
        - product_key
        - price_hash
        - base_product_key
        - extracted_at
        - available_at
        - last_seen_at
        - vendor
        - vendor_sku
        - vendor_region
        - region
        - contract_type
        - vendor_gpu_name
        - gpu_canonical_name
        - gpu_manufacturer
        - gpu_model
        - price_usd_per_gpu_hour
        - raw_price
        - raw_price_unit
        - availability
        - source
      title: GPUPriceResponse
      description: Response schema for a single GPU price record
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````