Cheapest LLM API: the honest list, by capability class

The cheapest usable LLM API in August 2026 is Mistral Nemo on DeepInfra at $0.019 in / $0.03 out per million tokens, which is roughly 260 times cheaper than Claude Opus 5. That comparison is meaningless on its own, because they cannot do the same work. What follows is the cheap list sorted by capability class, and the arithmetic that decides when a flat monthly plan beats all of them.

By the Continuum team. We build a workbench that runs Claude Code, Codex, and their peers, so the model rates quoted here are the ones our own cost analytics ship with.

The short version

Within the frontier class, Claude Opus 5 at $5 / $25 per million tokens is cheaper than gpt-5.6-sol at $5 / $30. In the mid class, DeepSeek V4 Pro on Together at $1.32 / $3.96 undercuts Claude Sonnet 5 at $2 / $10. In the small class, gpt-oss 20B is $0.07 / $0.30 at Fireworks and DeepSeek V4 Flash is $0.09 / $0.18 at DeepInfra. But cache pricing, long-context surcharges, tokenizer differences, and free-tier rate limits move the real bill more than the headline rate, and above a few hundred dollars a month of coding-agent usage a flat plan beats every per-token option.

What you need to know
  • Cheapest usable rate found: $0.019 / $0.03 per million (Mistral Nemo, DeepInfra).
  • Cheapest frontier: Claude Opus 5 at $5 / $25, below gpt-5.6-sol at $5 / $30.
  • Batch is 50 percent off nearly everywhere. The largest discount most teams never claim.
  • Tokenizers differ. Claude 4.7 and later produce about 30 percent more tokens for the same text, so $/Mtok is not directly comparable.
  • OpenAI charges double input beyond 272K tokens. Anthropic charges the standard rate to 1M.
  • For agent workloads above roughly $100/month, a flat plan with an allowance beats metered tokens.

Cheapest by capability class

Comparing a 9B model to a frontier model on price is like comparing a bicycle to a truck on fuel economy. Sort into classes first. All rates per million tokens, verified on the vendor pages in August 2026.

Frontier class

Models you would trust with an ambiguous, multi-step task. These are single-source: no shopping around, so the only decision left is which one, and the cards for Claude Opus 5 and gpt-5.6-sol carry the published benchmark rows behind it.

Frontier models, per million tokens.checked aug 2026
ModelProviderInputCached readOutput
Claude Opus 5Anthropic$5.00$0.50$25.00
gpt-5.6-solOpenAI$5.00$0.50$30.00
Claude Fable 5Anthropic$10.00$1.00$50.00
gpt-5.5-proOpenAI$30.00Not listed$180.00

Mid class

The workhorse tier: good enough for the large majority of production and agent traffic. This is where price competition actually exists.

Mid-tier models, per million tokens.checked aug 2026
ModelCheapest provider foundInputCached readOutput
GLM 5.2Fireworks, Together, Baseten (tied)$1.40$0.14$4.40
DeepSeek V4 ProTogether$1.32$0.13$3.96
Claude Sonnet 5Anthropic$2.00$0.20$10.00
gpt-5.6-terraOpenAI$2.00$0.20$12.00
Qwen 3.8 MaxFireworks$2.00$0.25$6.00
Kimi K3DeepInfra$2.85$0.285$14.25

Small and cheap class

Classification, extraction, routing, summarization, mechanical edits. This is where the truly low numbers live.

Small models, per million tokens.checked aug 2026
ModelCheapest provider foundInputOutput
Mistral Nemo Instruct 2407DeepInfra$0.019$0.03
NVIDIA Nemotron (small)Fireworks$0.05$0.20
gpt-oss 20BFireworks$0.07$0.30
DeepSeek V4 FlashDeepInfra$0.09$0.18
Qwen3.5-9BDeepInfra$0.10$0.15
gpt-oss 120BBaseten$0.10$0.50
gpt-5.6-lunaOpenAI$0.20$1.20
MiniMax M3Fireworks, Together (tied)$0.30$1.20
Claude Haiku 4.5Anthropic$1.00$5.00

Five traps that make a cheap API expensive

1. Tokenizers are not comparable

