The short version
- 01
There is no cheapest API, only a cheapest API for a given input-to-output ratio. Run this same table at 3:1 and at 1:5 and the top of the list changes.
- 02
Output tokens drive the bill. Claude prices output at exactly 5× input across the line, and so does GPT-6 Astra. Summarising is cheap; generating is not.
- 03
Cache hits cut input cost to a tenth or a fiftieth. Long system prompts, fixed documents and conversation history all get billed at full price until you turn caching on.
- 04
Batch processing is roughly half price in exchange for waiting up to 24 hours. Backfills, labelling runs and offline analysis have no reason to pay real-time rates.
- 05
Cheap is not the same as usable. The gap between a $0.05 model and a $10 model is multi-step reasoning, tail stability and non-English quality. Test the cheap one on your own samples before paying up.
Price table
Changed this week
3 change(s) confirmed in the 7 days before the check date. Read this before the table — last week’s arithmetic may no longer hold.
- Claude Fable 5.2 Input $10.00 → $8.00 −20%
- Claude Fable 5.2 Output $50.00 → $40.00 −20%
- Claude Fable 5.2 Cached in $0.25 → $0.20 −20%
List-price changes only; limited-time promos, regional rates and batch pricing are not tracked.
| Model | Input | Output | Cached in | Context |
|---|---|---|---|---|
| OpenAI Four tiers per generation — Astra, Sol, Terra, Luna — a 100× price spread for far less than 100× capability. Past a 272K prompt (except Luna), the whole request bills at 2× input / 1.5× output. | ||||
| GPT-6 Astra | $10.00 | $50.00 | $1.00 | 1M |
| GPT-6.1 Sol | $2.00 | $10.00 | $0.10 | 1M |
| GPT-6.1 Terra | $1.00 | $5.00 | $0.050 | 1M |
| GPT-6 Luna | $0.10 | $0.50 | $0.010 | 1M |
| GPT-5 mini | $0.25 | $2.00 | $0.025 | 400K |
| GPT-5 nano | $0.050 | $0.40 | $0.005 | 400K |
| Anthropic Output is exactly 5× input across the line, so talkative workloads are where Claude costs most. | ||||
| Claude Fable 5.2 −20% | $8.00 | $40.00 | $0.20 | 1M |
| Claude Opus 5.5 | $4.00 | $20.00 | $0.20 | 1M |
| Claude Sonnet 5.5 | $2.00 | $10.00 | $0.10 | 1M |
| Claude Haiku 5.5 Prompts up to 100K; above that $0.5 / $2.5 | $0.10 | $0.50 | $0.010 | 1M |
| Claude Haiku 4.5 | $1.00 | $5.00 | $0.10 | 200K |
| Google The largest context windows (1M–2M), but Pro tiers double their input price past a 200K prompt. | ||||
| Gemini 4 Argon Rises to $4 / $20 (cache $0.2) on Dec 1, 2026 | $2.00 | $10.00 | $0.10 | 1M |
| Gemini 4 Pro | $5.00 | $25.00 | $0.50 | 2M |
| Gemini 3.1 Pro Past a 200K prompt: $4 in / $18 out | $2.00 | $12.00 | $0.20 | 1M |
| Gemini 4 Flash | $0.50 | $2.00 | $0.050 | 1M |
| Gemini 3 Flash | $0.50 | $3.00 | $0.050 | 1M |
| Gemini 2.5 Flash-Lite | $0.10 | $0.40 | $0.010 | 1M |
| xAI One flat rate across the whole 256K window — on long prompts that matters more than the unit price. | ||||
| Grok 4 | $3.00 | $15.00 | — | 256K |
| Qwen (Alibaba) International (Singapore) region rates. One price around the clock — no peak/off-peak split. | ||||
| Qwen3.8 Max | $2.00 | $6.00 | $0.25 | 1M |
| Qwen3.8 Flash | $0.15 | $0.47 | $0.016 | 1M |
| Z.ai (Zhipu) GLM weights are open and self-hostable, but the list price moved four times in three months — double-check the date on this group. | ||||
| GLM-5 Open weights, self-hostable | $1.00 | $3.20 | $0.20 | 200K |
| DeepSeek Listed at off-peak rates. Peak hours cost double: 01:00–04:00 and 06:00–10:00 UTC on weekdays. | ||||
| DeepSeek-V4-Pro Off-peak | $0.66 | $1.98 | $0.022 | 1M |
| DeepSeek-V4.1-Flash Off-peak; ¥1 / ¥4 in CNY | $0.15 | $0.60 | $0.003 | 1M |
| Open weights (third-party hosts) No single official price — it moves with the host and the load. The savings are real; so are the rate limits. | ||||
| gpt-oss-120b Open weights, price varies by host | $0.011 | $0.041 | — | — |
| Mistral Nemo Output costs about the same as input, so it wins on write-heavy jobs | $0.029 | $0.030 | — | — |
Price your own workload
A unit price is not your bill. Describe your calls and the list below re-sorts by what you would actually pay.
| Model | Per month | vs cheapest |
|---|
Method: input is split by hit rate into cached reads and full-price tokens; output is billed at the output rate. Excludes batch discounts (about 50%), long-context surcharges, free tiers and tax. Models without a published cache price are billed at full input, so the estimate errs high.
How to read the table
Everything is in USD per million tokens, the unit every major vendor quotes in. Quotes per thousand tokens still circulate; mixing the two is a thousand-fold error, and it is the single most common one in cost spreadsheets.
The three price columns are not interchangeable. Input is the part of your prompt that missed the cache, billed at list price. Output is what the model writes back, generated token by token, which is why it dominates. Cached input is a prefix that hit the cache, usually 5–10% of the input price.
- Cache writes are not free: the first write bills at 1.25× input. Below roughly a 30% hit rate the premium eats the saving.
- Long context is tiered: past a 200K prompt, Gemini 3.1 Pro moves from $2 to $4 input and $12 to $18 output.
- Batch pricing is about half, and it stacks with caching, but the job has to tolerate up to 24 hours of latency.
- DeepSeek is listed at off-peak rates; peak hours double. CNY prices are on the vendor page and differ by exchange rate.
The three mistakes that inflate a bill
First, resending history every turn. In a chat integration the twentieth request carries the previous nineteen, so input grows roughly quadratically. Turn 20 costs many times turn 1 — not because the model is expensive, but because the call is.
Second, comparing prices without checking the unit. A quote of $0.002 means something very different per thousand and per million tokens.
Third, forgetting cache writes and hit rate. Caching is an investment: you pay 1.25× to write, then earn it back on reads. At a 20% hit rate, caching costs more than not caching.
When the expensive model is the cheaper choice
A price table can tell you what is cheap. It cannot tell you what is economical. Three cases where the cheap tier usually costs more:
- Multi-step reasoning and tool-calling chains. Cheap models tend to lose the thread around step three or four, and two retries cost more in tokens than the upgrade would have.
- Output a user reads directly. Grammar errors, bad translations and malformed JSON cost more to fix than the token delta.
- Compliance and data residency. Region pinning, zero retention and audit logs do not appear on a price list, but they decide whether the spend is allowed at all.
Why this page says "checked on" instead of "latest prices"
API prices move twice a year. DeepSeek cut prices 60% in September 2026; Anthropic announced a Sonnet 5 increase for 1 September 2026 and then cancelled it, turning $2 / $10 from an introductory rate into the standard one. Any table labelled "latest" is wrong three weeks later.
So this one carries a verification date and never claims to be “latest”. Once a week a script diffs the numbers: the OpenRouter model list gives machine-readable prices, each vendor’s pricing page is the final word. Where they disagree, or where a promo or regional rate shows up, the script produces a list and a human decides. Piping a scraper straight into the table drags limited-time promotions, regional rates and stale legacy models along with it — fresher-looking, less trustworthy.
If a cell has gone stale, write through the contact page with the vendor page you are looking at. That is faster than editing it yourself.
Questions
Which API is cheapest?
It depends on your input-to-output ratio. On read-heavy traffic (around 3:1) the small open-weight models come out lowest, under two cents per million blended tokens. On write-heavy traffic (around 1:5) the model with the lowest output price wins instead, because output is then more than 80% of the bill. Run the calculator above with your own ratio; it beats any ranking.
Does caching really halve the cost?
Only at a decent hit rate. Cached reads usually cost 5–10% of input, but writes bill at 1.25×. At a 40% hit rate input cost drops to roughly 40% of list; below 30% the write premium outweighs the saving.
Do batch and cache discounts stack?
Yes, they are different layers: batch halves the whole run, caching discounts a repeated prefix. Multiplied together the effective rate can fall below half of list. The catch is that the job must tolerate up to 24 hours, and the prefix must actually repeat.
Why is my bill higher than this table predicts?
Three usual causes: resending conversation history, which grows input quadratically; budgeting at cache prices without hitting the cache; and crossing a context threshold that triggers tiered pricing (Gemini Pro doubles past 200K). Retries, failed requests and image inputs are usually outside the per-token rate too.
How often is this updated?
Weekly. A script diffs each vendor’s published pricing against the OpenRouter model list and produces a list of discrepancies; a human confirms before any number changes, which is why the page always carries a check date. Changes are listed under “Changed this week” so you do not have to diff against an old screenshot. If a cell still looks stale, write in — the human step exists to catch scraper mistakes, not to filter your feedback.
Checked 2026-11-24