Index · use this data
Use this data
Everything the index knows — 539 endpoints, 539 with cross-checked prices — is one GET away, free under CC BY 4.0. Same data as the pages, regenerated at every build, never a stale export.
The dataset: /api/all.json
One JSON file, all tracked endpoints: 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 / diverges).
curl -s https://apipriceindex.com/api/all.json | jq '.models[] | select(.id == "deepseek:deepseek-chat")'Rebuilt hourly; prices re-fetched daily (each price carries its ownverified_at). Current build: 2026-09-05T13:59:58Z. Third-party benchmark scores (LMArena, Artificial Analysis) are not included — that data isn't ours to redistribute; it stays on the pages with attribution.
Price history: /api/pricing-history.csv
The full price ledger as CSV — one row per endpoint 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 beadded, 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.
Live price badges
Every model page 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:
For agents & generated clients
An OpenAPI 3.1 spec describes every data endpoint above (plus per-model JSON at /api/{provider}/{model}.jsonand /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 an MCP server ships aspip install apipriceindex-mcp(source).
License & attribution
The dataset is CC BY 4.0: use it commercially, remix it, republish it — just creditAPI Price Index (apipriceindex.com) with a link. Prices are cross-checked against multiple sources but mistakes happen; every record links its source so you can verify. Method details on methodology, every change on the changelog (RSS).