By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
A team moves every model call to the largest tier. Quality on the hard tickets improves, which is what they wanted. Then p95 latency doubles, the monthly bill passes the budget, and the queue backs up at peak.
The fix is not a better prompt. It is a routing decision. Model choice is a constraint problem: find the cheapest, fastest tier that still clears the quality bar on your own tasks.
Claude ships in three tiers. Opus is the most capable, the slowest and the most expensive per token. Sonnet is the balanced middle. Haiku is the fastest and the cheapest, and it is weakest on open-ended reasoning.
Those roles are stable. The exact names, limits and prices are not. Pin the model id you tested, and read the provider's current model page before you quote a number to anyone.
| Tier | Reach for it when | Avoid it when |
|---|---|---|
| Opus | The task needs multi-step reasoning, careful judgement or long agent runs | A short classification or a formatting job is all you need |
| Sonnet | You need strong general quality at workable latency and cost | Traffic is huge and the task is narrow and well specified |
| Haiku | You classify, route, extract or tag at volume against a clear rubric | The input is ambiguous or the answer needs real planning |
Read that table as a default, not a rule. Your evaluation set is the only evidence that counts, and the evaluation section later in this course shows you how to build one.
Every workload has one binding constraint: quality on hard cases, latency at peak, or cost per thousand items. Name it before you name a tier. Then find the lowest tier that clears it on your own tasks.
A cascade is the usual answer. A cheap tier handles everything, and only the hard cases reach the expensive one.
A cascade is not free. The hard cases pay two round trips, and the triage decision can be wrong in both directions. Measure how often it escalates, and how often it should have.
Before you move up a tier, try multi-shot prompting on the tier you already have. Zero-shot gives the instruction alone. Multi-shot adds a few worked examples that show the exact input and the exact output shape.
For a narrow task, examples often close most of the quality gap at the lower price. They also make the behaviour testable, because each example becomes a case you can assert on.
Stop adding examples when the next one teaches nothing new. Ten copies of the same pattern cost input tokens on every call and add no signal.
Model releases change behaviour. A prompt that produced clean JSON can start returning a preamble, a different field name or a longer answer. That is a breaking change in your integration, even when the API version did not move.
Treat a model upgrade as a code change, with the same rules.
ROUTES = {
"triage": {"tier": "haiku", "max_output_tokens": 256},
"draft": {"tier": "sonnet", "max_output_tokens": 1200},
"reconcile": {"tier": "opus", "max_output_tokens": 4096},
}
def resolve(tier: str, pinned: dict[str, str]) -> str:
# Map a tier name to the model id your config pins.
if tier not in pinned:
raise KeyError(f"no model pinned for tier {tier!r}")
return pinned[tier]
# Fixture registry. In your app these ids come from configuration, not source.
PINNED = {"haiku": "cfg-haiku", "sonnet": "cfg-sonnet", "opus": "cfg-opus"}
for name, route in ROUTES.items():
model_id = resolve(route["tier"], PINNED)
print(f"{name:<10} {model_id:<11} max_out={route['max_output_tokens']}")Write the routing table for one endpoint in your service, then argue for the cheapest row.
Key takeaways
Model choice is a constraint problem: name the binding constraint, then pick the lowest tier that clears it.
Opus for hard reasoning, Sonnet as the balanced default, Haiku for narrow high-volume work.
A cascade keeps most traffic on the cheap tier and makes every escalation visible.
Try multi-shot examples before you pay for a bigger tier.
Pin the model id and treat an upgrade as a code change with a regression set.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.