Use this data
Everything the index knows is one GET away, free under CC BY 4.0: 1057 offers (one host serving one model), 694 with a price, 654 of those confirmed by a second source. Same data as the pages, regenerated with them.
The dataset: /api/all.json
One JSON file, all tracked offers: prices in USD per million tokens (input, output, cached input), context window and max output as each host actually serves them, license tier, freshness timestamps and a per-price confidence flag (corroborated, single-source, tier-mismatch, diverges: see methodology).
curl -s https://apipriceindex.com/api/all.json | jq '.models[] | select(.id == "groq:gpt-oss-20b")'Rebuilt whenever the data changes (checked every hour); prices are re-read daily, each with its own verified_at. Current build: 2026-12-06T06:15:05Z. One third-party score is included, the Epoch Capabilities Index (field intelligence), under CC BY 4.0 with its credit to Epoch AI; other benchmark scores stay on the pages, with their source and licence.
Deals: /api/deals.json
Every live deal the Deals page shows: LLMs free to call right now, discounts announced on the hosts' pages, free credits and free tiers — each with its end date (expires_at, null when the host gives none), its official source, a short quote and the date it was checked. The discounts read in the hosts' APIs come alongside in api_discounts. Free models are read every morning from OpenRouter, host pages twice a day.
curl -s https://apipriceindex.com/api/deals.json | jq '.deals[] | select(.type == "free_model") | {model, expires_at}'Price history: /api/pricing-history.csv
The full price ledger as CSV — one row per offer per price point (id, provider, model, date, input_usd_per_mtok, output_usd_per_mtok). A point is recorded only when a price actually changes, so this file is the index's accumulated history, not a snapshot dump: it gets more valuable every day it runs. Loads straight into pandas, DuckDB or a spreadsheet.
curl -s https://apipriceindex.com/api/pricing-history.csv | headSchema stability
The file carries a schema_version (currently 1). Within a version, existing fields never change name or type; new fields may be added, so parse leniently. Any removal or rename bumps the version — breaking changes are announced on the changelog (RSS) before they ship. The CSV keeps the same promise: existing columns never change, new columns are only appended. Build on it.
Fields added in October 2026
All within version 1, so existing parsers keep working.
| Field | What it holds |
|---|---|
pricing.tier | Which of the host's tariffs the price is: standard (one price whatever the prompt size or hour), off_peak / peak, or le_200k and the like (prompts up to that many thousand tokens). |
pricing.base_input_per_mtok pricing.base_output_per_mtok pricing.discount | The list price before a running promotion, and the promotion as a fraction (0 when none). The headline price stays the one billed today. |
pricing.via_openrouter | OpenRouter's resale price, when the headline price is the host's own. |
pricing.price_changes_30d pricing.reprices_often | How many times the host changed this price in 30 days; true from 8. Such prices may already differ when you call. |
last_pricing | For an offer that has not appeared at its price source for 7 days or more, pricing is null and its last price read is here, dated, with not_listed_at_source_since and a status: not_seen (under 30 days), withdrawn (absent from the host's own catalogue for 30 days or more) or unverifiable (the host left the route its price was read from). |
provider.pricing_url | The host's official price list, link-checked weekly. |
api.model api.aliases | The model id the host's API accepts, and its other names (undated aliases, dated snapshots, Bedrock and Vertex variants). null until curated. |
served | Weights precision, context, max output and API features the host declares, each with a state, its source and read date; served.maker holds the maker's values, served.below_maker / above_maker flag the gaps. Declared, not measured. |
availability.uptime_24h_pct | Share of successful requests to the host over 24 hours, read from OpenRouter; null when OpenRouter does not route that host. |
speed | Median output speed (tokens_per_s_p50) and time to first token (first_token_ms_p50) over the 30 minutes before read_at, from OpenRouter: a snapshot of real traffic, not a daily average. |
intelligence | The model's Epoch Capabilities Index score, interval and rank, by Epoch AI under CC BY 4.0: credit Epoch AI when you reuse it. |
Live price badges
Every offer (one host serving one model) has a matching shields.io endpoint JSON at /api/badge/{provider}/{model}.json. Point shields.io at it and you get a badge that tracks our daily price checks — green when the price was verified within 7 days, orange when older:
What it shows today:
For agents & generated clients
An OpenAPI 3.1 spec describes every data endpoint above (plus per-model JSON at /api/{provider}/{model}.json and /health.json for pipeline freshness) — point a client generator or an AI agent at it. A curated site map for LLMs lives at/llms.txt, and the MCP server below plugs the index straight into Claude, Cursor or any MCP client.
Official tools
Three small MIT-licensed tools build on this dataset, all under github.com/apipriceindex:
apipriceindex-mcp — live prices and deals in your AI agent
An MCP server that lets your assistant answer “which LLMs are free to call right now?”,“what's the cheapest model at least as good as X?” or “what would 200M input / 15M output tokens a month cost me on model X vs Y?” from today's verified data — every answer carries its verified_at date and source. Eight tools: search with filters (max price, capabilities, min speed), prices, monthly cost, deals, a table of every host of a model, side-by-side comparison, cheapest at an Epoch level, and price changes over N days. Index unreachable → explicit error, never a stale or invented price.
pip install apipriceindex-mcp
claude mcp add apipriceindex -- apipriceindex-mcpllm-cost-diff — a lockfile for your LLM bill
Declare your monthly workloads, commit a lock, and fail CI when a provider repricing — or a model swap in a PR — moves your estimated bill beyond a threshold. The drift becomes a visible, blocking diff instead of a surprise on the invoice.
dataset — daily snapshot on Hugging Face
A scheduled sync pushes each day's all.json and price history to Hugging Face Datasets — convenient for notebooks and ML pipelines. Prefer the live endpoints above: always fresher than any snapshot.
License and how to cite
The dataset is CC BY 4.0: use it commercially, remix it, republish it, as long as you credit API Price Index with a link. Copy one of these lines as it is:
Source: API Price Index (https://apipriceindex.com), CC BY 4.0, data as of 2026-12-06.<a href="https://apipriceindex.com/">API Price Index</a>, LLM API prices, CC BY 4.0Reusing the intelligence field? Credit Epoch AI as well (Epoch Capabilities Index, CC BY 4.0). Prices are cross-checked but mistakes happen: every record links its source so you can verify, and a correction sent to contact@apipriceindex.com goes into the next build. Method details on methodology, every change on the changelog (RSS).