Back to blog
ยทUpdated ยท11 min readยทAI Cost Calc Team

Top 10 Cheapest AI APIs in 2026 (Ranked by Real Cost)

Live cost ranking of the cheapest LLM APIs in 2026: per-call prices, where each model wins, and how caching, batch, long prompts and tokenizers change the order.

pricingcomparisondeepseekgeminicost-optimization

๐Ÿ“Š Prices on this page are live. Every figure below is pulled from data/models.json at build time and reconciled daily against LiteLLM's public registry โ€” last verified 2026-11-01. They cannot drift out of sync with the calculator. Every price move is logged on the price-change page.

"Cheapest AI API" is a misleading question. The model that costs the least per token might be useless for your task โ€” and the one that looks expensive might be 10ร— cheaper for what you actually use it for. So before we hand you the list, two caveats:

  1. Cost is meaningless without capability matching. A cheap model that gets 60% of your queries wrong is more expensive than a pricier one that nails them on the first try.
  2. Headline rates lie in 2026. Caching can cut input bills by 90% or more. Batch APIs usually halve them. Some models charge more once your prompt passes a length threshold, and some introductory prices expire. The "cheapest" model on the price page might not be the cheapest in production.

With those out of the way: here's the ranking by single-call cost (1,000 input + 500 output tokens) across the 47 models this site tracks.

Methodology

Each cost figure is calculated as:

cost = (1,000 / 1,000,000) ร— input_price + (500 / 1,000,000) ร— output_price

