# Cloud GPU Price Comparison API

> Cloud GPU Price Comparison API is a paid API for AI agents from fx-reference-rates.regnotes.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-30).

Returns ranked, filtered list of GPU/AI accelerator instance hourly prices across AWS and Azure, sorted by USD per GPU-hour.

## Facts

- Endpoint: GET https://fx-reference-rates.regnotes.workers.dev/v1/ai/gpu-prices?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cloud-gpu-price-comparison-api-0d4b9da1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Kqv_zEQVHRqt323FwzzOY

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cloud-gpu-price-comparison-api-0d4b9da1
```

Example prompt: What are the cheapest on-demand H100 GPU instances right now across AWS and Azure, ranked by price per GPU-hour? Show me the top 10 results.

## When to prefer this

Use this endpoint when you need to compare GPU instance prices across AWS and Azure in a single ranked call, especially when filtering by specific GPU model, region, or pricing type (on-demand vs spot). Prefer this over manual scraping or cloud-specific pricing pages when you need a normalized, cross-cloud, per-GPU-hour cost comparison updated daily.

## Known failure modes

- No results returned if GPU model string does not match known values (e.g. misspelled model name)
- Invalid 'cloud' or 'pricing' enum values return a validation error
- 'limit' parameter must be a 1-3 digit integer; other formats rejected
- Region strings that don't match any indexed region return empty offers list
- Data may be up to 24 hours stale since prices are refreshed daily

## How this service works

Cloud GPU price comparison: hourly list prices of GPU / AI accelerator instances (H100, H200, A100, L40S, L4, A10G, T4, B200, MI300X, Trainium, Inferentia ...) on AWS and Azure in US, EU and Asia regions, on-demand and Azure Spot, ranked by USD per GPU-hour. Filter by gpu model, cloud, region, pricing. Official provider price APIs, refreshed daily.

## Output

A JSON object with an 'offers' array where each entry contains cloud provider, region, pricing type, instance name, GPU count, GPU model, total USD per hour, and USD per GPU-hour — the list is pre-sorted by USD per GPU-hour ascending. Also includes a 'matched' integer indicating total results found.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "gpu": {
       "type": "string"
      },
      "cloud": {
       "enum": [
        "aws",
        "azure"
       ],
       "type": "string"
      },
      "limit": {
       "type": "string",
       "pattern": "^\\d{1,3}$"
      },
      "region": {
       "type": "string"
      },
      "pricing": {
       "enum": [
        "on_demand",
        "spot"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "offers": [
   {
    "cloud": "aws",
    "region": "us-east-1",
    "pricing": "on_demand",
    "instance": "p5.48xlarge",
    "gpu_count": 8,
    "gpu_model": "NVIDIA H100",
    "usd_per_hour": 55.04,
    "usd_per_gpu_hour": 6.88
   }
  ],
  "matched": 12
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cloud-gpu-price-comparison-api-0d4b9da1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fx-reference-rates.regnotes.workers.dev](https://www.zero.xyz/host/fx-reference-rates.regnotes.workers.dev/llms.txt)
