LLM API pricing compared, with a cost calculator
CalculatorBy Lucas Matías García TorresUpdated and checked (first published )5 min read
Reviewed by Lucas Matías García Torres on . How we work.

Short answer
Per million tokens, prices run from $0.10 input and $0.50 output (GPT-6 Luna, and Claude Haiku 5.5 on prompts up to 100K tokens) to $10 and $50 (GPT-6 Astra, Claude Fable 5.1). List prices alone mislead: GPT-6.1 Sol and Claude Sonnet 5.5 both list $2 and $10 and cost the same $194 a month on a sample workload, but $253 on Sonnet if the token counts were measured before Anthropic's newer tokenizer, which produces about 30% more tokens. Batch halves the bill where offered.
Prices and limits change often: check the vendor's page before you pay. How we make money.
LLM API pricing is quoted per million input and output tokens, but those two numbers rarely predict the bill. Caching, batch discounts, long prompts, reasoning tokens and even how each model counts tokens can move the real cost by a factor of two or more. This page compares 16 current models from OpenAI, Anthropic, Google and DeepSeek, with prices taken from each provider's own pricing page on October 26, 2026, and a calculator that applies the rules they publish.
Estimated monthly cost, cheapest first
- GPT-6 Luna (OpenAI)$9.84$0.0005 per request
- Claude Haiku 5.5 (Anthropic)$12.79$0.0006 per request · +30% tokens
- DeepSeek V4.1 Flash (DeepSeek)$25.34$0.0013 per request · peak-hour rate (off-peak is half)
- Gemini 3.1 Flash-Lite (Google)$27.60$0.0014 per request
- Gemini 3.5 Flash-Lite (Google)$41.52$0.0021 per request
- Gemini 3.8 Flash (Google)$73.80$0.0037 per request · price until December 31, 2026, then doubles
- DeepSeek V4 Pro (DeepSeek)$96.10$0.0048 per request · peak-hour rate (off-peak is half)
- GPT-6.1 Terra (OpenAI)$97.20$0.0049 per request
- Claude Haiku 4.5 (Anthropic)$98.40$0.0049 per request
- GPT-6.1 Sol (OpenAI)$194.40$0.0097 per request
- Gemini 4 Argon (Google)$194.40$0.0097 per request · price until November 30, 2026, then doubles · implicit caching only
- Gemini 3.1 Pro (preview) (Google)$220.80$0.011 per request · preview model
- Claude Sonnet 5.5 (Anthropic)$252.72$0.0126 per request · +30% tokens
- Claude Opus 5.5 (Anthropic)$505.44$0.0253 per request · +30% tokens
- GPT-6 Astra (OpenAI)$984.00$0.0492 per request
- Claude Fable 5.1 (Anthropic)$1,255.80$0.0628 per request · +30% tokens
- Prices in US dollars per million tokens from each provider's pricing page, checked October 26, 2026, before tax.
- Up to 200,000 input tokens per request: above that, Google (Gemini Pro) and OpenAI charge long-context rates that this calculator does not model.
- Different providers count the same text as different numbers of tokens. The only adjustment applied is the one Anthropic documents for its own models: about 30% more tokens than its previous tokenizer. No provider publishes a comparison with the others, so treat it as an approximation, and untick it if your token counts already come from a current Claude model.
- Nothing you enter leaves your browser.
Price per million tokens
| Model | Input | Cached input | Output | Batch |
|---|---|---|---|---|
| GPT-6 Astra (OpenAI) | $10.00 | $1.00 | $50.00 | 50% off |
| GPT-6.1 Sol (OpenAI) | $2.00 | $0.10 | $10.00 | 50% off |
| GPT-6.1 Terra (OpenAI) | $1.00 | $0.05 | $5.00 | 50% off |
| GPT-6 Luna (OpenAI) | $0.10 | $0.01 | $0.50 | 50% off |
| Claude Fable 5.1 (Anthropic) | $10.00 | $0.25 | $50.00 | 50% off |
| Claude Opus 5.5 (Anthropic) | $4.00 | $0.20 | $20.00 | 50% off |
| Claude Sonnet 5.5 (Anthropic) | $2.00 | $0.10 | $10.00 | 50% off |
| Claude Haiku 5.5 (Anthropic) · prompts up to 100,000 tokens | $0.10 | $0.01 | $0.50 | 50% off |
| Claude Haiku 4.5 (Anthropic) | $1.00 | $0.10 | $5.00 | 50% off |
| Gemini 4 Argon (Google) · until November 30, 2026, then doubles | $2.00 | $0.10 | $10.00 | 50% off |
| Gemini 3.1 Pro (preview) (Google) | $2.00 | $0.20 | $12.00 | 50% off |
| Gemini 3.8 Flash (Google) · until December 31, 2026, then doubles | $0.75 | $0.075 | $3.75 | 50% off |
| Gemini 3.5 Flash-Lite (Google) | $0.30 | $0.03 | $2.50 | 50% off |
| Gemini 3.1 Flash-Lite (Google) | $0.25 | $0.025 | $1.50 | 50% off |
| DeepSeek V4 Pro (DeepSeek) | $1.32 | $0.044 | $3.96 | Not listed |
| DeepSeek V4.1 Flash (DeepSeek) | $0.30 | $0.006 | $1.20 | Not listed |
DeepSeek's prices are its peak-hour rates; off-peak rates are half. Gemini 3.1 Pro is listed by Google as a preview model. Claude Haiku 5.5 costs more on prompts over 100,000 tokens ($0.50 input and $2.50 output), and Gemini 4 Argon's prices double on December 1, 2026.
Same list price, different bill
GPT-6.1 Sol and Claude Sonnet 5.5 both list $2 per million input tokens and $10 per million output tokens. Take the calculator's example workload: 20,000 requests a month, each with 3,000 input tokens (40% of them repeated instructions read from cache) and 600 output tokens.
| Item | GPT-6.1 Sol | Claude Sonnet 5.5 |
|---|---|---|
| Monthly cost at list prices | $194.40 | $194.40 |
| Adjusted for Anthropic's newer tokenizer (+30% tokens) | n/a | $252.72 |
| With batch processing (50% off) | $97.20 | $126.36 |
At list prices the two cost the same, because both read cached input at 5% of the input price ($0.10). What separates them is how many tokens the same text becomes. Anthropic's own pricing page says its tokenizer for Claude 4.7 and later models "produces approximately 30% more tokens for the same text" than its previous one. If your token counts were measured with an older Claude model, the bill grows by that much. A price per token is only comparable if the token counts are.
The 30% figure compares Anthropic's two tokenizers, not Anthropic with OpenAI or Google, and the exact change "depends on the content". For a firm number, count tokens for a sample of your real prompts with each provider's tools before you commit. For the basics of what a token is, see what is a token.
What else moves the bill
Output costs several times more than input. Across these models, output tokens cost between 3 and about 8 times as much as input tokens, and 5 times for most of them. Reasoning models also bill their "thinking" as output: Google's table says so explicitly ("including thinking tokens"). Long answers and heavy reasoning dominate the bill more than long prompts.
Caching. Repeated content (system prompts, documents, tool definitions) can be cached:
- OpenAI: cached input at 5% of the input price on GPT-6.1 Sol; writing to the cache costs $2.50 per million tokens for 30 minutes or $5 for 12 hours on that model.
- Anthropic: reading from cache costs 0.1x the input price (0.05x on Opus 5.5 and Sonnet 5.5, 0.025x on Fable 5.1); writing costs 1.25x for a 5-minute cache or 2x for a 1-hour cache. Anthropic notes that caching "pays off after one cache read" for the 5-minute duration.
- Google: reduced input price for cached content plus a storage charge per million tokens per hour. Gemini 4 Argon only caches implicitly.
- DeepSeek: a separate, much lower price for cache hits.
The calculator includes cache reads but not cache writes or storage, so it slightly flatters heavy caching.
Batch processing. OpenAI, Anthropic and Google offer 50% off for requests you can wait for; DeepSeek's pricing page lists no batch discount. Anthropic adds that batch and caching discounts can be combined. Google's batch table keeps cached input at the standard price on Gemini 3.1 Pro and lists it at $0.02 rather than half of $0.03 on Gemini 3.5 Flash-Lite; the calculator follows both.
Long prompts. Thresholds differ:
| Provider | Rule above the threshold |
|---|---|
| OpenAI (GPT-6.1 Sol) | Over 272K input tokens: 2x input and cache rates and 1.5x output, for the whole request |
| Google (Gemini 3.1 Pro) | Over 200K tokens: $4 input and $18 output instead of $2 and $12 |
| Anthropic (Claude Haiku 5.5) | Over 100K prompt tokens, cache reads included: $0.50 input and $2.50 output instead of $0.10 and $0.50 |
| Anthropic (Claude 4.6 and later, except Haiku 5.5) | The full 1M-token window at standard prices |
If you routinely send very long prompts, Anthropic's flat pricing changes the comparison; the calculator stops at 200,000 input tokens for that reason, and applies Haiku 5.5's higher rate above 100,000. How much text fits in a prompt in the first place is explained in what a context window is.
Where the data is processed. OpenAI adds 10% for regional processing (data residency) on models released on or after March 5, 2026. Anthropic charges 1.1x when you require US-only inference on Claude 4.6 and later models.
Time of day. DeepSeek charges half price outside its peak hours, which are 01:00 to 04:00 and 06:00 to 10:00 UTC, Monday to Friday, excluding Chinese public holidays.
Announced changes. Google lists Gemini 4 Argon at $2 input and $10 output through November 30, 2026, and $4 and $20 from December 1, 2026; and Gemini 3.8 Flash at $0.75 and $3.75 through December 31, 2026, and $1.50 and $7.50 from January 1, 2027.
Free tiers and your data
Google's Gemini API has a free tier for some models, but its pricing table says data from the free tier is "used to improve our products" while paid-tier data is not. If you send customer or company data, use a paid tier and read the provider's data terms.
API or subscription?
An API bills every token; an assistant subscription charges a flat monthly price with usage limits instead. For one person who works in the app, the subscription is usually the simpler product: see our guides to ChatGPT pricing and Claude pricing, where Claude's page also runs three sample workloads through this calculator. The API is for software that calls a model. If you would rather avoid per-token bills altogether, a model on your own hardware has no price per token, only the cost of the machine: check what fits in how much VRAM an LLM needs.
How to choose
- Estimate your real token counts with a sample of production prompts, including the system prompt and history.
- Run them through the calculator with your cache share; check whether batch works for your use case.
- Shortlist two or three models across price tiers and test quality on your own tasks, starting with the cheaper ones. Anthropic's guide to building agents describes routing easy or common questions to smaller, cheaper models and hard or unusual ones to more capable models.
How we checked
Prices were read from the providers' own pages on October 26, 2026: OpenAI's API pricing page (Standard and Flex/Batch tables), Anthropic's Claude pricing documentation, Google's Gemini Developer API pricing page and DeepSeek's models and pricing page. OpenAI's long-prompt rule for GPT-6.1 Sol comes from its model page, read on October 6, 2026. The calculator's formula and the example figures are covered by automated tests. We have not compared output quality, speed or rate limits.
What we checked
- OpenAI standard prices per 1M tokens: GPT-6 Astra $10/$1 cached/$50; GPT-6.1 Sol $2/$0.10/$10 (cache writes $2.50 for 30 minutes, $5 for 12 hours); GPT-6.1 Terra $1/$0.05/$5; GPT-6 Luna $0.10/$0.01/$0.50; Flex/Batch at half price; regional processing +10% for models released on or after March 5, 2026. (OpenAI, )
- GPT-6.1 Sol: 1,050,000-token context, cached input at 5% of the input rate, prompts over 272K input tokens at 2x input and cache and 1.5x output for the full request. (OpenAI, )
- Anthropic prices per 1M tokens: Fable 5.1 $10/$50, Opus 5.5 $4/$20, Sonnet 5.5 $2/$10, Haiku 5.5 $0.10/$0.50 up to 100K prompt tokens and $0.50/$2.50 above, Haiku 4.5 $1/$5; cache reads 0.1x (0.05x Opus 5.5 and Sonnet 5.5, 0.025x Fable 5.1), writes 1.25x or 2x; Batch 50%; full 1M context at standard prices on Claude 4.6+ except Haiku 5.5; US-only inference 1.1x; Claude 4.7+ tokenizer produces about 30% more tokens. (Anthropic, )
- Google prices per 1M tokens (paid tier): Gemini 4 Argon $2/$0.10 cached/$10 through Nov 30, 2026 and $4/$0.20/$20 from Dec 1, 2026, implicit caching only; Gemini 3.1 Pro preview $2/$12 up to 200K tokens and $4/$18 above; Gemini 3.8 Flash $0.75/$3.75 through Dec 31, 2026 and $1.50/$7.50 from Jan 1, 2027; Gemini 3.5 Flash-Lite $0.30/$0.03/$2.50; Gemini 3.1 Flash-Lite $0.25/$1.50; Batch tables at half price, except cached input on Gemini 3.1 Pro (stays at $0.20) and on Gemini 3.5 Flash-Lite ($0.02); output includes thinking tokens; free-tier data used to improve products, paid-tier data not. (Google, )
- DeepSeek peak prices per 1M tokens: V4.1 Flash $0.30 input, $0.006 cache hit, $1.20 output; V4 Pro $1.32, $0.044, $3.96; off-peak is half; peak 01:00-04:00 and 06:00-10:00 UTC, Monday through Friday, excluding Chinese public holidays. (DeepSeek, )
- Anthropic describes routing easy or common questions to smaller, cost-efficient models and hard or unusual questions to more capable models. (Anthropic, )
What may change
- API prices and models change often; Google has already announced price increases for Gemini 4 Argon on December 1, 2026 and Gemini 3.8 Flash on January 1, 2027.
- Promotional prices (such as OpenAI's for GPT-5.6 Sol) are not included.
- Tokenizer differences between providers are not published; only Anthropic documents its own change.
Frequently asked questions
What is the cheapest LLM API?
Of the 16 models compared on October 26, 2026, GPT-6 Luna and Claude Haiku 5.5 share the lowest list price ($0.10 input, $0.50 output per million tokens; Haiku 5.5 on prompts up to 100,000 tokens), followed by Gemini 3.1 Flash-Lite and DeepSeek V4.1 Flash. Cheapest is not always best value: test quality on your own tasks.
Why does the same price per token give different bills?
Because token counts are not comparable between models, and cache prices can differ. Anthropic says its tokenizer for Claude 4.7 and later produces about 30% more tokens for the same text than its previous one, so counts measured on an older Claude model understate the bill.
How much does the Batch API save?
50% at OpenAI, Anthropic and Google, for requests that can wait for an asynchronous result. DeepSeek lists no batch discount. Anthropic says batch and caching discounts can be combined.
Do long prompts cost more?
At some providers. OpenAI charges 2x input and 1.5x output above 272K input tokens on GPT-6.1 Sol; Google charges more above 200K on Gemini 3.1 Pro; Anthropic charges more above 100K prompt tokens on Claude Haiku 5.5 and standard rates across the full 1M window on its other Claude 4.6 and later models.
Sources
- OpenAI API pricing: Standard and Flex/Batch tables for GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna, OpenAI. Accessed October 26, 2026.
- GPT-6.1 Sol model page: context window, cached input and long-context pricing, OpenAI. Accessed October 6, 2026.
- Claude API pricing: models (cache reads at 0.025x, 0.05x or 0.1x; Haiku 5.5 with its 100K-token tier) and Batch API, Anthropic. Accessed October 26, 2026.
- Gemini Developer API pricing: paid tier, Standard and Batch, Gemini 4 Argon until and after November 30, 2026, Google. Accessed October 26, 2026.
- DeepSeek API: models and pricing (deepseek-flash served by V4.1 Flash, V4 Pro; peak and off-peak), DeepSeek. Accessed October 26, 2026.
- Building effective agents, Anthropic. Accessed October 6, 2026.
Spotted an error or an outdated price? Tell us and we will fix it.
Change history
- : Re-checked every price against the four providers' pages: Claude Sonnet 5.5 cache reads are now $0.10 (0.05x), so the example costs the same on GPT-6.1 Sol and Sonnet 5.5; added Claude Haiku 5.5 with its 100K-token tier, GPT-6.1 Terra, Gemini 4 Argon (prices double on December 1, 2026) and Gemini 3.5 Flash-Lite, for 16 models.
- : Wording revised; no figure, date or source changed.
- : Re-checked every price against the four providers' own pricing pages (no price changed), added a section on API versus subscription and links to the plan pricing guides.
- : Pre-publication check: Google lists batch prices at half the standard rate for Gemini 3.1 Pro and Flash-Lite too, not only for 3.8 Flash; DeepSeek's peak hours exclude Chinese public holidays, cached input is not discounted in batch on Gemini 3.1 Pro, and the 30% tokenizer figure is stated as a comparison between Anthropic's own tokenizers
- : First published with 12 models from OpenAI, Anthropic, Google and DeepSeek and a cost calculator.
Next review: .
Part of our LLM APIs & Costs guide.
Keep reading
- What is a token in a language model?
What a token is in a language model, how many words it equals, why Spanish and French need more tokens than English (we measured it) and how they are billed.
- Claude pricing: what each plan costs and what you get
Claude pricing in October 2026: what Free, Pro, Max, Team and Enterprise cost, what each plan includes, how usage limits work and when the API is cheaper.
- ChatGPT pricing: what each plan costs and what you get
ChatGPT pricing in October 2026: what Free, Go, Plus, Pro and Business cost, what each plan includes, context windows, usage limits and how euro prices work.
- Claude vs ChatGPT: plans, limits and prices compared
Claude or ChatGPT? Compare free and paid plans, prices, models, usage limits, context windows, coding agents and data use, sourced from both vendors.
- Agents for business: use cases, costs and risks
Which business tasks suit an agent, whether you need one, three ways to get one, what model calls cost in a worked example, the main risks and EU rules.
Other topics

Assistants & Chatbots
16 guides

Agents & Automation
8 guides

Local Models & Hardware
11 guides

Language Models Explained
14 guides