LLM API Pricing Comparison
Every major model's per-token price — input, output, and cached input per 1M tokens — in one sortable table. Filter by provider, click any column to sort.
Prices change frequently — last verified 2026-11-26. Rates below are USD per 1M tokens from public pricing pages. Always confirm on the provider's official pricing page before budgeting.
| GLM-4.7-FlashFree tier: $0 input, cached input and output. 200K context, text-only; API model id glm-4.7-flash. Free tier is concurrency-limited (no published RPM/TPM); long-context requests may be throttled under load. | Z.AI | $0 | $0 | $0 | 2026-11-22 |
| GLM-4.5-FlashFree tier: $0 input, cached input and output. 128K context, text-only; API model id glm-4.5-flash. Older free text model in the GLM-4.5 series; free tier is concurrency-limited. | Z.AI | $0 | $0 | $0 | 2026-11-22 |
| GLM-4.6V-FlashFree tier: $0 input, cached input and output. 128K context, vision-language (accepts image input); API model id glm-4.6v-flash. Free tier is concurrency-limited. | Z.AI | $0 | $0 | $0 | 2026-11-22 |
| MAI Code 2 FlashGenerally available Nov 17, 2026 in GitHub Copilot (Ignite). Promotional pricing until May 17, 2027; $0.10/$0.50 (cache $0.01) after. 1M context. Also on Copilot Free/Student via auto model selection. | Microsoft | $0.05 | $0.25 | $0.005 | 2026-11-17 |
| Hunyuan Hy4 flashPromotional pricing: 50% off until Nov 30, 2026 12:00 Beijing time; catalog price after. API model id: hy4-flash. Free use only in Tencent WorkBuddy until Nov 30, not via API. | Tencent | $0.07 | $0.281 | $0.003 | 2026-11-16 |
| GPT-6 LunaCached input reads get a 90% discount. | OpenAI | $0.1 | $0.5 | $0.01 | 2026-09-23 |
| Claude Haiku 5.5Tiered pricing: prompts up to 100K tokens at $0.10/$0.50 (cache $0.01); prompts over 100K billed entirely at $0.50/$2.50 (cache $0.05). 1M context, 128K max output. | Anthropic | $0.1 | $0.5 | $0.01 | 2026-10-07 |
| Gemini Decision 1Decisions API: the model generates zero output tokens (output not applicable). API model id: gemini-decision-1. Shared input billed once per request regardless of question count. | $0.1 | $0 | — | 2026-11-11 | |
| Gemini 2.5 Flash-Lite | $0.1 | $0.4 | — | 2026-09-25 | |
| DeepSeek-V4.1 FlashOff-peak rates shown. Peak-hour traffic costs 2x. Cached input billed at 2% of the input rate. | DeepSeek | $0.15 | $0.6 | $0.003 | 2026-09-27 |
| MAI Code 2Generally available Nov 17, 2026 in GitHub Copilot (Ignite). Promotional pricing until May 17, 2027; $1.00/$5.00 (cache $0.05) after. 1M context. Billed via GitHub AI credits (1 credit = $0.01); Copilot Pro/Pro+/Max/Business/Enterprise. | Microsoft | $0.5 | $2.5 | $0.025 | 2026-11-17 |
| DeepSeek-V4 ProOff-peak rates shown. Peak-hour traffic costs 2x. | DeepSeek | $0.66 | $1.98 | — | 2026-09-27 |
| Gemini 3.8 FlashIntroductory pricing through December 31, 2026. | $0.75 | $3.75 | — | 2026-09-29 | |
| GPT-6.1 TerraComputer Use model: visual reasoning + operating a computer. API model id: gpt-6.1-terra; 1.05M context, 128K max output. Cached input reads get a 95% discount. | OpenAI | $1 | $5 | $0.05 | 2026-10-26 |
| Claude Haiku 4.5 | Anthropic | $1 | $5 | $0.1 | 2026-09-24 |
| GLM-5.3Flagship since Aug 14, 2026 (model id glm-5.3). 1M context, 128K max output. Same base as GLM-5.2, extended post-training. | Z.AI | $1.4 | $4.4 | $0.26 | 2026-11-26 |
| Gemini 4 HydrogenAPI model id: gemini-4-hydrogen; 1M context. Output price includes thinking tokens. Implicit caching only. | $1.5 | $7.5 | $0.075 | 2026-11-12 | |
| Qwen4-MaxAPI model id: qwen4-max; 1M context. International (Singapore) tier; Beijing/Global regions list lower rates ($1.413/$4.24). Cache writes $1.875/1M (5 min), $3.00 (1 h). | Alibaba | $1.5 | $4.5 | $0.075 | 2026-11-16 |
| GPT-6 SolCached input reads get a 90% discount. | OpenAI | $2 | $10 | $0.2 | 2026-09-23 |
| GPT-6.1 SolCached input reads get a 95% discount. API model id: gpt-6.1-sol; 1.05M context, 128K max output. Cache writes $2.50/1M; long-context tier (>272K input): $4 input / $0.20 cached / $15 output. | OpenAI | $2 | $10 | $0.1 | 2026-09-29 |
| GPT-6.2 SolSame price as GPT-6.1 Sol. API model id: gpt-6.2-sol; 1.05M context, 128K max output. Cache writes $2.50/1M (30 min), $5 (12 h); long-context tier (>272K input): $4 input / $0.20 cached / $15 output. | OpenAI | $2 | $10 | $0.1 | 2026-11-17 |
| Claude Sonnet 5 | Anthropic | $2 | $10 | $0.2 | 2026-09-24 |
| Claude Sonnet 5.5 | Anthropic | $2 | $10 | $0.1 | 2026-09-29 |
| Gemini 4 ArgonGenerally available since Oct 13, 2026. Introductory pricing $2/$10 through Nov 30, 2026; $4/$20 (cache $0.20) from Dec 1, 2026. Cached input 95% off input. 1M max output tokens. | $2 | $10 | $0.1 | 2026-09-30 | |
| Gemini 4 CarbonGenerally available since Nov 10, 2026 (model id gemini-4-carbon). Introductory pricing $2/$10 through Nov 30, 2026; $4/$20 (cache $0.20) from Dec 1, 2026. No free tier; paid API tier only. | $2 | $10 | $0.1 | 2026-11-13 | |
| Gemini 3.1 Pro PreviewInput price doubles above 200K input tokens. | $2 | $12 | — | 2026-09-29 | |
| Grok 4.7Flagship since Sep 21, 2026 (model id grok-4.7). 500K context. Prompt at or above 200K tokens bills at double rates ($4/$1/$12) for all tokens in the request. | xAI | $2 | $6 | $0.5 | 2026-11-26 |
| Gemini 4 NeonGenerally available since Nov 18, 2026 (model id gemini-4-neon). No free tier; paid API tier only. 1M context, four thinking levels (low/medium/high/xhigh). AA Intelligence Index 61 at xhigh, #3 overall. | $3 | $15 | $0.15 | 2026-11-18 | |
| Claude Opus 5.5 | Anthropic | $4 | $20 | $0.2 | 2026-09-24 |
| Claude Opus 5 | Anthropic | $5 | $25 | $0.5 | 2026-09-24 |
| GPT-6.2 Astra20% lower than GPT-6 Astra on input/output, 60% lower on cached input. API model id: gpt-6.2-astra; 1.05M context, 128K max output. Cache writes $10/1M (30 min), $20 (12 h); long-context tier (>272K input): $16 input / $0.80 cached / $60 output. | OpenAI | $8 | $40 | $0.4 | 2026-11-17 |
| Claude Fable 5.2API model id: claude-fable-5-2; 1M context, no long-context surcharge. Cache writes $10/1M (5 min), $16 (1 h). | Anthropic | $8 | $40 | $0.2 | 2026-11-09 |
| Claude Mythos 5.2Same underlying model and pricing as Claude Fable 5.2; available only to organizations verified through Anthropic's verification programs (e.g. Cyber Verification Program). API model id: claude-mythos-5-2; 1M context, 128K max output. Cache writes $10/1M (5 min), $16 (1 h). | Anthropic | $8 | $40 | $0.2 | 2026-11-09 |
| GPT-6 AstraStandard tier, prompts up to 272K input tokens; higher long-context rates apply beyond that. | OpenAI | $10 | $50 | — | 2026-09-22 |
| Claude Fable 5.1Cache reads billed at 2.5% of the input price on Fable models. | Anthropic | $10 | $50 | $0.25 | 2026-09-24 |
| GPT-6 CyberCybersecurity-specialized variant of GPT-6 Astra; Daybreak Red access and separate model approval required. API model id: gpt-6-cyber; 1.05M context, 128K max output. Cache writes $25/1M (30 min), $50 (12 h); long-context tier (>272K input): $40 input / $4 cached / $150 output. | OpenAI | $20 | $100 | $2 | 2026-11-05 |
Click a column header to sort. “—” means the provider does not publish a cached-input rate. DeepSeek rows show off-peak rates; peak hours cost 2×.
How to read this table
- Input / Output per 1M are what you pay per million tokens sent and generated. Output tokens almost always cost more — often 4–5× the input rate.
- Cached input is the discounted rate for repeated prompt prefixes. If your workload reuses long system prompts, sort by this column instead.
- Per-token price ≠ per-task price. A model at $0.10 per 1M that needs 3× the tokens can lose to a $2 model that answers in fewer tokens — especially for reasoning models that “think” before answering.
Counting tokens for one provider? Try the GPT token counter, Claude token counter, Gemini token counter, or DeepSeek token counter.
Frequently asked questions
Which is the cheapest LLM API right now?
On headline per-token rates, DeepSeek's off-peak pricing is usually the lowest, followed by Google's Flash-Lite tier. But headline rates mislead: tokenizers differ, so the same task can use very different token counts per model. Use the token counter to measure your actual prompt, then multiply — the table above sorts by input price so you can see the ranking at a glance.
Why do some models cost 10x more than others?
You are paying for capability and scale. Frontier reasoning models run far more compute per token than small flash models. For classification, extraction, or summarization, a cheap model is often indistinguishable from a flagship — the expensive models earn their price on hard reasoning, coding, and agentic tasks.
What is prompt caching and how much does it save?
When you resend the same long prefix (system prompt, documents) across requests, providers serve it from cache at a steep discount — typically 90% off the input rate, and 98% off on DeepSeek. For agents that reread the same context all day, cache hit rate usually affects the bill more than the headline price.
Are these the official prices?
Rates are taken from public pricing pages and reputable roundups, and each row shows the date it was last checked. Prices change often — some, like Gemini's introductory tiers, are explicitly time-limited — so confirm on the provider's official pricing page before making budget decisions.
How do I turn these rates into a real cost estimate?
Count the tokens in your actual prompt with the token counter, plug the input/output counts into the cost table, and you get a per-request figure for every model. For OpenAI-only math, the dedicated OpenAI pricing calculator does it in one step.