Pillar Guide · 11 min · 6 citations
Cheapest LLM API 2026: 8 Providers Ranked by Blended Cost
Cheapest LLM API 2026: Gemini 2.5 Flash-Lite leads at $0.175 per million blended tokens; Claude Haiku 5.5 and GPT-6 Luna follow at $0.20 each.
On a blended 3:1 input:output mix, Gemini 2.5 Flash-Lite, Google's previous-generation small model and still offered, leads at $0.175 per million blended tokens[2]. Claude Haiku 5.5 and GPT-6 Luna, both $0.10 / $0.50, follow at $0.20[3][4]. The open-model hosts (Groq, Together, Fireworks) on GPT-OSS 120B come next at about $0.26[6], level with DeepSeek V4.1-Flash off-peak; at peak hours DeepSeek costs twice that, about $0.53[1]. Mistral Large 3 lands at $0.75.
Blended cost ranks price, not capability. The cheapest provider is only the right one if it clears your task's quality bar. Caching and batch can reorder the list: cache hits on Haiku 5.5 and GPT-6 Luna cost a tenth of their input rate, and a DeepSeek cache hit costs a fiftieth of a cache miss. Find the cheapest provider that passes your eval, not the cheapest overall.
The cheapest LLM API in 2026 is Gemini 2.5 Flash-Lite, a previous-generation model Google still offers with no shutdown date announced, at $0.175 per million blended tokens on a 3:1 input:output mix, with the new small models from Anthropic and OpenAI two and a half cents behind. This pillar ranks eight providers (Anthropic, OpenAI, Google, DeepSeek, Mistral, Groq, Together, Fireworks) on one consistent cost metric, flags where capability breaks the ranking, shows how caching and batch reorder it, and runs the cheapest tier through the margin calculator so the saving shows up as gross margin.
1. How the blended cost is computed
Comparing input and output rates separately is noisy, so this ranking uses one blended number: cost per million tokens at a 3:1 input:output ratio, computed as (0.75 × input rate) + (0.25 × output rate). A 3:1 ratio is a reasonable default for retrieval-augmented and chat workloads, where the prompt and context outweigh the completion. For each provider, a representative cheap-to-workhorse model is priced; flagship tiers are noted separately because few cost-sensitive products run them by default.
All per-token rates were read from each provider's official pricing page on October 18, 2026. DeepSeek is priced at its peak rate; off-peak (outside 01:00-04:00 and 06:00-10:00 UTC on weekdays) it costs half. Haiku 5.5's rate applies to prompts up to 100,000 tokens and GPT-6 Luna's to prompts up to 272,000; Gemini 3.8 Flash is on a promotional rate through December 31, 2026. The blended figure is arithmetic on those rates, not a benchmark of model quality.
2. The 8-provider blended-cost ranking
Representative models, ranked cheapest first by blended 3:1 cost per million tokens.
| Rank | Provider / model | Input / Output | Blended (3:1) |
|---|---|---|---|
| 1 | Google Gemini 2.5 Flash-Lite (previous generation)[2] | $0.10 / $0.40 | $0.175 |
| 2 | Anthropic Claude Haiku 5.5[4] | $0.10 / $0.50 | $0.200 |
| 2 | OpenAI GPT-6 Luna[3] | $0.10 / $0.50 | $0.200 |
| 4 | Groq / Together / Fireworks, GPT-OSS 120B[6] | $0.15 / $0.60 | $0.263 |
| 5 | DeepSeek V4.1-Flash, peak (off-peak half)[1] | $0.30 / $1.20 | $0.525 ($0.263 off-peak) |
| 6 | Mistral Large 3[5] | $0.50 / $1.50 | $0.750 |
| 7 | Google Gemini 3.5 Flash-Lite[2] | $0.30 / $2.50 | $0.850 |
| 8 | Google Gemini 3.8 Flash (promotional)[2] | $0.75 / $3.75 | $1.500 |
The arithmetic on the leaders: Gemini 2.5 Flash-Lite is 0.75 × $0.10 + 0.25 × $0.40 = $0.075 + $0.10 = $0.175. Haiku 5.5 and GPT-6 Luna are 0.75 × $0.10 + 0.25 × $0.50 = $0.20. The open-model hosts cluster at 0.75 × $0.15 + 0.25 × $0.60 = $0.263 because GPT-OSS 120B is priced identically on Groq, Together and Fireworks. DeepSeek V4.1-Flash is 0.75 × $0.30 + 0.25 × $1.20 = $0.525 at peak, and exactly the GPT-OSS figure off-peak. Gemini 3.8 Flash's $1.50 rises to $3.00 when its promotional rate ends ($1.50 / $7.50 from January 1, 2027). For reference, the workhorse tier sits well above this list: Claude Sonnet 5.5 and GPT-6.1 Sol both blend to $4.00 on the same mix.
3. The capability caveat
This ranking is a price ranking. It does not claim any cheap-tier model produces output equal to a flagship model. Three honest qualifiers:
- Cheap-tier models are smaller. Flash-Lite, Haiku, Luna and V4.1-Flash are built for cost and speed, not maximum reasoning. For complex agentic or coding tasks, a pricier model often does the job in fewer tokens and fewer retries, which can make it cheaper in total despite a higher per-token rate.
- Representative models differ in capability. The rows above are not capability-matched. GPT-OSS 120B is a large open model; Gemini 2.5 Flash-Lite is a small fast model. Same blended-cost table, different jobs.
- Total cost includes retries and length. A model that needs two attempts or writes twice as much costs more than its per-token rate implies. Measure dollars per completed task on your workload, not dollars per token.
The correct decision rule: start at the top of the price ranking, run your eval, and stop at the first provider that clears your quality bar. That is usually not the single cheapest row, but it is rarely the most expensive one either.
4. Caching and batch change the order
The headline ranking assumes no caching and no batch. Both reorder the list for the right workload:
- Cache hits. Claude Haiku 5.5 and GPT-6 Luna bill a cache hit at $0.01 per million input tokens, a tenth of their input rate[3][4]. DeepSeek V4.1-Flash cache-hit input is $0.006 at peak and $0.003 off-peak, a fiftieth of its cache-miss rate[1]. A workload that resends a large stable context collapses input cost toward the cache rate, which can pull a nominally pricier provider below a cheaper one.
- Batch. Anthropic's Batch API is 50% off input and output[4], and OpenAI and Google price Batch and Flex tiers separately on their pricing pages[2][3]. For non-time-sensitive bulk jobs (classification, document processing), the batch rate is the number to rank on, not the standard rate.
The practical instruction: compute the blended cost with your real cache-hit ratio and batch share. A product that caches 80% of its input on Sonnet 5.5 pays about $0.48 per million input tokens instead of $2, which narrows the gap to the cheap-tier leaders considerably.
5. Margin on a $19 SaaS at the cheap tier
The margin calculator prices a $19/month SaaS where each user triggers 40 API calls a day at 800 input and 600 output tokens, on the cheap-tier leader Gemini 2.5 Flash-Lite ($0.10 / $0.40). The engine renders gross margin from that rate:
Show the recompute-verified inputs and outputs
| subscription_price | 19 |
|---|---|
| avg_api_calls_per_day | 40 |
| avg_input_tokens | 800 |
| avg_output_tokens | 600 |
| input_cost_per_million | 0.1 |
| output_cost_per_million | 0.4 |
| hosting_cost_per_user | 0.5 |
| other_per_user_costs | 0.25 |
| api cost per user | 0.38 |
|---|---|
| total cost per user | 1.13 |
| gross margin per user | 17.87 |
| gross margin percent | 94.1 |
| api share percent | 33.6 |
| dominant cost driver | Hosting |
| scale tiers › row 1 › users | 100 |
| scale tiers › row 1 › total revenue | 1900 |
| scale tiers › row 1 › total cost | 113 |
| scale tiers › row 1 › total profit | 1787 |
| scale tiers › row 1 › margin percent | 94.1 |
| scale tiers › row 2 › users | 1000 |
| scale tiers › row 2 › total revenue | 19000 |
| scale tiers › row 2 › total cost | 1130 |
| scale tiers › row 2 › total profit | 17870 |
| scale tiers › row 2 › margin percent | 94.1 |
| scale tiers › row 3 › users | 10000 |
| scale tiers › row 3 › total revenue | 190000 |
| scale tiers › row 3 › total cost | 11300 |
| scale tiers › row 3 › total profit | 178700 |
| scale tiers › row 3 › margin percent | 94.1 |
| insight | 94.1% gross margin is healthy. Hosting is your largest cost at $0.50 per user per month. At 10K users you keep $178,700 a month after per-user costs. |
Computed live at build time.
At the cheapest tier, API cost almost disappears from the per-user economics: the engine returns a high gross margin because well under a dollar of model cost per user a month leaves the bulk of the $19 as contribution. The strategic read for a cost-sensitive product is that the cheap tier turns the model from the dominant cost line into a rounding error, which frees the budget for acquisition or for a stronger model on the calls that need it.
The mirror scenario is on the pricier closed-frontier tiers, where the same call volume can consume a large share of a low subscription price. The Anthropic vs OpenAI comparison, the DeepSeek vs Gemini comparison, and the open-model host comparison drill into each pairing. The AI Product Margin Calculator lets you run your own rates.
6. Decision guidance
- Cheapest raw cost: Gemini 2.5 Flash-Lite at $0.175 blended. Claude Haiku 5.5 and GPT-6 Luna at $0.20 are the cheapest options from Anthropic and OpenAI; keep Haiku prompts under 100,000 tokens or its rate steps up.
- Open weights, want speed or self-host option: GPT-OSS 120B on Groq, Together or Fireworks at $0.263 blended; DeepSeek V4.1-Flash matches it if your batch work can run off-peak.
- EU data residency at low cost: Mistral Large 3 at $0.75 blended, the cheapest EU-based option here.
- Need flagship capability: step up to Claude Fable 5.1 or GPT-6 Astra ($10 / $50 each), Claude Opus 5.5 ($4 / $20), or Gemini 4 Argon ($2 / $10 through November 30, 2026, then $4 / $20), and rank those on the matched-tier comparisons, not this cheap-tier list.
Re-check every provider's pricing page before committing; per-token rates at this layer move with each model release, promotional rates end, and DeepSeek charges by time of day. Rank on your real cache-hit and batch ratios, and stop at the cheapest provider that passes your eval.
Per-token figures read from the providers' official pricing pages on 2026-10-18.
Frequently asked questions
What is the cheapest LLM API in 2026?
On a blended 3-to-1 input-to-output mix, Gemini 2.5 Flash-Lite ($0.10 input / $0.40 output) is the cheapest of the eight providers checked, at $0.175 per million blended tokens. Claude Haiku 5.5 and GPT-6 Luna, both $0.10 / $0.50, follow at $0.20. The open-model hosts (Groq, Together, Fireworks) running GPT-OSS 120B at $0.15 / $0.60 come next at about $0.26, level with DeepSeek V4.1-Flash off-peak; at peak DeepSeek costs $0.53 blended. All rates read on each provider's official pricing page on October 18, 2026.
Is the cheapest LLM API also the best choice?
Not always. Blended cost ranks raw price, not capability. The cheapest rows win on dollars per token, but a harder task may need a stronger model where the cost is justified by output quality and retention. The right method is to find the cheapest provider that clears your quality bar on your actual prompts, not the cheapest provider overall.
How much do caching and batch change the ranking?
A lot for the right workload. Claude Haiku 5.5 and GPT-6 Luna both bill a cache hit at $0.01 per million input tokens, a tenth of their input rate, and DeepSeek V4.1-Flash bills one at $0.006 at peak ($0.003 off-peak). Anthropic's Batch API is 50% off input and output, and OpenAI and Google price Batch and Flex tiers separately. A heavily cached or batched workload can reorder the ranking, so compute the blended cost with your real cache-hit and batch ratios.
What is the cheapest LLM API for classification and extraction on a solo SaaS under $1 per user per month?
For classification, extraction, and routing on a solo SaaS, Gemini 2.5 Flash-Lite ($0.10 input / $0.40 output) is the cheapest at $0.175 per million blended tokens, followed closely by Claude Haiku 5.5 and GPT-6 Luna at $0.20. On the $19 SaaS scenario modeled here at 40 API calls per user per day, the AI Product Margin Calculator puts Flash-Lite's API cost at well under $1 per user per month. Reserve a pricier tier for the minority of calls that genuinely need stronger reasoning.
Which cheap LLM API should I pick if I need EU data residency under a tight budget?
Mistral Large 3 at $0.50 input / $1.50 output per million tokens, which blends to $0.75 per million on a 3-to-1 mix, is the cheapest EU-based option in this ranking. It costs more than the global cheap-tier leaders but is the lowest-cost choice when EU data residency is a hard requirement. Verify Mistral's current rates and residency terms on its docs before committing.
References
Sources
Primary sources only. No vendor-marketing blogs or aggregated secondary claims.
- 1 DeepSeek — API pricing (V4.1-Flash $0.30/$1.20 peak, half off-peak) — accessed 2026-10-18
- 2 Google — Gemini API pricing (2.5 Flash-Lite $0.10/$0.40, 3.5 Flash-Lite $0.30/$2.50, 3.8 Flash $0.75/$3.75 through 2026-12-31) — accessed 2026-10-18
- 3 OpenAI — API pricing (GPT-6 Luna $0.10/$0.50, GPT-6.1 Sol $2/$10) — accessed 2026-10-18
- 4 Anthropic — Claude API pricing (Haiku 5.5 $0.10/$0.50, Sonnet 5.5 $2/$10; Batch API 50% off) — accessed 2026-10-18
- 5 Mistral — Mistral Large 3 docs ($0.50/$1.50) — accessed 2026-10-18
- 6 Groq (console.groq.com/docs/models), Together (together.ai/pricing), Fireworks (docs.fireworks.ai/serverless/pricing) — GPT-OSS 120B $0.15/$0.60 on all three — accessed 2026-10-18
The 12 vendor figures on this page, each with its source and the date it was checked, are also in the vendor price reference, where every figure has its own link.
Tools referenced in this article
Related articles
8 min
Anthropic vs OpenAI API Pricing 2026: Per-Token Cost Compared
Anthropic vs OpenAI API pricing, October 2026: matched tiers now cost the same per token, so cached-input rates and long-prompt surcharges decide the bill.
9 min
Mistral vs OpenAI API Pricing 2026: Per-Token Cost Compared
Mistral vs OpenAI API pricing 2026: Mistral Large 3 is $0.50/$1.50 per million tokens, GPT-6.1 Sol $2/$10, GPT-6 Luna $0.10/$0.50. EU residency compared.