LLM API pricing comparison
List prices per 1M tokens for 45 models from 6 providers, each checked against the provider's official pricing page.
Last verified: November 17, 2026 · 5 scheduled price changes · change log
Cheapest model per tier
| Tier | Cheapest model | Input / output per 1M | 1,000 requests × (2,000 in + 500 out) | Models in tier |
|---|---|---|---|---|
| flagship | Mistral Large 3 Mistral AI | $0.50 / $1.50 | $1.75 | 19 |
| reasoning | Grok 4.20 (Reasoning) xAI | $1.25 / $2.50 | $3.75 | 1 |
| mid | Gemini 3.8 Flash Google price changes 2027-01-01 | $0.75 / $3.75 | $3.38 | 12 |
| small | Ministral 3 8B Mistral AI | $0.15 / $0.15 | $0.38 | 13 |
Ranked by the cost of the workload in the column header at standard rates (no caching or batch). Tags mark announced price changes.
All models
| Model | Provider | Input | Cached input | Output | Blended 3:1 | Batch | Context | Long-context tier |
|---|---|---|---|---|---|---|---|---|
| Claude Fable 5.1 | Anthropic | $10.00 | $0.25 | $50.00 | $20.00 | −50% | 1M | none |
| Claude Fable 5 | Anthropic | $10.00 | $1.00 | $50.00 | $20.00 | −50% | 1M | none |
| Claude Fable 5.2 | Anthropic | $8.00 | $0.20 | $40.00 | $16.00 | −50% | 1M | none |
| Claude Opus 5 | Anthropic | $5.00 | $0.50 | $25.00 | $10.00 | −50% | 1M | none |
| Claude Opus 4.8 | Anthropic | $5.00 | $0.50 | $25.00 | $10.00 | −50% | 1M | none |
| Claude Opus 5.5 | Anthropic | $4.00 | $0.20 | $20.00 | $8.00 | −50% | 1M | none |
| Claude Sonnet 4.6 | Anthropic | $3.00 | $0.30 | $15.00 | $6.00 | −50% | 1M | none |
| Claude Sonnet 5.5 | Anthropic | $2.00 | $0.10 | $10.00 | $4.00 | −50% | 1M | none |
| Claude Sonnet 5 | Anthropic | $2.00 | $0.20 | $10.00 | $4.00 | −50% | 1M | none |
| Claude Haiku 4.5 | Anthropic | $1.00 | $0.10 | $5.00 | $2.00 | −50% | 200K | none |
| Claude Haiku 5.5 | Anthropic | $0.10 | $0.01 | $0.50 | $0.20 | −50% | 1M | above 100K |
| DeepSeek V4 Pro | DeepSeek | $1.32 | $0.044 | $3.96 | $1.98 | — | 1M | none |
| DeepSeek V4.1 Flash | DeepSeek | $0.30 | $0.006 | $1.20 | $0.52 | — | 1M | none |
| Gemini 4 Carbon price changes 2026-12-01 | $2.00 | $0.10 | $10.00 | $4.00 | −50% | 1.05M | none | |
| Gemini 4 Argon price changes 2026-12-01 | $2.00 | $0.10 | $10.00 | $4.00 | −50% | 1.05M | none | |
| Gemini 3.1 Pro (Preview) | $2.00 | $0.20 | $12.00 | $4.50 | −50% | 1.05M | above 200K | |
| Gemini 4 Hydrogen | $1.50 | $0.075 | $7.50 | $3.00 | −50% | 1.05M | none | |
| Gemini 3.8 Flash price changes 2027-01-01 | $0.75 | $0.075 | $3.75 | $1.50 | −50% | 1.05M | none | |
| Gemini 3.6 Flash price changes 2027-01-01 | $0.75 | $0.075 | $3.75 | $1.50 | −50% | 1.05M | none | |
| Gemini 3.5 Flash-Lite | $0.30 | $0.03 | $2.50 | $0.85 | −50% | 1.05M | none | |
| Gemini 2.5 Flash | $0.30 | $0.03 | $2.50 | $0.85 | −50% | 1.05M | none | |
| Gemini 3.1 Flash-Lite | $0.25 | $0.025 | $1.50 | $0.56 | −50% | 1.05M | none | |
| Mistral Large 4 | Mistral AI | $0.70 | $0.07 | $2.10 | $1.05 | −50% | 1M | none |
| Mistral Large 3 | Mistral AI | $0.50 | $0.05 | $1.50 | $0.75 | −50% | 256K | none |
| Mistral Medium 3.5 | Mistral AI | $1.50 | $0.15 | $7.50 | $3.00 | −50% | 256K | none |
| Codestral | Mistral AI | $0.30 | $0.03 | $0.90 | $0.45 | −50% | 128K | none |
| Mistral Small 4 | Mistral AI | $0.15 | $0.015 | $0.60 | $0.26 | −50% | 256K | none |
| Ministral 3 8B | Mistral AI | $0.15 | $0.015 | $0.15 | $0.15 | −50% | 256K | none |
| GPT-6 Astra | OpenAI | $10.00 | $1.00 | $50.00 | $20.00 | −50% | 1.05M | above 272K |
| GPT-5.5 | OpenAI | $5.00 | $0.50 | $30.00 | $11.25 | −50% | 1.05M | above 272K |
| GPT-5.6 Sol | OpenAI | $4.00 | $0.40 | $20.00 | $8.00 | −50% | 1.05M | above 272K |
| GPT-5.4 | OpenAI | $2.50 | $0.25 | $15.00 | $5.63 | −50% | 1.05M | above 272K |
| GPT-6.1 Sol | OpenAI | $2.00 | $0.10 | $10.00 | $4.00 | −50% | 1.05M | above 272K |
| GPT-6 Sol | OpenAI | $2.00 | $0.20 | $10.00 | $4.00 | −50% | 1.05M | above 272K |
| GPT-5.6 Terra | OpenAI | $2.00 | $0.20 | $12.00 | $4.50 | −50% | 1.05M | above 272K |
| GPT-6.1 Terra | OpenAI | $1.00 | $0.05 | $5.00 | $2.00 | −50% | 1.05M | above 272K |
| GPT-5.4 mini | OpenAI | $0.75 | $0.075 | $4.50 | $1.69 | −50% | 400K | none |
| GPT-5.6 Luna | OpenAI | $0.20 | $0.02 | $1.20 | $0.45 | −50% | 1.05M | above 272K |
| GPT-6 Luna | OpenAI | $0.10 | $0.01 | $0.50 | $0.20 | −50% | 1.05M | above 272K |
| Grok 4.7 | xAI | $2.00 | $0.50 | $6.00 | $3.00 | −20% | 500K | above 200K |
| Grok 4.6 | xAI | $2.00 | $0.50 | $6.00 | $3.00 | −20% | 500K | above 200K |
| Grok 4.5 | xAI | $2.00 | $0.30 | $6.00 | $3.00 | −20% | 500K | above 200K |
| Grok 4.20 (Reasoning) | xAI | $1.25 | $0.20 | $2.50 | $1.56 | −20% | 1M | above 200K |
| Grok 4.3 | xAI | $1.25 | $0.20 | $2.50 | $1.56 | −20% | 1M | above 200K |
| Grok Build 0.1 | xAI | $1.00 | $0.20 | $2.00 | $1.25 | — | 256K | above 200K |
USD per 1M tokens. Standard tier, prompts below any long-context threshold. Click a column header to sort.
"Blended 3:1" weights input three times as heavily as output, a rough mix for chat and RAG traffic. Agents and batch jobs have very different mixes, so use the calculator or the use-case guides for real workloads. Machine-readable data: /prices.json.
How LLM API pricing works
Every provider here bills input tokens (your prompt, system prompt, tool definitions and conversation history) and output tokens (what the model generates, including reasoning or thinking tokens) at separate prices quoted per 1 million tokens:
cost = input tokens × input price ÷ 1,000,000 + output tokens × output price ÷ 1,000,000
Per single token the numbers get very small: $0.75 per 1M input tokens is $0.00000075 per token. Output costs more than input on 44 of the 45 models here; the median output price is 5× the input price (range 1× to 8.3×), so output-heavy workloads such as long-form generation or agents with long reasoning are priced mostly by the output column.
Worked example. Gemini 3.8 Flash costs $0.75 input and $3.75 output per 1M tokens. One request with 2,000 input and 500 output tokens:
- Input: 2,000 × $0.75 ÷ 1M = $0.0015
- Output: 500 × $3.75 ÷ 1M = $0.001875
- Per request: $0.003375; 1,000 requests: $3.38
The same 1,000 requests on other models
| Model | Tier | Input / output per 1M | Per request | 1,000 requests | With batch API |
|---|---|---|---|---|---|
| Mistral Large 3 Mistral AI cheapest in tier | flagship | $0.50 / $1.50 | $0.0018 | $1.75 | $0.88 |
| Mistral Large 4 Mistral AI | flagship | $0.70 / $2.10 | $0.0024 | $2.45 | $1.22 |
| DeepSeek V4 Pro DeepSeek | flagship | $1.32 / $3.96 | $0.0046 | $4.62 | — |
| Grok 4.7 xAI | flagship | $2.00 / $6.00 | $0.0070 | $7.00 | $5.60 |
| Gemini 4 Carbon Google price changes 2026-12-01 | flagship | $2.00 / $10.00 | $0.0090 | $9.00 | $4.50 |
| Claude Fable 5.2 Anthropic | flagship | $8.00 / $40.00 | $0.04 | $36.00 | $18.00 |
| GPT-6 Astra OpenAI | flagship | $10.00 / $50.00 | $0.04 | $45.00 | $22.50 |
| Grok 4.20 (Reasoning) xAI cheapest in tier | reasoning | $1.25 / $2.50 | $0.0037 | $3.75 | $3.00 |
| Gemini 3.8 Flash Google cheapest in tier price changes 2027-01-01 | mid | $0.75 / $3.75 | $0.0034 | $3.38 | $1.69 |
| Grok 4.3 xAI | mid | $1.25 / $2.50 | $0.0037 | $3.75 | $3.00 |
| Gemini 4 Hydrogen Google | mid | $1.50 / $7.50 | $0.0067 | $6.75 | $3.38 |
| Mistral Medium 3.5 Mistral AI | mid | $1.50 / $7.50 | $0.0067 | $6.75 | $3.38 |
| Claude Sonnet 5.5 Anthropic | mid | $2.00 / $10.00 | $0.0090 | $9.00 | $4.50 |
| GPT-6.1 Sol OpenAI | mid | $2.00 / $10.00 | $0.0090 | $9.00 | $4.50 |
| Ministral 3 8B Mistral AI cheapest in tier | small | $0.15 / $0.15 | $0.00038 | $0.38 | $0.19 |
| Claude Haiku 5.5 Anthropic | small | $0.10 / $0.50 | $0.00045 | $0.45 | $0.23 |
| GPT-6 Luna OpenAI | small | $0.10 / $0.50 | $0.00045 | $0.45 | $0.23 |
| Mistral Small 4 Mistral AI | small | $0.15 / $0.60 | $0.00060 | $0.60 | $0.30 |
| DeepSeek V4.1 Flash DeepSeek | small | $0.30 / $1.20 | $0.0012 | $1.20 | — |
| Gemini 3.5 Flash-Lite Google | small | $0.30 / $2.50 | $0.0019 | $1.85 | $0.93 |
| Grok Build 0.1 xAI | small | $1.00 / $2.00 | $0.0030 | $3.00 | — |
The newest model from each provider in each tier, plus each tier's cheapest. Standard rates, no prompt caching. Change tokens, caching and volume in the calculator, or count your prompt's tokens with the token counter.
Cached input and batch discounts by provider
| Provider | Cached input (share of input price) | Cache write | Batch discount | Other |
|---|---|---|---|---|
| Anthropic | 2.5%–10% | 1.25× input | 50% | |
| OpenAI | 5%–10% | 1.25× input (8 of 11 models) | 50% | |
| 5%–10% | no separate price | 50% | ||
| xAI | 15%–25% | no separate price | 20% (5 of 6 models) | |
| DeepSeek | 2%–3.3% | no separate price | — | Off-peak hours: 50% off |
| Mistral AI | 10% | no separate price | 50% |
Cached input is what you pay when the start of a prompt matches a recent request and the provider serves it from cache; where a cache-write price is listed, the first request that stores the prefix pays that rate instead of the normal input price. "No separate price" means cache writes bill as normal input. Batch discounts apply to the whole request, input and output. Exact terms (cache lifetime, storage fees, which endpoints qualify) are in each model's billing notes and on the provider's page. See the guides for how much caching saves on agent and RAG workloads.
Long-context price thresholds
These models bill the whole request at a higher rate once the prompt exceeds the threshold. All other models here keep one price across their full context window.
| Provider | Prompt above | Input price | Output price | Models |
|---|---|---|---|---|
| Anthropic | 100K tokens | 5× | 5× | Claude Haiku 5.5 |
| 200K tokens | 2× | 1.5× | Gemini 3.1 Pro (Preview) | |
| OpenAI | 272K tokens | 2× | 1.5× | GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Luna, GPT-6 Sol, GPT-5.6 Sol, GPT-5.6 Terra, GPT-5.6 Luna, GPT-5.5, GPT-5.4 |
| xAI | 200K tokens | 2× | 2× | Grok 4.7, Grok 4.6, Grok 4.5, Grok 4.3, Grok 4.20 (Reasoning), Grok Build 0.1 |
Scheduled and possible price changes
- watch GPT-5.6 Sol: OpenAI now says GPT-5.6 Sol promotional pricing ($4 / $20 per 1M tokens) is available "until November 30, 2026" (earlier wording: "at least through November 21, 2026"). The post-promotion price is not published. source
- increase Gemini 4 Argon: Launch pricing ends: input $2 → $4, output $10 → $20 per 1M tokens. source
- increase Gemini 4 Carbon: Launch pricing ends: input $2 → $4, output $10 → $20 per 1M tokens. source
- increase Gemini 3.6 Flash: Promotional pricing ends: input $0.75 → $1.50, output $3.75 → $7.50 per 1M tokens. source
- increase Gemini 3.8 Flash: Promotional pricing ends: input $0.75 → $1.50, output $3.75 → $7.50 per 1M tokens. source
The table above shows prices in effect on 2026-11-17. Full history on the price changes page (RSS).
Cheapest models by output price
- Ministral 3 8B (Mistral AI): $0.15 in / $0.15 out
- Claude Haiku 5.5 (Anthropic): $0.10 in / $0.50 out
- GPT-6 Luna (OpenAI): $0.10 in / $0.50 out
- Mistral Small 4 (Mistral AI): $0.15 in / $0.60 out
- Codestral (Mistral AI): $0.30 in / $0.90 out
- GPT-5.6 Luna (OpenAI): $0.20 in / $1.20 out
- DeepSeek V4.1 Flash (DeepSeek): $0.30 in / $1.20 out
- Gemini 3.1 Flash-Lite (Google): $0.25 in / $1.50 out
- Mistral Large 3 (Mistral AI): $0.50 in / $1.50 out
- Grok Build 0.1 (xAI): $1.00 in / $2.00 out
Sources
- Anthropic: https://platform.claude.com/docs/en/about-claude/pricing
- OpenAI: https://developers.openai.com/api/docs/pricing
- Google (Gemini API): https://aistudio.google.com/docs/pricing
- xAI: https://docs.x.ai/developers/pricing
- DeepSeek: https://api-docs.deepseek.com/quick_start/pricing/
- Mistral AI: https://docs.mistral.ai/inference/pricing
Standard list prices in USD: no enterprise discounts, priority tiers or regional surcharges. Each model page links its own source and verification date. Head-to-head pages: model comparisons.
FAQ
What is the cheapest LLM API?
By list price, the cheapest model tracked here is Ministral 3 8B (Mistral AI) at $0.15 input and $0.15 output per 1M tokens: 1,000 requests × (2,000 in + 500 out) costs $0.38. Cheapest per tier on the same workload: flagship Mistral Large 3 ($1.75), reasoning Grok 4.20 (Reasoning) ($3.75), mid Gemini 3.8 Flash ($3.38), small Ministral 3 8B ($0.38). Prices verified 2026-11-17. The cheapest model is not always the cheapest per finished task, so test a shortlist on your own inputs.
How is LLM API pricing calculated?
Providers bill input (prompt) tokens and output (generated) tokens separately, each at a price per 1M tokens: cost = input tokens × input price / 1,000,000 + output tokens × output price / 1,000,000. For example, Gemini 3.8 Flash charges $0.75 input and $3.75 output, so a request with 2,000 input and 500 output tokens costs $0.0015 + $0.001875 = $0.003375. Output is priced higher than input on 44 of the 45 models here (median 5× the input price). Reasoning or thinking tokens are billed as output.
Do cached tokens cost less?
Yes. All 6 providers tracked here list a cached-input price, between 2% and 25% of the normal input price depending on provider and model. Anthropic lists a cache-write price of 1.25× input on all 11 models; OpenAI lists a cache-write price of 1.25× input on 8 of 11 models. Caching only helps when the same prompt prefix is re-sent, as in agents, chat history and repeated questions over one document.
What does batch pricing mean?
A batch API accepts many requests at once and returns results asynchronously instead of in real time. In exchange the price drops: Anthropic 50% off, OpenAI 50% off, Google 50% off, xAI 20% off, Mistral AI 50% off. No batch discount is listed for DeepSeek, which instead discounts off-peak hours by 50%. Batch suits classification, extraction and evaluation jobs that do not need an immediate answer.
What is long-context pricing?
Some models bill the whole request at a higher rate once the prompt passes a threshold: Anthropic above 100K tokens (5× input, 5× output, 1 model); Google above 200K tokens (2× input, 1.5× output, 1 model); OpenAI above 272K tokens (2× input, 1.5× output, 10 models); xAI above 200K tokens (2× input, 2× output, 6 models). Other models tracked here keep one price across their full context window.