Open data · prices checked October 12, 2026
LLM API prices as open data
- Current models
- 29
- 44 rows with older models
- Providers
- 5
- first-party APIs only
- Last full check
- Oct 12, 2026
- against every pricing page
- Licence
- CC BY 4.0
- free with credit
Current prices
USD per million tokens, standard tier, shortest-context band. The files also hold deprecated and retired models with their last list price.
| Model | Input | Output | Cached input | Context |
|---|---|---|---|---|
| Claude Haiku 5.5Anthropic | $0.10 | $0.50 | $0.01 | 1M |
| GPT-6.1 SolOpenAI | $2.00 | $10.00 | $0.10 | 1.05M |
| Claude Sonnet 5.5Anthropic | $2.00 | $10.00 | $0.10 | 1M |
| Claude Opus 5.5Anthropic | $4.00 | $20.00 | $0.20 | 1M |
| GPT-6 LunaOpenAI | $0.10 | $0.50 | $0.01 | 1.05M |
| GPT-6 SolOpenAI | $2.00 | $10.00 | $0.20 | 1.05M |
| Grok 4.7xAI | $2.00 | $6.00 | $0.50 | 500K |
| DeepSeek V4.1 FlashDeepSeek | $0.30 | $1.20 | $0.006 | 1M |
| GPT-6 AstraOpenAI | $10.00 | $50.00 | $1.00 | 1.05M |
| Gemini 3.8 FlashGoogle | $0.75 | $3.75 | $0.075 | 1.049M |
| Claude Fable 5.1Anthropic | $10.00 | $50.00 | $0.25 | 1M |
| Claude Opus 5Anthropic | $5.00 | $25.00 | $0.50 | 1M |
| GPT-5.6 LunaOpenAI | $0.20 | $1.20 | $0.02 | 1.05M |
| GPT-5.6 SolOpenAI | $4.00 | $20.00 | $0.40 | 1.05M |
| GPT-5.6 TerraOpenAI | $2.00 | $12.00 | $0.20 | 1.05M |
| Grok 4.5xAI | $2.00 | $6.00 | $0.30 | 500K |
| Claude Sonnet 5Anthropic | $2.00 | $10.00 | $0.20 | 1M |
| Claude Fable 5Anthropic | $10.00 | $50.00 | $1.00 | 1M |
| Claude Opus 4.8Anthropic | $5.00 | $25.00 | $0.50 | 1M |
| Gemini 3.1 Flash-LiteGoogle | $0.25 | $1.50 | $0.025 | 1.049M |
| DeepSeek V4 ProDeepSeek | $1.32 | $3.96 | $0.044 | 1M |
| Gemini 3.1 ProGoogle | $2.00 | $12.00 | $0.20 | 1.049M |
| Claude Sonnet 4.6Anthropic | $3.00 | $15.00 | $0.30 | 1M |
| Claude Opus 4.6Anthropic | $5.00 | $25.00 | $0.50 | 1M |
| GPT-5.2OpenAI | $1.75 | $14.00 | $0.175 | 400K |
| Claude Haiku 4.5Anthropic | $1.00 | $5.00 | $0.10 | 200K |
| GPT-4.1OpenAI | $2.00 | $8.00 | $0.50 | 1.048M |
| GPT-4o MiniOpenAI | $0.15 | $0.60 | $0.075 | 128K |
| GPT-4oOpenAI | $2.50 | $10.00 | $1.25 | 128K |
Use it from code
One request returns the whole table. No key, no sign-up.
curl + jq
curl -s https://ioptera.com/data/llm-prices.json | jq '.models[] | select(.status == "active") | {name, inputPerMillion, outputPerMillion}'Python
import requests
prices = requests.get("https://ioptera.com/data/llm-prices.json", timeout=10).json()
for m in prices["models"]:
if m["status"] == "active":
print(m["name"], m["inputPerMillion"], m["outputPerMillion"])JavaScript
const res = await fetch("https://ioptera.com/data/llm-prices.json");
const { models } = await res.json();
const cost = (id, inputTokens, outputTokens) => {
const m = models.find((x) => x.id === id);
return (inputTokens * m.inputPerMillion + outputTokens * m.outputPerMillion) / 1e6;
};Both files allow cross-origin requests, so a web page can fetch them directly. Prices change a few times a month at most; fetching once a day is plenty.
What each row contains
All prices are in US dollars per million tokens.
| Field | Meaning |
|---|---|
| id | Stable model id, also the last part of the model's page address. Never renamed. |
| status | active, deprecated (shutdown announced), superseded, or retired (no longer served by the provider). |
| inputPerMillion | List price for input tokens; outputPerMillion is the same for output tokens. |
| cachedInputPerMillion | Price of input read from the prompt cache. null when the provider publishes none. |
| longContext | Rates for long prompts: the threshold in tokens and the higher input and output prices. “none” when the provider bills the whole context window at the list price, null when nothing is published. |
| batchDiscount | Discount on the provider's batch API as a fraction (0.5 = half price); 0 when there is no batch API. |
| contextWindow | Maximum tokens per request. |
| retiresAt | Announced shutdown date, or null. releasedAt is the launch date. |
| scheduledPrice | A published price change that has not happened yet: the day it starts and the new prices. null when there is none. |
| priceVerifiedAt | The day this model's price was last checked against the provider's page. |
| sourceUrl | The provider page the price was checked against. url links the model's page on iOPTERA. |
How fresh it is
The files are rebuilt whenever a price changes. A daily job compares every model with two independent price sources, and a weekly check reads each provider's own pricing page; a change is published only once the official page confirms it.
Every current model's price was last checked on all providers' pages on October 12, 2026.
Licence and credit
CC BY 4.0: use the data anywhere, commercial products included, as long as you credit iOPTERA with a link to this page.
Cite it
iOPTERA (2026). LLM API prices. https://ioptera.com/en/pricing-api
Link to it
<a href="https://ioptera.com/en/pricing-api">LLM API prices by iOPTERA</a>