All guides
Choosing a model

Which LLM Is Cheapest for Your Workload? It Depends on Input vs Output

Why the cheapest model changes with your input-to-output ratio and quality floor, shown with three contrasting workloads (RAG, chat, long generation) priced from current data.

"What is the cheapest LLM?" has no single answer. The model with the lowest price per million input tokens is not always the model with the lowest bill, because your bill depends on how many tokens you send, how many you get back, and which model is good enough for the job. This guide shows how the winner changes between three workloads, using current prices.

Prices are per 1 million tokens, as of November 25, 2026, from the data on this site. They move often, so confirm on /cheapest before you decide. The DeepSeek figures are the cheapest host's price on OpenRouter, because those labs don't sell these versions themselves, and host prices change more often than list prices.

Two things decide the answer

The input-to-output ratio. Each model has two prices. A model with a very low input price and an average output price wins on long-document work. A model with a low output price wins when you generate a lot of text. The same pair of models can swap places depending on your mix.

Your quality floor. If you ignore quality, the cheapest model on almost every workload is the same very small model. What you want is the cheapest model that clears the quality bar for your task, and only testing on your own examples sets that bar.

The unconstrained cheapest model

Among the non-batch models we track, Solar Mini 4.5 (Preview) from Upstage ($0.01 input, $0.04 output) has the lowest bill on all three workloads below, about $0.21 per 1,000 RAG requests. It is a small preview model with a 524K-token context window, and preview pricing can change or end. For some tasks, such as simple classification or extraction, it may be enough. For many others it will not be, and you only learn which by running your own examples.

So compare the models you would consider using. The tables below use models from the budget and mid tiers.

Workload 1: long input, short output (RAG, document Q&A)

Shape: 20,000 input tokens, 300 output tokens, no caching. This is a question answered from a large pile of retrieved text.

ModelPrice (in / out)Cost per 1,000 requests
DeepSeek V4 Flash 0731$0.045 / $0.136$0.94
DeepSeek V4.1 Flash$0.051 / $0.203$1.08
Gemini 3.6 Flash$0.75 / $3.75$16.13
Grok 4.20$1.25 / $2.50$25.75

Input is more than 90% of the bill, so the lowest input price wins. Among the mid-tier pair, Gemini 3.6 Flash beats Grok 4.20 because its input price is 40% lower. The DeepSeek pair is close here, and V4 Flash 0731 is cheaper because it is cheaper on both rates.

Workload 2: balanced chat

Shape: 1,500 input tokens, 400 output tokens, no caching.

ModelPrice (in / out)Cost per 1,000 requests
DeepSeek V4 Flash 0731$0.045 / $0.136$0.12
DeepSeek V4.1 Flash$0.051 / $0.203$0.16
Gemini 3.6 Flash$0.75 / $3.75$2.63
Grok 4.20$1.25 / $2.50$2.88

The mid-tier pair is nearly tied: 400 output tokens against 1,500 input is close to the point where Grok's lower output price catches up with Gemini's lower input price. V4 Flash 0731 stays ahead of V4.1 Flash, and the gap widens as output grows.

Workload 3: short input, long output (generation)

Shape: 500 input tokens, 4,000 output tokens, no caching. Think drafting articles, producing code files or writing reports.

ModelPrice (in / out)Cost per 1,000 requests
DeepSeek V4 Flash 0731$0.045 / $0.136$0.57
DeepSeek V4.1 Flash$0.051 / $0.203$0.84
Grok 4.20$1.25 / $2.50$10.63
Gemini 3.6 Flash$0.75 / $3.75$15.38

Now Grok 4.20 beats Gemini 3.6 Flash by about 30%, the reverse of the RAG result, because it charges less for output. The winner of each pair flipped between workloads 1 and 3.

Find the crossover yourself

You can compute where two models trade places. Set the two costs equal and solve for output tokens as a share of input tokens:

  • Gemini 3.6 Flash vs Grok 4.20: Grok is cheaper once output is more than 40% of input.
  • DeepSeek V4.1 Flash vs V4 Flash 0731: there is no crossover at current prices. V4 Flash 0731 is cheaper on both input and output, so it wins on every workload. A pair only trades places when each model is cheaper on one of the two rates. These host prices move often, so recheck before relying on it.

Look at your own traffic. If your output-to-input ratio is well on one side of the crossover, the choice is clear. If it sits near the line, the prices barely matter and you should pick on quality, speed or reliability.

One exception: models from the same family often scale together. Claude Haiku 5.5 ($0.10 / $0.50), Sonnet 5.5 ($2 / $10) and Opus 5.5 ($4 / $20) all have a 5× output-to-input ratio, so within that family the ordering never changes. Opus 5.5 costs 40× Haiku 5.5 and 2× Sonnet 5.5 on every workload. Within that family you only decide whether the bigger model is worth the multiple. Our price comparison tool puts any set of models side by side at your own token counts.

How to choose, step by step

  1. Write down your workload shape. Input tokens, output tokens, requests per day. The token counter helps with the first two.
  2. Build a quality test. Collect 30 to 100 real examples with expected answers. Include hard cases.
  3. Find the cheapest model that passes. Start at the bottom of /cheapest and work upward until the test passes. Consult the benchmarks to shortlist, but trust your own test over a leaderboard.
  4. Price it with your real mix. Include caching (see how it changes the bill) and retries. The calculator does this for every model at once.
  5. Reconsider routing. Send easy requests to a cheap model and hard ones to a strong model. A router can beat any single model on cost at the same quality. Cut LLM API Costs covers it.

Common traps

  • Comparing headline input prices only. Output-heavy work can reverse the ranking, as workload 3 shows.
  • Ignoring reasoning tokens. Most current models can reason, and those hidden tokens bill as output. A model with a low output price and long reasoning can cost more than a pricier model that thinks briefly. See Input vs Output Token Pricing.
  • Skipping the context limit. A 20,000-token prompt is fine on a 262K window, but check the limit if you plan to grow.
  • Using preview or experimental versions. They can be cheap and can disappear.

Frequently asked questions

Is the model with the lowest per-token price always the cheapest to run?

No. It is only cheapest if it also needs about the same number of tokens as the others. A model that writes longer answers, retries more or thinks longer can cost more in practice. Measure token use on your own prompts.

How do I pick between two models with similar cost?

Choose on quality at your task, then latency and reliability. When the bill differs by less than your measurement error, price is not the deciding factor.

Should I use batch pricing to get the cheapest option?

If the work can wait, yes. Where batch is offered, the batch rate is usually about half the standard rate. It suits overnight jobs such as summarizing a backlog, not interactive chat.

Do open-weight models make a workload cheaper?

Hosted open-weight models are often cheap because several hosts compete to serve them, and you also get the option to self-host. Self-hosting adds GPU, engineering and operations cost, so compare it against the hosted price at your volume before assuming it is cheaper.