Compute Comparison Prices API

The Prices API from Compute Comparison — 4 operation(s) for prices.

Operations 4

GET /prices Live GPU pricing #
GET /prices/gpus Available GPU models #
GET /prices/providers Available GPU providers #
GET /prices/history GPU price history #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/compute-comparison:compute-comparison-prices-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

compute-comparison-prices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Compute Comparison — GPU Pricing Prices API
  description: 'Real-time GPU cloud compute pricing across 100+ providers. Updated every 15 minutes. Requires an API key passed as the X-API-Key header (or api_key query param). A rate-limited public demo key is available: cc_live_demo0000000000000000000000 (500 req/15 min, read-only).'
  version: '1'
  contact:
    url: https://computecomparison.com/api-docs
  license:
    name: See Terms of Use
    url: https://computecomparison.com/terms
servers:
- url: https://computecomparison.com/api/v1
  description: Production
security:
- ApiKeyHeader: []
tags:
- name: Prices
paths:
  /prices:
    get:
      operationId: listGpuPrices
      summary: Live GPU pricing
      description: Returns live on-demand and spot GPU prices across all providers. Paginated, filterable, and sortable.
      parameters:
      - name: provider
        in: query
        schema:
          type: string
        description: Filter by provider name (case-insensitive, partial match)
      - name: gpu
        in: query
        schema:
          type: string
        description: Filter by GPU model (case-insensitive, word-boundary match)
      - name: region
        in: query
        schema:
          type: string
        description: Filter by region (case-insensitive, partial match)
      - name: max_price
        in: query
        schema:
          type: number
        description: Only return listings at or below this $/hr (on-demand)
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - price
          - provider
          - gpu
          - region
        description: 'Sort field (default: price)'
      - name: order
        in: query
        schema:
          type: string
          enum:
          - asc
          - desc
        description: 'Sort direction (default: asc)'
      - name: page
        in: query
        schema:
          type: integer
          minimum: 1
        description: 'Page number, 1-indexed (default: 1)'
      - name: per_page
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 200
        description: 'Results per page (default: 50, max: 200)'
      responses:
        '200':
          description: Paginated GPU price list
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ProviderPriceResult'
                  meta:
                    $ref: '#/components/schemas/PriceMeta'
      tags:
      - Prices
  /prices/gpus:
    get:
      operationId: listGpuModels
      summary: Available GPU models
      description: Returns the list of GPU models that have at least one active pricing entry.
      responses:
        '200':
          description: Array of GPU model names
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
      tags:
      - Prices
  /prices/providers:
    get:
      operationId: listGpuProviders
      summary: Available GPU providers
      description: Returns the list of cloud providers with active GPU pricing.
      responses:
        '200':
          description: Array of provider names
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
      tags:
      - Prices
  /prices/history:
    get:
      operationId: getGpuPriceHistory
      summary: GPU price history
      description: Returns historical price snapshots for a given GPU and provider.
      parameters:
      - name: gpu
        in: query
        required: true
        schema:
          type: string
      - name: provider
        in: query
        required: false
        schema:
          type: string
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 30
      responses:
        '200':
          description: Array of price history snapshots
          content:
            application/json:
              schema:
                type: array
      tags:
      - Prices
components:
  schemas:
    ProviderPriceResult:
      type: object
      properties:
        provider:
          type: string
        gpu:
          type: string
        region:
          type: string
        price_hr:
          type: number
          description: On-demand price in USD/hr
        spot_hr:
          type:
          - number
          - 'null'
          description: Spot/preemptible price in USD/hr
        vram_gb:
          type: integer
        gpu_count:
          type: integer
        updated_at:
          type: string
          format: date-time
    PriceMeta:
      type: object
      properties:
        total:
          type: integer
        page:
          type: integer
        per_page:
          type: integer
        total_pages:
          type: integer
        fetchedAt:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key