Choosing between a small model and a large one for the same task is the biggest cost decision in most LLM apps, and it is usually made by habit rather than by numbers. This small vs large LLM comparison walks through where the savings actually come from, what they cost you in quality, and how to structure the routing so you are not paying twice. It is AtmoRouter-authored, the numbers are illustrative, and it is not an independent benchmark.
What "small" and "large" mean here
On AtmoRouter the catalogue covers more than 150 models behind the same two protocols, so switching model is a one-line change to the model string, not an integration project. Here are four IDs from the live list on the day this was written, to show the spread (USD per million tokens, from rates):
| Model ID | Context | From input | From output | Typical slot | |---|---|---|---|---| | mm/MiniMax-M3.1-Flash | 1M | $0.000375 | $0.0015 | Classification, extraction, tagging | | zai/glm-5.4 | 1M | $0.0035 | $0.011 | Everyday coding and chat, first-pass triage | | cc/claude-sonnet-5-5 | 1M | $0.25 | $1.25 | Agent loops, tool calling, review | | cx/gpt-6.2-astra | 400k | $4 | $20 | Hard reasoning, final escalation |
Two things to note. First, the gap between the cheapest and the most expensive row is roughly four orders of magnitude on input, so the model you pick matters far more than any prompt tweak. Second, the context column is not decoration: the top reasoning model here has the smallest window, so a long agent transcript may not even fit in the model you planned to escalate to. Rates refresh regularly, and the model page is authoritative.
Where the savings actually come from
Take a support-triage step: read a ticket, return a category and a priority. Say the average ticket plus instructions is 5,000 input tokens, the structured answer is 300 output tokens, and you process 100,000 tickets a month. That is 500 million input tokens and 30 million output tokens per month. Here is the illustrative math using the from-rates above (plus cx/gpt-6.2-sol at $1 input / $5 output):
| Model | Input cost | Output cost | Monthly total | |---|---|---|---| | zai/glm-5.4 | $1.75 | $0.33 | $2.08 | | cc/claude-sonnet-5-5 | $125.00 | $37.50 | $162.50 | | cx/gpt-6.2-sol | $500.00 | $150.00 | $650.00 | | cx/gpt-6.2-astra | $2,000.00 | $600.00 | $2,600.00 |
That table is the whole argument for routing, and also its trap. A triage step does not need a frontier model if a small one returns the right category, and the price difference is enormous. But nothing in the table tells you the accuracy of each row. That number comes from your own evaluation set, and without it you are not comparing costs, you are guessing.
Prompt caching narrows the gap less than people expect. On AtmoRouter, cached input is billed at 10% of the input rate where the model supports it. If 80% of your input tokens hit the cache, your effective input rate is 28% of the list rate: 20% paid in full plus 8% for the cached share. That saves the most dollars on the expensive models, but it never turns a $4 model into a $0.0035 one for the same work.
When the cheap model costs more
Routing saves money only when the small model succeeds often enough. Every miss is paid twice: once for the wrong answer and again when the task is retried on a larger model. Using the same 5,000 / 300 token shape, one call to cc/claude-sonnet-5-5 costs about $0.0016 and one call to zai/glm-5.4 about $0.00002. The small model's call is so cheap it is almost noise, so the real cost of a miss is the escalation.
With escalations going to Sonnet, the same 100,000-ticket month looks like this (illustrative):
- 95% small-model success: 100,000 small calls plus 5,000 escalations, about $10.21
- 80% success: 100,000 small calls plus 20,000 escalations, about $34.58
- 50% success: 100,000 small calls plus 50,000 escalations, about $83.33
So even a coin-flip success rate costs about half of sending everything to Sonnet, and a 95% rate costs about 6%. The break-even point is a property of your evaluation set, not of the price list. The expensive failure is different: the small model answers confidently and wrongly, and nothing escalates. That is a quality problem with no line on the invoice, which is why the eval set and a confidence threshold come before any price table.
A routing pattern that keeps the bill honest
The cheapest way to find your real success rate is to log it. A minimal pattern: try the small model, escalate on low confidence or an unknown label, and record which model answered.
pythonimport json
import os
from openai import OpenAI
client = OpenAI(
base_url="https://atmorouter.dev/v1",
api_key=os.environ["ATMOROUTER_API_KEY"],
)
CHEAP = "zai/glm-5.4"
ESCALATE = "cc/claude-sonnet-5-5"
ALLOWED = {"billing", "bug", "question", "other"}
THRESHOLD = 0.8
SYSTEM = (
"Classify the support ticket. Reply with JSON only: "
"{\"category\": one of billing, bug, question, other, "
"\"confidence\": a number between 0 and 1}"
)
def classify(model: str, ticket: str) -> dict:
resp = client.chat.completions.create(
model=model,
messages=[
{"role": "system", "content": SYSTEM},
{"role": "user", "content": ticket},
],
temperature=0,
response_format={"type": "json_object"},
)
result = json.loads(resp.choices[0].message.content)
result["model"] = model
result["usage"] = resp.usage.model_dump()
return result
def triage(ticket: str) -> dict:
result = classify(CHEAP, ticket)
ok_label = result.get("category") in ALLOWED
confident = float(result.get("confidence", 0)) >= THRESHOLD
if ok_label and confident:
return result
# Low confidence or an unknown label: pay once more for the stronger model
return classify(ESCALATE, ticket)Three details make this cheap to operate. The system prompt is short and stable, so it is a good cache candidate. Every result records the answering model and its usage, so cost per ticket and the true escalation rate come from logs rather than estimates. And the threshold is a variable: lower it to escalate less, raise it to miss less. JSON mode support depends on the model, so if yours does not accept response_format, drop the parameter and parse defensively. Failed requests are never billed, so an errored call adds nothing to the cost of a ticket.
FAQ
Is a small model good enough for classification?
Often yes, when the labels are few, well defined and shown with examples. It is the wrong place to save when the judgement is nuanced. Build a set of a few hundred labelled examples and measure before you trust it.
Should I route by task or by customer?
By task. The same request can be cheap to classify and expensive to resolve, so put the small model on the classify step and keep the strong one for resolution.
What about latency?
Smaller models generally answer faster, but this post makes no speed claims. Measure time to first token yourself; the latency guide linked below explains how.
Does this work with the Anthropic protocol?
Yes. AtmoRouter also speaks the Anthropic Messages protocol; the docs list the base URL, and the model ID goes in the model field as usual.
Next step
Pull the current rates for the models in your eval set from the model list and the pricing page, then compute your own version of the table above. For the mechanics around routing, see the prompt caching, retry and fallback and latency guides on the AtmoRouter blog.