Posts

Cheapest LLM API in 2026

The cheapest LLM API in 2026 depends on your input-to-output ratio. Compare real per-million prices across 28 models for your workload.
Onsp
Bar chart of blended LLM API cost per million tokens assuming three input tokens for every output token, showing GPT-6 Luna cheapest at $0.20

"Cheapest" depends entirely on your input-to-output ratio. A model that wins on input tokens can lose badly once you generate long responses. To make the comparison honest, this ranking uses a blended price assuming three input tokens for every output token, which matches typical chat, extraction and RAG workloads.

Blended cost ranking (3:1 input to output)

RankModelProviderBlended / 1MInputOutput
1GPT-6 LunaOpenAI$0.20$0.10$0.50
2GPT-5.6 LunaOpenAI$0.45$0.20$1.20
3GPT-5.4 nanoOpenAI$0.46$0.20$1.25
4DeepSeek V4.1 FlashDeepSeek$0.52$0.30$1.20
5Gemini 3.5 Flash-LiteGoogle$0.85$0.30$2.50
6Gemini 3.8 FlashGoogle$1.50$0.75$3.75
7Gemini 3.7 FlashGoogle$1.50$0.75$3.75
8Grok 4.3xAI$1.56$1.25$2.50
9GPT-5.4 miniOpenAI$1.69$0.75$4.50
10DeepSeek V4 ProDeepSeek$1.98$1.32$3.96

Why the winner changes with your workload

At a 3:1 ratio, GPT-6 Luna comes out cheapest at $0.20 blended per million tokens. But ratios differ by product. A summarisation pipeline that reads a long document and returns a short answer might run 20:1. A code generator that reads a short instruction and writes a long file might run 1:5.

Re-rank with your own ratio before trusting any list. The formula is simple: (input_ratio × input_price + output_ratio × output_price) / (input_ratio + output_ratio).

Output-heavy workloads need a different shortlist

If output dominates, the relevant ranking is by output price alone. GPT-6 Luna leads at $0.50 per million output tokens, followed by GPT-5.6 Luna at $1.20 and DeepSeek V4.1 Flash at $1.20.

It is also worth looking at the output-to-input multiple. Grok 4.3 charges 2.0x for output relative to input, the lowest multiple in the dataset, which makes it unusually attractive for generation-heavy work even though its input price is not the lowest.

The cheapest option you are not using

Caching beats model choice in many applications. The deepest cache discount in the dataset is 98% off the input rate on DeepSeek V4.1 Flash. A mid-tier model with a 90% cache hit rate frequently costs less in practice than the cheapest model without caching, because the cheapest model still bills every input token at full price.

Cost per solved task, not per token

A model that costs a third as much but fails one request in five is not cheaper. If a failed request must be retried, the effective price rises by the retry rate. If it must be reviewed by a human, the effective price is dominated by labour cost, not tokens. Benchmark candidates on your own evaluation set and divide total spend by accepted outputs. That number, not the table above, is what belongs in your unit economics.

Run the numbers for your own traffic mix with the free calculator.

Related reading

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.