Cloud GPU price API: cheapest H100, A100 and L4 per GPU-hour on AWS, Azure and Google Cloud
Updated 2026-11-13
Use when an agent must pick the cheapest cloud GPU: H100, H200, A100, L40S, L4 and more, AWS, Azure and Google Cloud, per GPU-hour, on-demand or spot.
POST https://tanod.dev/v1/compute/gpu-prices returns official AWS, Azure and Google Cloud list prices per GPU-hour, cheapest first. Every field is optional, so an empty body returns the 20 cheapest rows. It costs USD 0.002 per call in USDC, with a small free allowance per IP each day. The same data is on the free cheapest cloud GPU page; the call is for an agent that wants it filtered and as JSON. For one chip's price day by day, see POST https://tanod.dev/v1/compute/gpu-index below. For a filtered JSON/CSV export, use POST https://tanod.dev/v1/compute/gpu-price-history.
What you send
chip (any letter case, such as H100 or A100 80GB), min_gpu_mem_gb, min_gpus_per_machine (integer, 1 to 16 GPUs in one cloud machine; excludes unknown machine shapes, including Akash inventory, which is not a machine size), provider (AWS, Azure, Google Cloud or Akash), regions (up to 20, such as us-east-1), pricing (on_demand, spot or any, the default, which ranks by the lower of the two), max_usd_per_gpu_hour and limit (1 to 100, default 20). A bad value is rejected without charge: a payment-bearing retry gets HTTP 422 before payment verification or settlement; an unpaid probe gets HTTP 402 with validation guidance.
Optional rent_vs_buy compares buying GPUs with renting the cheapest matching row. If min_gpus_per_machine is set and rent_vs_buy.gpus is omitted, it compares all GPUs in that machine; an explicit gpus overrides this default. Without the machine filter, the default is one GPU.
curl -s https://tanod.dev/v1/compute/gpu-prices -H "X-Tanod-Free: 1" -H "Content-Type: application/json" -d '{"chip":"H100","pricing":"spot","limit":5}'
What you get
Rows sorted by price, each with chip, gpu_mem_gb, provider, region, sku, gpus, od_per_gpu_h, spot_per_gpu_h, effective (the date of the price), source, price_usd_per_gpu_hour, usd_per_machine_hour and price_kind. On cloud rows, usd_per_machine_hour is the selected per-GPU price times the machine's GPUs, rounded to four decimals. Snapshot per-GPU rates are already rounded to four decimals, so this may differ slightly from the provider's instance price due to rounding. It is null for unknown machine shape, including Akash inventory, which is not a machine size. Akash rows (provider Akash, basis marketplace_bid) add median_usd_per_gpu_hour, min_usd_per_gpu_hour, max_usd_per_gpu_hour, gpus_available, gpus_total and read_at, so the same call answers where a GPU is free right now. Around the rows: generated_at, sources, count_matched and a note. A filter that matches nothing is a normal answer with count_matched 0. count_excluded_unknown_machine_shape counts otherwise-matching priced rows excluded for unknown machine shape when min_gpus_per_machine is set, before the limit; it is zero without the filter. Only rows available from the snapshot and best-effort Akash read are counted.
Where it comes from
The Azure Retail Prices API and the AWS Price List files, divided by the number of GPUs in the instance, saved twice a day. The call reads that saved copy. Akash is the one live read: its public API gives per chip the median, lowest and highest bid in USD per GPU-hour and the GPUs free and in total, kept for about 30 minutes; if that read fails the three clouds still answer and the Akash rows are left out. If the copy is missing or older than 36 hours the answer is a 503 and the call is not charged.
Paying by card instead? The same lookup runs as an Apify actor, Cloud GPU Prices: H100, A100, L4 per GPU-hour (tanod/cloud-gpu-prices), billed through your Apify account at USD 0.003 per answered query.
Instance prices and rent versus buy
For on-demand and spot prices per machine-hour and per GPU-hour, GPU count, memory, documented vCPUs and daily history, compare instances in the H100 price hub or choose from all GPU models. The GPU rent-vs-buy comparison uses this same snapshot for H100, A100 80GB and L4, cites hardware and power assumptions, and shows electricity cost and break-even at several utilisation levels. Supply your own purchase, watts, electricity rate and hours through rent_vs_buy in the API call.
Price history
POST https://tanod.dev/v1/compute/gpu-index with {"chip":"H100"} (optional from and to, YYYY-MM-DD) returns one chip's day-by-day series from the saved copies, starting 13 October 2026: the lowest and the median on-demand list price, the lowest spot price and, where recorded, the Akash median bid and free GPUs. It is a reading of list prices and marketplace bids, not executed trades. USD 0.002 per call, the same free pool.
History export
POST /v1/compute/gpu-price-history costs USD 3 per export, with no free allowance. Optional chip, regions and provider filter the recorded offers. Send both from and to (UTC dates), or omit both for the newest 30 days; an explicit range may span up to 366 days. Choose format json or csv; output url returns a 24-hour download link (base64 returns the file inline). At most 20,000 rows and 8 MB; larger exports return 413 export_too_large without charge. Use the full /mcp server's export_gpu_price_history tool, not the utilities connector.
The response lists available dates, missing days/providers and last update; CSV coverage stays in the response. Dates are never invented: consult the available-date manifest, not assumed daily coverage. Early snapshots lack Akash. Akash rows are chip-level bid summaries, not individual machine offers. No matching rows is not charged; the empty coverage answer is returned inline. CSV formula-like text gets a leading quote.
Limits
- List prices only: no discounts, savings plans or reservations, and no tax, egress or storage.
- Spot prices (Azure and Google Cloud) change often and can be reclaimed at short notice. They are not a price for a job that must finish.
- AWS, Azure and Google Cloud in a fixed set of regions, plus the Akash marketplace. Akash rows are what providers currently bid, not list prices and not executed trades, and they move by the minute. For today's H100 prices with the Akash marketplace alongside, see H100 price per hour.
- Informational only, not a quote or advice.
Ask it in chat without writing code: in claude.ai or Claude Desktop, add https://tanod.dev/mcp/util?via=cloud-gpu-price-api as a custom connector (steps), then ask in plain words, for example "What is the cheapest H100 per GPU-hour on spot right now, and in which region?" The free daily allowance is applied automatically over MCP. Beyond it a call needs an x402 payment, which these clients can make.
Related: cheapest cloud GPU right now, agent API prices by category, all guides. Results are automated.