This is the trap nobody accounts for. Anthropic documents that Claude 4.7 and later models use a newer tokenizer producing roughly 30 percent more tokens for the same text than earlier models. That means a per-million-token price is a price for a unit that differs between models. A model at $2 per million that tokenizes your text 30 percent more finely is effectively $2.60 against a model at $2 with a coarser tokenizer. Any price table, including the ones above, understates this. The only fix is to measure your own corpus.

2. Long-context surcharges

OpenAI applies a long-context multiplier on the GPT-5.6 family past 272K tokens: input doubles and output rises 50 percent, so gpt-5.6-sol goes from $5.00 / $30.00 to $10.00 / $45.00. Anthropic does the opposite, pricing the full 1M-token context window at the standard rate on Claude 4.6 and later, so a 900k-token request costs the same per token as a 9k one. For a coding agent that accumulates context across a long session, this single difference can outweigh the headline rate.

3. Cache pricing varies more than base pricing

Cache read rates are where the spread actually is, and for agent workloads (which resend the same system prompt and repo context every turn) cache is most of the input.

Cached input as a fraction of base input.checked aug 2026
Model and providerBase inputCached readRatio
Claude Sonnet 5, Anthropic$2.00$0.2010%
GLM 5.2, Fireworks$1.40$0.1410%
DeepSeek V4 Pro, Baseten$1.74$0.1458%
GLM-5.2, Together$1.40$0.2619%
Kimi K2.7 Code, Fireworks$0.95$0.1920%
gpt-oss 20B, Fireworks$0.07$0.03550%

At 80 percent cache hit rate, a 10 percent cache ratio and a 20 percent cache ratio produce a 9 percent difference in the total input bill on identical base rates. Note also that Anthropic charges to write the cache: 1.25x base for a 5-minute TTL, 2x for an hour. A 5-minute cache pays for itself after one read; a 1-hour cache after two.

4. Free-tier rate limits are the actual product

Free tiers exist to stop you evaluating properly. OpenRouter grants 50 free-model requests per day, rising to 1,000 only after you have purchased at least $10 in credits. Fireworks grants $1 once. Together publishes nothing. Groq offers a rate-limited free tier. Modal is the exception with $30 renewed monthly. If a "free" plan caps you below your evaluation set, its price is not zero, it is the cost of a bad decision made on insufficient data.

5. The fees that are not per token

OpenRouter charges no inference markup and instead takes 5.5 percent on Stripe credit purchases with a $0.80 minimum, or 5 percent on crypto. Anthropic charges a 1.1x multiplier if you pin inference to US-only geography, and $10 per 1,000 web searches for the server-side search tool. None of these appear in a $/Mtok comparison and all of them appear on the invoice.

The discount nearly everyone leaves on the table

Every major provider discounts asynchronous work by 50 percent, and it requires no model change, no prompt change, and no quality tradeoff. It requires only that you can wait.

Batch discounts.checked aug 2026
ProviderDiscountTerms
Anthropic50% on input and outputClaude Sonnet 5 becomes $1 / $5
OpenAI50% across applicable modelsgpt-5.6-sol becomes $2.50 / $15.00
Fireworks50% of serverlessBoth input and output
TogetherUp to 50%24-hour window, scales to 30 billion tokens per job

When a flat plan beats every per-token price

For coding agents specifically, the cheapest per-token rate is often not the cheapest way to buy inference at all, because subscriptions bundle a large allowance at a fixed price. The arithmetic is simple and almost nobody does it.

Flat plans against the metered spend they cover. Plan prices from the vendors, August 2026.
PlanMonthly priceAllowanceMetered spend it displaces
Claude Pro$20 monthly, $17 on annualUsage limits, not a dollar allowanceVaries by model and session shape
Claude MaxFrom $1005x or 20x Pro usageVaries by model and session shape
Continuum Plus$25$25 of hosted usage per weekAbout $108/month at list rates
Continuum Max 100$100$100 per weekAbout $433/month
Continuum Max 200$200$200 per weekAbout $866/month
Continuum Ultra$500$1,000 per weekAbout $4,330/month
The crossover, worked. Uses the same agent workload as our provider pages.
Workload: 880 agent turns/month, 25k input + 1.5k output per turn,
          80% of input served from cache.
          = 22M input tokens, 1.32M output tokens

