LLM Pricing Comparison: 2026 API Rate Card
The full side-by-side rate card for every major LLM API as of December 2026 — input and output price per million tokens, context windows, caching and batch discounts, the hidden long-context and promo-price traps, a worked cost example, and a verdict on which API is cheapest for your workload.
This llm pricing comparison gives you the full side-by-side rate card for the major LLM APIs as of 4 December 2026, plus the hidden-cost traps and a worked "what will this actually cost me" example. The short version: the most cost-effective near-frontier model is DeepSeek V4-Pro (~$0.66/$1.98 off-peak); the cheapest capable budget model is OpenAI GPT-6 Luna at $0.05/$0.25. Which one wins depends on your input:output ratio.
TL;DR - Cheapest near-frontier LLM API: DeepSeek V4-Pro at ~$0.66 in / $1.98 out per 1M tokens off-peak ($1.32 / $3.96 peak). Among Western flagships, Grok 4.7 ($2 / $6) is the value pick; the true frontier (Claude Fable 5.2, GPT-6.2 Astra) costs $8 / $40. - Cheapest usable budget tier: OpenAI GPT-6 Luna at $0.05 in / $0.25 out is the single cheapest here; Qwen-flash matches it on input ($0.05 / $0.40); Gemini 2.5 Flash-Lite and Claude Haiku 5.5 sit at $0.10 in / $0.40–$0.50 out. - The number that decides your bill: output tokens cost 2.5x–5x more than input across every vendor. Your input:output ratio matters more than the sticker input price. - Two price hikes to flag: Google Gemini 4 Argon rose from $2/$10 to $4/$20 on 1 Dec 2026; Gemini 3.8 Flash intro pricing ($0.75/$3.75) doubles to $1.50/$7.50 on 1 Jan 2027. - The trap most people miss: cross a vendor's long-context threshold (200K–272K tokens) and every token in the request bills at the higher long-context rate — not just the overflow.
How is LLM API pricing calculated?
You pay per token, metered separately for input and output, quoted per million tokens (often written per 1M or per MTok). A token is roughly 0.75 of an English word, so 1,000 tokens is about 750 words.
Your bill is simple arithmetic: (input tokens ÷ 1,000,000 × input rate) + (output tokens ÷ 1,000,000 × output rate). Everything that looks complicated is a modifier on those two rates.
The modifiers that move the bill: output costs far more than input (every vendor); long-context surcharges kick in past a threshold (OpenAI at 272K tokens, Google and xAI at 200K, Qwen at 256K); prompt caching cuts repeated input to ~5–10% of list; and batch APIs cut everything by ~50% in exchange for delayed delivery.
That is why a single "cheapest API" headline misleads. If you only want the one lowest-cost option, our cheapest AI API guide names it; this page is the full side-by-side rate card. The right question for any ai model pricing comparison is: cheapest for my traffic shape.
LLM pricing comparison: the 2026 rate card
Here is the side-by-side rate card for the major LLM APIs, standard (non-cached, non-batch) tier, USD per 1M tokens, as of 4 December 2026. Figures trace to each vendor's live pricing page (linked in sources). Where a vendor's pricing page does not publish a figure, the cell says so.
| Model | Maker | Input $/1M | Output $/1M | Context window | Caching / Batch | Notes |
|---|---|---|---|---|---|---|
| GPT-6.2 Astra | OpenAI | $8 | $40 | not on pricing page | cached input discount; batch −50% | Frontier; long-context tier >272K |
| GPT-6.2 Sol | OpenAI | $2 | $10 | not on pricing page | cached input; batch −50% | Mid flagship |
| GPT-6.1 Terra | OpenAI | $0.50 | $2.50 | not on pricing page | cached input; batch −50% | Budget-mid |
| GPT-6 Luna | OpenAI | $0.05 | $0.25 | not on pricing page | cached input; batch −50% | Cheapest here (OpenAI pricing) |
| Claude Fable 5.2 | Anthropic | $8 | $40 | up to 1M | cache to ~0.025x; batch −50% | Frontier |
| Claude Opus 5.5 | Anthropic | $4 | $20 | up to 1M | cache ~0.05x; batch −50% | Flagship |
| Claude Sonnet 5.5 | Anthropic | $2 | $10 | up to 1M | cache ~0.05x; batch −50% | Workhorse |
| Claude Haiku 5.5 | Anthropic | $0.10 | $0.50 | ≤100K tier | cache ~0.10x; batch −50% | >100K bills $0.50/$2.50 (Claude pricing) |
| Gemini 4 Argon | $4 | $20 | up to 1M | cache ~0.05x; batch −50% | Rose from $2/$10 on 1 Dec 2026 (Vertex AI) | |
| Gemini 4 Neon | $3 | $15 | up to 1M | batch −50% | ||
| Gemini 4 Hydrogen | $1.50 | $7.50 | up to 1M | batch −50% | Cheapest Gemini 4 | |
| Gemini 3.8 Flash | $0.75 | $3.75 | up to 1M | cache; batch −50% | Intro; doubles to $1.50/$7.50 on 1 Jan 2027 | |
| Gemini 2.5 Flash-Lite | $0.10 | $0.40 | up to 1M | batch −50% | Budget | |
| Grok 4.7 | xAI | $2 | $6 | 500K | batch availability varies by model | Cheap output rate (xAI docs) |
| DeepSeek V4-Pro | DeepSeek | $1.32 peak / $0.66 off-peak | $3.96 peak / $1.98 off-peak | 1M | cache-hit input ~$0.02–0.04 | Open weights; off-peak ≈ half (DeepSeek pricing) |
| DeepSeek Flash (V4.1) | DeepSeek | $0.30 peak / $0.15 off-peak | $1.20 peak / $0.60 off-peak | 1M | cache-hit input ~$0.003–0.006 | Open weights; budget |
| Mistral Large 4 | Mistral | $0.70 | $2.10 | not on pricing page | not on pricing page | |
| Mistral Small 4 | Mistral | $0.15 | $0.60 | not on pricing page | not on pricing page | Open weights, Apache 2.0 (Mistral pricing) |
| Qwen4-Max | Alibaba | $1.50 | $4.50 | not on pricing page | not on pricing page | |
| Qwen-flash | Alibaba | $0.05 | $0.40 | ≤256K tier | not on pricing page | >256K bills a higher tier |
Read down the Input column and the spread is about 160x (GPT-6 Luna and Qwen-flash at $0.05 to the frontier at $8). Read the Output column and it is the same story, magnified.
Why is output so much more expensive than input?
Output costs more because generating tokens is sequential and compute-bound, while reading your prompt is parallel and cheaper. Every vendor prices output above input, usually 2.5x to 5x.
The multiples, from the verified rate card: Claude Opus 5.5 and Gemini 4 Argon charge 5x on output ($4 → $20). GPT-6.2 Sol and Claude Sonnet 5.5 charge 5x ($2 → $10). Grok 4.7 is the outlier at 3x ($2 → $6). DeepSeek V4-Pro runs 3x ($0.66 → $1.98 off-peak).
This is the single most important fact in any llm cost comparison. If your workload is output-heavy — long generations, agents that write code, verbose chat — the output rate, not the input rate, sets your bill. A model with cheap input and expensive output can cost more than a pricier-looking one.
Grok 4.7's low $6 output rate is why it punches above its sticker price for generation-heavy work, despite a $2 input that matches mid-tier rivals.
What do caching and batch pricing actually save?
Prompt caching cuts the cost of repeated input tokens to roughly 5–10% of the list input rate; batch APIs cut both input and output by about 50% in exchange for asynchronous (up to 24-hour) delivery.
Caching only helps when a large, identical prefix repeats across calls — a fixed system prompt, a long document, a few-shot block. On Claude Sonnet 5.5 a cache hit drops input from $2 to about $0.10. But you pay a cache-write premium first (Anthropic charges 1.25x for a 5-minute cache, 2x for 1-hour), so caching loses money on prefixes you read fewer than roughly two or three times.
Batch is the cleaner win when latency does not matter — evals, backfills, bulk classification, offline enrichment. It is a flat ~50% across OpenAI, Anthropic, Google and DeepSeek. One thing to check: xAI does not publish a uniform Grok batch discount, and batch availability varies by model — confirm it on the model's own page before you assume the industry-standard half-off.
What will it actually cost? (worked example)
Take a production app burning 10M input + 2M output tokens per month — a realistic mid-size assistant. Blended monthly cost is (input $/1M × 10) + (output $/1M × 2):
| Model | Input cost | Output cost | Monthly total |
|---|---|---|---|
| GPT-6 Luna ($0.05/$0.25) | $0.50 | $0.50 | $1.00 |
| Qwen-flash ($0.05/$0.40) | $0.50 | $0.80 | $1.30 |
| Gemini 2.5 Flash-Lite ($0.10/$0.40) | $1.00 | $0.80 | $1.80 |
| Claude Haiku 5.5 ($0.10/$0.50) | $1.00 | $1.00 | $2.00 |
| DeepSeek V4-Pro off-peak ($0.66/$1.98) | $6.60 | $3.96 | $10.56 |
| Grok 4.7 ($2/$6) | $20.00 | $12.00 | $32.00 |
| Claude Sonnet 5.5 ($2/$10) | $20.00 | $20.00 | $40.00 |
| Gemini 4 Argon ($4/$20) | $40.00 | $40.00 | $80.00 |
| Claude Fable 5.2 ($8/$40) | $80.00 | $80.00 | $160.00 |
Same workload, $1.00 to $160 — a 160x spread. That is the whole argument for matching model to task.
Per-run math makes it concrete. A single retrieval-augmented call of 1M input + 100k output costs $0.15 on Claude Haiku 5.5, $3.00 on Sonnet 5.5, and $12.00 on Fable 5.2 — an 80x gap for the identical request. If a cheaper tier passes your eval, the premium is pure waste.

