AI model price data: free JSON and CSV
Every price on this site as open data: 107 AI models with input, output, cached and batch prices, daily price history and our price index, plus image, audio, embedding and agent tool prices. Free under CC BY 4.0, no API key, updated whenever a provider changes a price. Newest check 23 Nov 2026.
Files
All under https://aitokenprice.com
| File | Format | What’s in it |
|---|---|---|
/api/models.json | JSON | Every model we track (107, 48 current): input, output, cached and batch prices per 1M tokens, long-prompt rates, context window, status, release and retirement dates, Epoch AI capability score where one exists, check date and source links. |
/api/models.csv | CSV | The same models, one row each, for spreadsheets: prices, tier, status, context window and source. |
/api/price-history.csv | CSV | Every dated price we have a record for (90 rows): launch prices and later changes, with the source of each. |
/api/price-history.json | JSON | The same price history as JSON. |
/api/index.csv | CSV | Daily AI Token Price Index since 13 Jun 2026: the average blended price of current frontier, workhorse and small models, and how many models each tier averages. |
/api/index.json | JSON | The same index series as JSON, with the current values. |
/api/changelog.json | JSON | Price changes, launches and retirements (65 events), plus dated changes still to come. |
/api/media.json | JSON | Image and video generation prices: per image or per second, one row per size and setting. |
/api/audio.json | JSON | Text to speech, speech to text and music generation prices. |
/api/embeddings.json | JSON | Embedding model prices per 1M tokens (13 models), with batch prices, free allowances and dimensions. |
/api/tools.json | JSON | Agent tool fees (20): web search, page fetch, code execution, file search and hosted agent runtime. |
/changelog.xml | RSS | Price changes as an RSS feed. |
/dates.ics | iCalendar | Upcoming price changes and model shutdowns, for your calendar. |
Prices are US dollars before tax: per 1M tokens for language and embedding models, per image or second for media, per 1,000 calls for tools. Each JSON file starts with a meta block naming the licence and the date it was generated.
Main fields in models.json
| Field | Meaning |
|---|---|
id | Our stable ID for the model, used in page addresses (claude-sonnet-5-5) |
apiId | The model name the provider’s API expects (claude-sonnet-5-5, gpt-6.2-sol) |
price.input / price.output | US dollars per 1M input and output tokens at the standard rate |
price.cacheRead | US dollars per 1M cached input tokens; left empty if the provider doesn’t offer caching |
price.batchDiscount | Share off for batch requests (0.5 = half price); left empty if there’s no batch discount |
price.longContext | Higher rates above a prompt length: either multipliers or prices, with the threshold in tokens |
price.offPeak | Off-peak prices where a provider has them (DeepSeek) |
promo | A temporary price: until when, and what it becomes |
status | current, previous (replaced but still sold), retiring (with a retires date) or retired |
capability | Epoch Capabilities Index score and range, where Epoch AI has scored the model (CC BY 4.0, credit Epoch AI) |
hostedVia | For open-weight models sold by other hosts: the cheapest host we found and its price |
verified | The day we last checked the price on the provider’s own page |
sources | The pages the price was checked against |
Examples
Current models with their prices, from the command line:
curl -s https://aitokenprice.com/api/models.json | jq '.models[] | select(.status == "current") | {name, input: .price.input, output: .price.output}'
The cheapest current workhorse model, in JavaScript (works in the browser too):
const res = await fetch('https://aitokenprice.com/api/models.json');
const { models } = await res.json();
const cheapest = models
.filter((m) => m.status === 'current' && m.tier === 'workhorse')
.sort((a, b) => a.price.input - b.price.input)[0];
The five cheapest current models by input price, in Python:
import pandas as pd
models = pd.read_csv('https://aitokenprice.com/api/models.csv')
current = models[models.status == 'current']
print(current.sort_values('input_per_1m')[['name', 'input_per_1m', 'output_per_1m']].head())
Embeds and feeds
- Price table: /embed/prices is a light, tracking-free table of current prices you can put in an iframe; it links back here.
- Price of intelligence chart: /embed/value, the same way, from the best value page.
- Price changes: the RSS feed and the calendar of upcoming changes.
- On Hugging Face: aitokenprice/llm-api-price-history has the models, price history and index as CSV, refreshed monthly, for loading with the datasets library.
- For AI assistants: /llms.txt lists the site’s main pages and these files.
- In your coding assistant: aitokenprice-mcp is a free MCP server that answers price questions in Claude Code, Cursor and other MCP clients from these files, with the check date and a link. In Claude Code:
claude mcp add aitokenprice -- npx -y aitokenprice-mcp. Other clients: runnpx -y aitokenprice-mcpas the server command.
Licence and credit
The data is published under CC BY 4.0. Credit it as “Source: AI Token Price”, with a link. Capability scores are from Epoch AI (CC BY 4.0); credit Epoch AI too if you use them. How we check each price is on the methodology page, and corrections are listed in the price history.
Questions
Is the AI Token Price data free to use?
Yes. It’s published under CC BY 4.0, so you can use it in products, research and articles, commercial or not, as long as you credit “AI Token Price (aitokenprice.com)” with a link. No API key or sign-up is needed.
How often is the data updated?
Whenever a price changes or a model launches, usually within a day of the provider’s announcement. Every price carries the date we last checked it on the provider’s own page; the newest check is 23 Nov 2026.
Are there rate limits?
The files are static and served from a CDN, so there are no API limits, but please cache them: they change at most a few times a day. Fetching once an hour is plenty.
Can I call it from a web page?
Yes. The /api files send an Access-Control-Allow-Origin header, so browser code on any site can fetch them directly.
Where do the capability scores come from?
From Epoch AI’s Capabilities Index, also CC BY 4.0. If you use the capability field, credit Epoch AI as well.