Where input_price and output_price are the providers' published standard rates per 1M tokens. A few things are deliberately left out, because they change the order โ€” they're covered further down:

  • caching and batch discounts
  • long-context price tiers (the table uses each model's base rate)
  • tokenizer differences (the same text is not the same number of tokens everywhere)

Retired models are excluded from the table โ€” a retired API is not an option, however cheap. Every model is pre-loaded into the calculator on the homepage so you can plug in your own token counts.

The Ranking

# Model Provider Cost / call Input Output
1 GPT-6 Luna OpenAI $0.00035 $0.10 $0.50
2 Claude Haiku 5.5 Anthropic $0.00035 $0.10 $0.50
3 DeepSeek V3.2 DeepSeek $0.00048 $0.28 $0.40
4 GPT-5.6 Luna OpenAI $0.00080 $0.20 $1.20
5 DeepSeek V4-Flash DeepSeek $0.00090 $0.30 $1.20
6 Gemini 3.1 Flash Lite Google $0.00100 $0.25 $1.50
7 GPT-5 mini OpenAI $0.00125 $0.25 $2.00
8 Mistral Large 3 Mistral $0.00125 $0.50 $1.50
9 Gemini 3.5 Flash Lite Google $0.00155 $0.30 $2.50
10 Gemini 3 Flash Google $0.00200 $0.50 $3.00

Cost per call assumes 1,000 input + 500 output tokens. Prices checked 2026-11-01 against the LiteLLM registry.

How to read this. The order moves whenever a provider cuts a price or ships a new model, so treat it as a snapshot rather than a verdict. It has reshuffled several times since this article first ran in May โ€” the price-change log has every move. Rather than argue about who is first this week, it's more useful to look at the tiers and at why each model is there.

What's gone since May. Three models this article used to recommend have been retired: Claude Haiku 4.5 (2026-10-15), o4-mini (2026-10-23) and the original Grok 4 (2026-05-15). The current options in their price ranges are covered below.

The floor tier

Three models currently sit at the bottom of the price range, close enough that the order between them depends more on your workload than on the list price.

GPT-6 Luna

$0.10/$0.50 per 1M tokens, $0.00035 per call, with a 922K context window. OpenAI describes it as its most efficient model for focused, high-volume tasks. It supports vision, tools, prompt caching (cached input $0.01) and the Batch API ($0.05/$0.25).

Where it wins: high-volume chat, classification, extraction and routing where you want a long window without paying for it. It is the default to test first for cheap OpenAI work.

GPT-6 Luna cost calculator โ†’

Claude Haiku 5.5

Its list price is in the same range as GPT-6 Luna's: $0.10/$0.50, $0.00035 per call, cached input $0.01, batch $0.05/$0.25. Two things make its real cost different from what that suggests:

  • The list price only covers prompts up to 100K tokens. Above 100K, Haiku 5.5 costs 5ร— per token. It is the one current Claude model without flat pricing across its 1M window, so long-document work belongs elsewhere. The calculator shows the up-to-100K price.
  • Its tokenizer counts roughly 30% more tokens for the same text than Claude Haiku 4.5's did. Equal per-token prices do not mean equal per-request bills โ€” count your own prompts before comparing.

Within 100K it is still far cheaper than Claude Haiku 4.5 was: Anthropic puts the average saving at about 75%. Anthropic positions it for classification, extraction and routing, and recommends Sonnet or Opus 5.5 for agentic coding.

Claude Haiku 5.5 cost calculator โ†’

DeepSeek V3.2

$0.28/$0.40, $0.00048 per call. Its input is pricier than the two above, but its output rate ($0.40) is among the lowest of any production model, so it pulls ahead on output-heavy calls. It's an open-weight MoE model, strong on code and Chinese.

The catches: the context window stops at 164K, there's no vision input, and there's no batch price on this site. It does have a cache-hit price ($0.03).

DeepSeek V3.2 cost calculator โ†’

Budget long-context: the rest of the table

The other slots go to models that cost a bit more per call but bring something the floor tier doesn't โ€” a full long-context window at a flat rate, native audio, or EU-friendly hosting.

  • DeepSeek V4-Flash ($0.30/$1.20, $0.00090 per call) โ€” DeepSeek's long-window option: 1M of context against V3.2's 164K. Its cache-hit price ($0.01) is one of the lowest cached rates anywhere, which matters a lot for big, repeated prompts. Calculator โ†’
  • GPT-5.6 Luna ($0.20/$1.20, $0.00080 per call) โ€” same 922K window as GPT-6 Luna, but GPT-6 Luna now undercuts it. Mainly relevant if your prompts are already tuned for it. Calculator โ†’
  • Gemini 3.1 Flash Lite ($0.25/$1.50) and Gemini 3.5 Flash Lite ($0.30/$2.50) โ€” Google's budget multimodal tiers, with native audio and vision and a 1.0M window. 3.1 Flash Lite is cheaper but a generation behind and retires 2027-05-07; 3.5 Flash Lite retires 2027-07-21. 3.5 Flash Lite calculator โ†’
  • Mistral Large 3 ($0.50/$1.50) โ€” Mistral's flagship-tier model at a budget price: strong at coding and dozens of European languages, with EU-friendly hosting. No caching or batch price, and a 262K window. Calculator โ†’
  • Gemini 3 Flash ($0.50/$3.00) โ€” Google's high-throughput multimodal model with a 1.0M window and cheap cached input ($0.05). Calculator โ†’

One retiring model is still in the table. GPT-5 mini ($0.00125 per call) retires on 2026-12-11. It appears in the ranking because it's still callable, but don't start a new project on it โ€” GPT-6 Luna is cheaper per call and has a much bigger window.

Just outside the table: the value tier

These don't make the top ten on raw per-call cost, but they're where most people should look when the floor models aren't good enough.

Gemini 3.8 Flash โ€” $0.75/$3.75, $0.00262 per call, which Google calls its most intelligent Flash model, aimed at long-horizon coding, agents and enterprise workflows. That price is introductory and ends on 2026-12-31; from 2027-01-01 it doubles. Budget on the doubled rate for anything that runs into next year. (The older Gemini 3.6 Flash and 3.7 Flash retire on 2026-11-19 and 2027-01-28 respectively โ€” don't start new work on them.) Calculator โ†’

GPT-6.1 Terra โ€” $1.00/$5.00, half of GPT-6.1 Sol's price. OpenAI aims it at visual reasoning, precise computer use and clear, natural writing. OpenAI doesn't say how it ranks against Sol on general reasoning, so test before swapping it in. Calculator โ†’

Grok 4.3 ($1.25/$2.50, 1M context) and Grok Code Fast ($1.00/$2.00, 256K context) โ€” xAI's value options. Grok 4.3 costs less per call than the newer Grok 4.7 ($2.00/$6.00) and has a bigger window, so check it before defaulting to the latest Grok. Grok 4.3 calculator โ†’

DeepSeek V4-Pro ($1.32/$3.96) and Mistral Large 4 ($1.36/$4.18) โ€” DeepSeek's and Mistral's flagships, both with ~1M windows. Mistral Large 4 is in Public Preview, with open weights and vision; Mistral Large 3 stays the cheaper choice when you don't need the longer context or image input.

The workhorse tier: Sonnet 5.5 and GPT-6.1 Sol

Claude Sonnet 5.5 and GPT-6.1 Sol list at $2.00/$10.00 and $2.00/$10.00 respectively โ€” $0.00700 and $0.00700 per call, many times the floor tier. You pay that for serious coding, agent and analysis work.

  • Sonnet 5.5 keeps Sonnet 5's price but halves cached input to $0.10. Anthropic describes it as a faster, lower-cost complement to Opus 5.5, and says it is over 30% faster than Sonnet 5. 1M context, batch at $1.00/$5.00. Calculator โ†’
  • GPT-6.1 Sol keeps GPT-6 Sol's price, also halves cached input (to $0.10), and OpenAI pitches it as "near-Astra performance for complex work at a lower cost". Prompts over 272K tokens are billed at a higher long-context rate. Calculator โ†’

If you're still on Claude Sonnet 5 or GPT-6 Sol, the newer versions cost the same per uncached token and less per cached one. Sonnet 5 retires 2027-06-30.

The top end: Opus 5.5 and GPT-6 Astra

Claude Opus 5.5 ($4.00/$20.00, $0.01400 per call) is Anthropic's current Opus, priced below Opus 5, 4.8 and 4.7 ($5.00/$25.00). Anthropic says it "remains clearly stronger at complex, open-ended work" than Sonnet 5.5. If you're on an older Opus, note their retirement dates: Opus 4.7 on 2027-04-16, Opus 4.8 on 2027-05-28, Opus 5 on 2027-07-24. Calculator โ†’

GPT-6 Astra ($10.00/$50.00, $0.03500 per call) is what OpenAI calls its most capable model. At several times Sol's price, it's worth it only where Sol measurably falls short on your own tasks. Calculator โ†’

What changes the order?

The table ranks naive single-call cost. Five things change which model is actually cheapest for you.

1. Caching ratio

If most of your input is a repeated prefix โ€” a system prompt, tool definitions, retrieved documents โ€” the cached rate matters more than the headline input rate:

Model Input Cached input Cache write Batch (in/out)
GPT-6 Luna $0.10 $0.01 $0.13 $0.05/$0.25
Claude Haiku 5.5 $0.10 $0.01 $0.13 $0.05/$0.25
DeepSeek V3.2 $0.28 $0.03 โ€” โ€”
DeepSeek V4-Flash $0.30 $0.01 โ€” โ€”
Gemini 3.8 Flash $0.75 $0.07 โ€” $0.38/$1.88
GPT-6.1 Terra $1.00 $0.05 $1.25 $0.50/$2.50
Claude Sonnet 5.5 $2.00 $0.10 $2.50 $1.00/$5.00
GPT-6.1 Sol $2.00 $0.10 $2.50 $1.00/$5.00
Claude Opus 5.5 $4.00 $0.20 $5.00 โ€”

All prices per 1M tokens. "โ€”" means this site has no separate price listed.

Two things to read off this:

  • Cheap cache hits reshuffle the long-prompt end. DeepSeek V4-Flash's uncached input costs more than GPT-6 Luna's, but its cache-hit rate is lower still โ€” the more of a large prompt is cached, the narrower the gap. GPT-6.1 Sol and Terra take 95% off cached input.
  • Cache writes are not free. Anthropic bills cache writes (5-minute and 1-hour), and OpenAI now does too on GPT-6.1 models (30-minute and 12-hour retention), at a rate above normal input. A cache that's written often and read rarely can cost more than no cache. The calculator models cache reads; add the write cost yourself for short-lived caches.

Try it: 20,000-token prompt, 80% cached, on DeepSeek V4-Flash โ€” then switch the model and compare. The link carries the whole calculator state, so you can send a configuration to a colleague the same way.

2. Output ratio

If you're generating long content (output โ‰ซ input), output prices dominate. Models with cheap output โ€” DeepSeek V3.2 at $0.40, GPT-6 Luna and Haiku 5.5 at $0.50 โ€” pull further ahead; models with expensive output relative to input fall back.

3. Batch eligibility

If your workload tolerates asynchronous processing, OpenAI, Anthropic and Google offer batch pricing on most models โ€” usually half the standard rate (it's 50% on GPT-6.1 Sol and Terra, for example). DeepSeek, xAI and Mistral models have no batch price on this site, so they lose this lever, and not every model from the big three has one either: check the "With Batch" figure on each model's page.

4. Prompt length

Two current models price long prompts differently: Claude Haiku 5.5 costs 5ร— per token above 100K tokens, and GPT-6.1 Sol and Terra switch to a higher long-context rate above 272K. If your typical prompt is past those lines, the table above understates their cost. Claude Sonnet 5.5 and Opus 5.5 are priced flat across their 1M windows; for anything else, check the model page before assuming the base rate holds.

5. Tokenizer and time

Per-token prices only compare cleanly if the token counts match. Claude Haiku 5.5's tokenizer produces about 30% more tokens than Haiku 4.5's for the same text, so measure real prompts. And prices don't stand still: Gemini 3.8 Flash's introductory price ends 2026-12-31 and doubles on 2027-01-01, and GPT-5 mini disappears on 2026-12-11. Check /changes before you commit a budget.

How to actually pick a model

A practical decision tree:

  1. Is the task hard reasoning or agentic coding? โ†’ Claude Sonnet 5.5 or GPT-6.1 Sol; Claude Opus 5.5 or GPT-6 Astra when those fall short.
  2. Is the context routinely > 100K tokens? โ†’ avoid Claude Haiku 5.5's upper tier and price the alternatives at your real prompt length (GPT-6 Luna, DeepSeek V4-Flash, the Gemini Flash models). Above 272K, factor in GPT-6.1's long-context rate.
  3. Is the workload cache-heavy with stable prompts? โ†’ compare cached rates (DeepSeek V4-Flash, GPT-6 Luna, Claude Haiku 5.5), and include cache-write costs for Anthropic and GPT-6.1.
  4. Is the workload batchable (non-realtime)? โ†’ anything with a batch price, usually at half off.
  5. Default high-volume simple tasks? โ†’ GPT-6 Luna or Claude Haiku 5.5 (prompts under 100K).
  6. Multimodal with audio? โ†’ Gemini Flash Lite or Gemini 3.8 Flash (budget on its 2027 price).
  7. Need EU hosting? โ†’ Mistral Large 3, or Mistral Large 4 for longer context and vision.
  8. Cost is the only concern, quality acceptable, output-heavy? โ†’ DeepSeek V3.2, if 164K of context is enough.

Calculate your real cost

The ranking above assumes 1,000 input + 500 output tokens. Your workload is different.

Use the calculator on the homepage โ†’ โ€” pick your model, plug in your token counts, toggle caching and batch. The comparison table sorts every model by cost for your numbers, so the cheapest model for your case ends up at the top. When you've found a setup worth keeping, copy the link: it reopens the calculator exactly as you left it.

If you're spending more than $500/month on AI APIs and haven't run this exercise, you're probably leaving money on the table.


Prices on this page are live and were last verified 2026-11-01. Verify with each provider's official pricing page before committing budget โ€” the price-change log and models.json on GitHub show what moved and when.

Try the calculator

Plug in your workload and see exactly what the numbers in this article mean for your bill.

Open calculator