Short answer: the cheapest list-price API depends on the input/output mix. For output-heavy chat, DeepSeek V4 Flash and Gemini 3.1 Flash Lite are the low-cost band. For input-heavy RAG, the same models usually win because input is cheaper than output. For coding and hard reasoning, the cheapest model that passes your evaluation is the one that costs least overall.
Cost at 1M requests
Assume 1,000 input tokens and 500 output tokens per request, 1 million requests per month — 1 billion input tokens and 500 million output tokens. Prices are list values per 1M tokens, retrieved 19 Nov 2026.
| Model | Input $/1M | Output $/1M | Monthly cost at 1M requests | Context | Best for |
|---|---|---|---|---|---|
| DeepSeek V4 Flash | $0.15 | $0.60 | $450 | 1,048,576 | High-volume chat, extraction, long context |
| Llama 3.3 70B (Groq) | $0.59 | $0.79 | $985 | 131,072 | Fast chat, open-weight stack |
| Gemini 3.1 Flash Lite | $0.25 | $1.50 | $1,000 | 1,048,576 | Cheap multimodal, long context |
| Mistral Large 4.0.8 | $0.70 | $2.10 | $1,750 | 1,048,576 | European stack, general chat |
| Gemini 3 Flash | $0.50 | $3.00 | $2,000 | 1,048,576 | Balanced quality and speed |
| Grok 4.3 | $1.25 | $2.50 | $2,500 | 1,000,000 | Long context, chat |
| Claude Haiku 4.5 | $1.00 | $5.00 | $3,500 | 200,000 | Fast Anthropic stack |
| o3 | $2.00 | $8.00 | $6,000 | 200,000 | Reasoning |
| Claude Sonnet 4.5 | $3.00 | $15.00 | $10,500 | 200,000 | Code and careful writing |
| GPT-5.6 | $4.00 | $20.00 | $14,000 | 1,050,000 | Frontier general use |
Formula: cost = (input tokens ÷ 1M × input price) + (output tokens ÷ 1M × output price). Excludes cache, batch, retries, reasoning tokens, long-context tiers, storage and egress. Verify current prices with each provider; this is a dated snapshot.
The cheapest model by workload
| Workload | Low-cost pick | Why | Watch out for |
|---|---|---|---|
| Classification, extraction, routing | DeepSeek V4 Flash or Gemini 3.1 Flash Lite | Short outputs; input price dominates | JSON-mode reliability and retry rate |
| RAG chat | DeepSeek V4 Flash or Llama 3.3 70B | Input-heavy; both keep input cheap | Long retrieved context and tool schemas |
| Long-document Q&A | Gemini 3.1 Flash Lite or DeepSeek V4 Flash | 1M-token windows at low input rates | Usable input after output reservation |
| Fast interactive chat | Llama 3.3 70B on Groq or Gemini Flash | Low latency and low output price | Context limit (Llama is 131K) |
| Coding and debugging | Claude Sonnet 4.5 or GPT-5.6 | Quality on multi-file changes | Output tokens and retries dominate |
| Batch enrichment | Any low-cost model with a 50% batch discount | Deferrable work gets a second discount | Completion window and failure path |
Why the cheapest headline rate is not the cheapest bill
Five levers move the total more than the input price:
- Output tokens. Output is usually priced 2–5× higher than input. A model with cheap input but expensive output can lose on a chat workload. Check the input/output split before choosing.
- Retries. A failed request is billed again when you retry. A 10% retry rate is a 10% surcharge on the whole workload, and a bad JSON mode can push it higher.
- Reasoning tokens. Reasoning models bill internal tokens as output. A short visible answer can hide a large output bill.
- Long-context tiers. Some providers raise the per-token price above a context threshold. A prompt just over the line can cost more than a shorter prompt on a more expensive model.
- Cache and batch. Caching cuts the price of repeated input; batch cuts the price of deferrable requests. Both are real, but they multiply rather than add. See the caching/batch calculator.
Worked example: the $450 bill that becomes $700
Take DeepSeek V4 Flash at 1M requests, 1K input and 500 output tokens: $450 at list price. Add a 5% retry rate and the raw token bill rises to $472.50. If 10% of requests use a 20K-token retrieved context instead of 1K, the input tokens rise by 1.9B and the bill rises by about $285. The model did not change; the prompt shape did.
This is why a cost estimate built from “average tokens per request” is fragile. Use the p95 request size, count tool schemas, and measure the retry rate before you commit to a budget.
When a flat plan wins
A flat plan is cheaper when the monthly per-token bill is above the plan price and the workload fits the plan’s RPM, concurrency and daily terms. At 1M requests/month, the average rate is about 23 requests per minute, which is below every paid plan’s RPM. The binding constraints are usually tokens per day, concurrency and fair use, not RPM. For the fine print behind “unlimited” claims, read the unlimited AI API guide.
Run the comparison in the LLM API cost calculator. It shows the break-even request count against Hobby, Starter, Builder and Scale, then you check the caps on pricing.
How to compare without a spreadsheet error
monthly_cost =
(requests × input_tokens ÷ 1,000,000) × input_price
+ (requests × output_tokens ÷ 1,000,000) × output_price
+ retry_surcharge
+ reasoning_tokens × output_price
+ cache_write_cost
− batch_discount
Use the same request count and token split for every model. Do not compare a cached, batched estimate for one provider with an uncached list price for another. If you do not have measured token counts, use the context-window calculator to size the prompt and the rate-limit calculator to size the throughput.
Cheapest is not good enough
A cheap model that fails 8% of requests is not cheap. The cost of a failed request includes the retry, the user’s time and the downstream correction. For extraction, measure schema validity; for RAG, measure answer correctness; for coding, measure tests passed. A model that is 2× cheaper but 5% less accurate can be the more expensive choice.
The practical rule: shortlist the two cheapest models that pass your evaluation, then compare their total bill at p95 request size. Do not start from the price table and work backwards.
FAQ
What is the cheapest LLM API in 2026?
At the list prices in this comparison, DeepSeek V4 Flash has the lowest blended cost at $0.15 per 1M input tokens and $0.60 per 1M output tokens. At 1M requests of 1K input and 500 output tokens, that is about $450. The cheapest headline rate is not always the cheapest bill; cache, batch, retries and output length change the total.
Is a flat-rate plan cheaper than per-token billing?
Sometimes. A flat plan wins when the monthly per-token bill is higher than the plan price and the workload fits the plan’s RPM, concurrency and fair-use terms. Run both numbers with the cost calculator; do not compare the plan price with a single token price.
Why is my bill higher than the token estimate?
The usual causes are output tokens priced above input, retries, reasoning tokens billed as output, cache writes, long-context price tiers and prompts larger than the sample you measured. The estimate is a planning number, not an invoice.
Which cheap model is best for coding?
Coding quality matters more than the input price. Test a small fast model for completion and a stronger model for debugging or multi-file changes. A cheap model that fails the task is not cheap.
Provider pricing deep dives: Groq · DeepSeek · Qwen · Cerebras.
Price your own request mix
The calculator applies input, output, cache and batch to your real volume, then shows when a flat plan beats per-token billing.
Open the cost calculator → See plans