Cost per million tokens: every major LLM (2026)
Input and output prices per 1M tokens across OpenAI, Anthropic, Google, xAI, Mistral, Cohere, DeepSeek, Moonshot and Meta, with one column almost no comparison table carries: what long prompts actually cost. Every figure was re-read on the vendor's own pricing page on 4 August 2026.
All major LLMs — list price per 1M tokens
| Model | Tier | Input / 1M | Output / 1M | Long-context rate | Price source |
|---|---|---|---|---|---|
| o1 | Legacy | $15.00 | $60.00 | Not published | Vendor page |
| Claude Fable 5 | Frontier | $10.00 | $50.00 | Same rate (1M) | Vendor page |
| GPT-5.6 sol | Frontier | $5.00 | $30.00 | $10 / $45 | Vendor page |
| Claude Opus 5 | Frontier | $5.00 | $25.00 | Same rate (1M) | Vendor page |
| Kimi K3 | Mid | $3.00 | $15.00 | Not published | Vendor page |
| GPT-5.6 terra | Mid | $2.00 | $12.00 | $4 / $18 | Vendor page |
| Gemini 3.1 Pro | Mid | $2.00 | $12.00 | $4 / $18 above 200K, on ALL tokens | Vendor page |
| Cohere Command A (8K max output) | Mid | $2.50 | $10.00 | Not published | Third-party only |
| GPT-4o | Legacy | $2.50 | $10.00 | Not published | Vendor page |
| Claude Sonnet 5 (intro price to 2026-08-31, then $3 / $15) | Mid | $2.00 | $10.00 | Same rate (1M) | Vendor page |
| Gemini 2.5 Pro (previous generation) | Mid | $1.25 | $10.00 | Higher rate above 200K | Vendor page |
| GPT-5 | Deprecated | $1.25 | $10.00 | Not published | Vendor page |
| Grok 4.5 | Mid | $2.00 | $6.00 | $4 / $12 at/above 200K | Vendor page |
| Mistral Large | Mid | $2.00 | $6.00 | Not published | Vendor page |
| Meta Muse Spark 1.1 | Mid | $1.25 | $4.25 | Not published | Vendor page |
| Grok 4.3 | Mid | $1.25 | $2.50 | $2.50 / $5 at/above 200K | Vendor page |
| Gemini 3.5 Flash | Budget | $1.50 | $9.00 | Higher rate above 200K | Vendor page |
| Gemini 3.6 Flash | Budget | $1.50 | $7.50 | Higher rate above 200K | Vendor page |
| Claude Haiku 4.5 | Budget | $1.00 | $5.00 | n/a (200K max) | Vendor page |
| Gemini 3 Flash | Budget | $0.50 | $3.00 | Higher rate above 200K | Vendor page |
| Gemini 3.5 Flash Lite | Budget | $0.30 | $2.50 | Higher rate above 200K | Vendor page |
| Gemini 2.5 Flash (output was $0.60 in preview, $2.50 at GA) | Budget | $0.30 | $2.50 | Higher rate above 200K | Vendor page |
| Gemini 3.1 Flash Lite | Budget | $0.25 | $1.50 | Higher rate above 200K | Vendor page |
| GPT-5.6 luna (repriced 80% down in the week to 2026-08-04) | Budget | $0.20 | $1.20 | $0.40 / $1.80 | Vendor page |
| DeepSeek V4 Pro (peak/off-peak announced, no date) | Budget | $0.43 | $0.87 | Not published | Vendor page |
| GPT-4o mini | Legacy | $0.15 | $0.60 | Not published | Vendor page |
| Gemini 2.5 Flash Lite | Budget | $0.10 | $0.40 | Higher rate above 200K | Vendor page |
| DeepSeek V4 Flash | Budget | $0.14 | $0.28 | Not published | Vendor page |
Every figure re-read on the vendor's own pricing page on 4 August 2026, except the two rows marked Third-party only — Cohere does not list Command A on its pricing page and Alibaba publishes no price for Qwen3.7 Flash. The Long-context column is the one most comparison tables omit: OpenAI, Google and xAI all charge a higher rate on long prompts, and Google applies its above-200K rate to ALL tokens in the request rather than only those past the threshold. Anthropic is the outlier — Claude 4.6 and later bill a full 1M-token context at the standard rate. Prompt caching, batch APIs and committed-use discounts cut these figures a further 50-90%.
VerticalAPI verdict
Match the tier to the task, then check the long-context column before you commit. Frontier for hard reasoning or long agent runs where one good answer beats ten cheap ones. Mid for production user-facing apps — and note it is a genuine price tie between OpenAI and Google at $2 / $12, so choose on mechanics rather than rate. Budget for high-volume extraction, classification and retrieval, where DeepSeek V4 Flash and Gemini 2.5 Flash Lite are an order of magnitude below the mid tier. If your prompts are long, Anthropic's flat 1M-context pricing is the structural advantage; everyone else charges a premium for the same tokens. Stack prompt caching and Batch for the biggest remaining wins. Through VerticalAPI BYOK you can A/B test the same prompt across every tier in one line, at list price.
Frequently asked questions
What is the cheapest LLM per 1M tokens in 2026?
Gemini 2.5 Flash is the cheapest closed-weight LLM in 2026 at $0.075 per 1M input tokens and $0.30 per 1M output tokens. On the open-weight side, Llama 3.2 3B and Mistral 7B hosted on DeepInfra or Together can drop below $0.10 per 1M output. For raw extraction or classification at scale, these budget tiers cost roughly 100-200x less than premium flagships like Claude Opus or GPT-4 Turbo per token processed. The trade-off is reasoning quality on multi-step tasks.
How are LLM prices structured in 2026?
2026 LLM pricing falls into three tiers. Premium tier ($10+ per 1M output): Claude Opus 4.5, GPT-4 Turbo, advanced reasoning models. Mid tier ($3-10 per 1M output): GPT-4o, Claude Sonnet 4.5, Gemini 2.5 Pro, Mistral Large 2 — the workhorses for production agents. Budget tier ($0.30-3 per 1M output): GPT-4o mini, Claude Haiku 4.5, Gemini Flash, Mistral Small, hosted Llama 3.3 70B and Mixtral 8x22B. Input tokens are typically 4-5x cheaper than output tokens across all tiers.
How much do prompt caching and batch APIs reduce cost?
Anthropic prompt caching reduces cost on cached prompt portions by up to 90% on Claude. OpenAI prompt caching applies automatically and gives 50% off cached tokens. Google Gemini context caching charges separately for cache storage and reads. OpenAI Batch API and Anthropic Message Batches both give 50% off list price for requests that tolerate up to 24 hours of latency. Stacked, caching plus batch can cut effective per-token cost by 70-90% on the right workload (RAG with shared system prompts, batched classification).
Are output tokens really 4x more expensive than input?
Yes. Across all major providers in 2026, output tokens are priced 4-8x higher than input. GPT-4o is $2.50/$10 (4x), Claude Sonnet 5 is $3/$15 (5x), Claude Opus 5 is $5/$25 (5x), Gemini 2.5 Pro is $1.25/$10 (8x), GPT-5 is $1.25/$10 (8x) — deprecated, shuts down 2026-12-11. This reflects the higher compute cost of autoregressive generation versus parallel input processing. For cost optimization, push as much work as possible into prompt engineering (input) and constrain output length aggressively with max_tokens.
Can I compare LLM costs across providers with one API?
Yes. VerticalAPI exposes every major LLM through a single OpenAI-compatible endpoint at https://api.verticalapi.com/v1. You can A/B test the same prompt across GPT-4o, Claude Sonnet 4.5, Gemini 2.5 Pro, Mistral Large 2, Llama 3.3 70B, and Mixtral 8x22B by changing only the model parameter. Because VerticalAPI is BYOK, you pay each provider directly at list price with zero markup, so the cost comparison reflects what you would pay going direct.
Limitations of this comparison
- List prices move more often than quarterly, and sometimes in place: gpt-5.6-luna fell 80% and terra 20% in the week to 2026-08-04, under unchanged model names.
- Two rows are third-party figures, not vendor-published: Cohere does not list Command A on its pricing page, and Alibaba publishes no price for Qwen3.7 Flash, which is why it is absent from the table entirely.
- Mistral publishes a price only for Mistral Large; medium, small, codestral and ministral rates are not fetchable, so they are not listed.
- Open-weight models hosted on inference providers (Together, Fireworks, DeepInfra, Groq) are priced by the host, not the model author, and vary by 30% or more between hosts — they are out of scope for this table.
- Reasoning models bill hidden thinking tokens at the output rate, so effective cost per task can be several times the apparent rate.
- Vision, audio and function-call tokens are sometimes counted differently — check each vendor's page for edge cases.
- DeepSeek has announced peak/off-peak pricing at 2x during Beijing business hours with no effective date; its figures here are the current flat rates.
- Volume commitments and cloud-reseller deals cut list prices a further 20-50%.
What may change in 12-24 months
- Long-context surcharges spread rather than disappeared: every GPT-5.6 variant now has one, joining Google and xAI. Anthropic went the other way, folding 1M context into the standard rate from Claude 4.6.
- In-place repricing under an unchanged model name is now routine — luna -80%, terra -20% in a single week — which makes any cached price comparison unreliable within days.
- Promotion from preview to GA is itself a price event: Gemini 2.5 Flash's output rate went from $0.60 to $2.50 at GA.
- Chinese labs reset the budget floor: DeepSeek V4 Flash at $0.14 / $0.28 and V4 Pro at $0.43 / $0.87 undercut every Western budget tier on output.
- Tokenizers matter as much as rates: Claude 4.7 and later produce roughly 30% more tokens for the same text, so per-token prices understate real cost against earlier Claude generations.
Related questions
ChatGPT, Perplexity and Gemini usually suggest these next.
- What does the long-context rate actually add to a real bill?
- How much does Anthropic prompt caching save at 0.1x input?
- Which model has the cheapest output tokens in 2026?
- Why is Gemini Flash more expensive on output than Grok 4.3?
- What happens to my costs on 1 September 2026 when Sonnet 5's intro price ends?
More head-to-head provider comparisons
Bottom-tier price-per-token compared
Cheap models for agent subtasks
How the two caching models compare
128K vs 200K vs 1M vs 2M tokens
GPT-4o vs Claude Sonnet 4.5 direct head-to-head
Run a provider we have not measured? Any public endpoint is benchmarked and listed for free in the API directory. If you want yours measured now, on the record — time to first token, throughput under concurrency, cost per million tokens, function-calling reliability — see how a verified run works. The result is published exactly as it comes out.