On Claude Sonnet 5 ($2 / $0.20 cached / $10):
  uncached input   4.4M x $2.00  = $ 8.80
  cached input    17.6M x $0.20  = $ 3.52
  output           1.32M x $10   = $13.20
                                   -------
  metered total                    $25.52 / month

  -> A $25 flat plan is roughly break-even at ONE developer.

Same workload, 6 developers on one team:
  metered total                   $153.12 / month
  Continuum Max 100 ($100, $100/wk allowance)
                                  $100.00 / month
  -> Flat wins by ~35%, and the allowance still has headroom.

Same workload but heavy (3x turns) on Claude Opus 5 ($5 / $0.50 / $25):
  uncached input  13.2M x $5.00   = $ 66.00
  cached input    52.8M x $0.50   = $ 26.40
  output           3.96M x $25    = $ 99.00
                                    --------
  metered total                     $191.40 / month per developer
  -> Well past the crossover. Flat plans win decisively at frontier
     models and high turn counts.

Questions people ask

What is the cheapest LLM API?

The cheapest usable rate we verified in August 2026 was Mistral Nemo Instruct 2407 on DeepInfra at $0.019 in / $0.03 out per million tokens. Among models capable enough for real coding work, gpt-oss 20B at Fireworks is $0.07 / $0.30 and DeepSeek V4 Flash at DeepInfra is $0.09 / $0.18. Cheapest frontier model is Claude Opus 5 at $5 / $25, below gpt-5.6-sol at $5 / $30.

How do I compare LLM API pricing fairly?

Four adjustments to the headline rate. Weight input and output by your actual ratio rather than averaging them. Apply the cached-read rate to the share of input that hits the cache. Check for long-context surcharges (OpenAI doubles input past 272K tokens; Anthropic does not). And remember tokenizers differ: Anthropic documents that Claude 4.7 and later produce about 30 percent more tokens for the same text, so a per-token price is a price for a different unit.

Is a cheap model actually cheaper for coding?

Only for mechanical work. A wrong patch costs a full agent turn plus human review, which is worth far more than the tokens saved. The economically correct pattern is routing: run renames, test scaffolding, and docstrings on a small model, and reserve a frontier model for changes that need judgment. The spread between the cheapest and most expensive model on the same workload is 25x or more, so getting the split right beats any provider switch.

What is the biggest discount available on LLM APIs?

The batch API, at 50 percent off input and output at Anthropic, OpenAI, Fireworks, and Together. It requires no model or prompt change, only tolerance for asynchronous processing. Evaluation suites, embedding backfills, bulk classification, and nightly repo-wide passes all belong there and almost never are.

Are flat monthly plans cheaper than per-token APIs?

Above roughly $100 a month of coding-agent usage, usually yes. A plan with a weekly allowance converts to about 4.33 times its weekly figure per month, so a $25 plan carrying a $25 weekly allowance displaces about $108 of metered spend. Below about $25 a month of real usage, per-token billing on your own key is cheaper, because an unused allowance is money burned.

Does OpenRouter make LLM APIs cheaper?

No. OpenRouter passes upstream prices through with no inference markup and charges 5.5 percent on Stripe credit purchases (minimum $0.80) or 5 percent on crypto instead. You pay a small premium for one key across hundreds of models and automatic failover, which is worth it for breadth and never for price.

Sources

Every figure above was read from these pages on August 2026. Vendors reprice without notice; if you find a stale number, tell us.

  1. Claude API pricing model rates, caching multipliers, batch discount, tokenizer note
  2. OpenAI API pricing GPT-5.6 rates, batch discount, long-context surcharge
  3. DeepInfra pricing lowest verified per-token rates
  4. Fireworks serverless pricing per-model and per-size rates, batch discount
  5. Together AI pricing per-model rates and cached input
  6. Baseten pricing Model API rates
  7. OpenRouter FAQ credit purchase fees, BYOK fee, free-model rate limits
  8. Claude plans and pricing consumer and team plan prices
Try it

Run every agent
from one place.

Continuum drives Claude Code, Codex, and peers under your own subscriptions, with live quota gauges and spend by repo. The app is free. Mac is stable; Windows and Linux desktop are beta.

free app · your subscriptions · local-first