Which LLM API is cheapest for your workload?
There is no single cheapest API — there is a cheapest API for your traffic shape. Here is where each wins when you compare LLM API prices against the work.
Solo devs and side projects: Start on GPT-6 Luna ($0.05/$0.25) or Qwen-flash ($0.05/$0.40), or Gemini 2.5 Flash-Lite ($0.10/$0.40). Under $2/month at the scenario above. Only move up when an eval shows the budget tier failing.
Output-heavy agents and codegen: Grok 4.7 ($2/$6) and DeepSeek V4-Pro (~$0.66/$1.98 off-peak) win on the output rate that dominates your bill — the same calculus behind the best AI model for coding. Grok's 500K context and DeepSeek's 1M help long agent loops.
Quality-sensitive production (support, analysis): Claude Sonnet 5.5 or GPT-6.2 Sol at $2/$10 are the sweet spot — frontier-adjacent quality at a quarter of frontier price (our Claude API pricing breakdown has the full Anthropic tier map). Add prompt caching if you ship a large fixed system prompt.
Frontier-only tasks (hard reasoning, research): Claude Fable 5.2 or GPT-6.2 Astra at $8/$40. Route only the requests that need them; cascade everything else down.
Cost-first, open-weight, self-host optional: DeepSeek and Mistral Small 4 ($0.15/$0.60) give you an API now and a portability exit later.
Our take
Sticker input price is the wrong number to shop on, and the industry's "$X per million tokens" headlines quietly encourage the mistake. Two things actually decide your bill: the output-token premium — output runs 2.5x to 5x input at every vendor we verified — and your workload's input:output ratio. A RAG app that reads a 50-page document and writes a two-sentence answer is input-dominated; an agent that reasons for pages is output-dominated. The same rate card produces wildly different bills for those two apps, and the "cheapest input" model can lose outright to a pricier-looking one with cheap output. That is why we rank Grok 4.7 ($2/$6) and DeepSeek V4-Pro (~$0.66/$1.98 off-peak) as the value frontier: their output rates, not their input rates, are what you feel at scale.
The second thing the rate cards hide is that the posted number often is not the number you pay. Google's Gemini 4 Argon doubled from $2/$10 to $4/$20 on 1 December 2026, three days before this piece, as its introductory promo ended (we unpack Google's tier maze in the Gemini API pricing deep-dive); Gemini 3.8 Flash's $0.75/$3.75 intro rate doubles on 1 January 2027. DeepSeek charges full rate during UTC business hours and about half off-peak — your bill swings with the clock. Cross OpenAI's 272K-token or Google's and xAI's 200K-token long-context line and every token in that request reprices at the higher tier, not just the overflow; a single oversized prompt can quietly 2x a request. Grounding with search adds a per-query surcharge on Gemini on top of tokens. Model your bill on the standing rate and the tier thresholds you will actually hit, not the launch-day headline.
The strategic implication for builders is that the frontier-to-budget gap — now roughly 160x on identical token counts — is an optimization surface, not a pricing footnote. Most production workloads overpay for intelligence they never use. Three moves capture the gap. Route: classify each request and send only the hard ones to a flagship; a cheap model triaging to an expensive one typically cuts spend sharply with no quality loss on the easy majority. Cache: if you ship a large fixed system prompt or document, prompt caching drops repeated input to ~5–10% — but only past the write-premium break-even of roughly two to three reads, so cache deliberately, not reflexively. Batch: push every latency-insensitive job (evals, backfills, enrichment) to the batch tier for ~50% off on the vendors that offer it.
Our verdict. Cheapest overall for capable work: DeepSeek V4-Pro off-peak, and the $0.05 budget tier (GPT-6 Luna, Qwen-flash) for light workloads — unbeatable on raw dollars. Best value at production quality: Claude Sonnet 5.5 and GPT-6.2 Sol at $2/$10. Best output economics for agents: Grok 4.7. Avoid paying frontier rates ($8/$40) as your default model — reserve them for the slice of traffic that genuinely fails on a cheaper tier. This is analysis, not vendor guidance: prices move (two already moved this month), so re-verify the two or three models you actually ship against the live pages before you commit a budget.
Frequently Asked Questions
How is LLM API pricing calculated?
You pay per token, billed separately for input (your prompt) and output (the model's reply), quoted per million tokens. Your cost is (input tokens × input rate) + (output tokens × output rate), divided by one million. Caching, batch tiers and long-context thresholds then modify those two base rates up or down.
What is a token in LLM pricing?
A token is a chunk of text the model processes — roughly 0.75 of an English word, or about four characters. One million tokens is roughly 750,000 words. Vendors count both the tokens you send and the tokens the model generates, which is why a verbose prompt and a long answer both raise your bill.
Why is output pricing higher than input?
Generating output is sequential and compute-intensive — the model produces one token at a time — while reading your input happens in parallel and costs less. Across every vendor verified here, output runs 2.5x to 5x the input rate (Claude Opus 5.5: $4 input, $20 output). Output-heavy workloads should optimize on the output rate.
What is prompt caching and how much does it save?
Prompt caching stores a repeated prompt prefix — a fixed system message or document — so re-reads bill at roughly 5–10% of the list input rate instead of full price. On Claude Sonnet 5.5 a cache hit drops input from $2 to about $0.10 per million. You pay a one-time write premium (around 1.25x–2x), so caching pays off only when a prefix repeats several times.
Which LLM API is cheapest in 2026?
For capable work, DeepSeek V4-Pro is cheapest at ~$0.66 input / $1.98 output off-peak. For light workloads, OpenAI GPT-6 Luna ($0.05/$0.25) and Qwen-flash ($0.05/$0.40) are cheapest. There is no universal winner — the cheapest API depends on your input:output ratio, latency tolerance, and whether you can use batch or caching discounts.
Editor's note — sources: All prices verified against vendors' live pricing pages on 4 December 2026 and are USD per 1M tokens, standard tier: OpenAI, Anthropic Claude, Google Vertex AI (Gemini), xAI Grok, DeepSeek, Mistral. Prices change frequently — two models in this comparison repriced within the month. Re-verify before committing a budget.