Model Tiering in Practice: Routing, Reasoning Effort, and Cost Control
Choosing which LLM a coding assistant should call is not a one-time product decision. This article breaks model tiering into a practical decision system built from three levers: a medium-tier baseline, task-profile-based routing, and reasoning effort adjustment before jumping to a larger model. It explains how to pick tiers by constraint clarity and verification cost rather than perceived difficulty, how classifier routing, cascade fallback, generator-verifier splitting, sub-agents, and spec pre-research are used to divide work across Haiku 5.5, Sonnet 5.5, Opus 5.5, and Fable 5.2, and why cross-model comparisons must use task-normalized effective cost instead of token prices. A minimal router implementation, a decision checklist, and three common pitfalls are included.
1. The Core Problem: The Choice Space Is a Combination of Three Dimensions
The original discussion centers on how to let a coding assistant freely select different large models. Technically, it is about turning a static model name in a configuration layer into a dynamic decision system that combines runtime routing, reasoning effort adjustment, and fallback.
The source material gives a clear baseline: Haiku 5.5, Sonnet 5.5, Opus 5.5, and Fable 5.2 are available to all users, while Mythos 5.2 is offered selectively through a certification program (strongest in cybersecurity and life sciences). The original guidance is brief: “start with Opus 5.5 on most tasks and keep reasoning effort at the default medium,” on the grounds that Opus 5.5 costs half as much per input and output token as Fable 5.2 and is recommended by the vendor as the starting point for most coding and knowledge work.
The value of that advice lies not in the default itself but in the methodology: set a baseline first, then pick a tier, and finally adjust reasoning effort when you hit a ceiling instead of jumping straight to the top tier. In practice, people misread it in two ways: “always use one model” or “always use the strongest model.” Both destabilize cost.
2. Step One: Establish a “Medium Baseline”
Think of it like ordering coffee: the medium cup (Opus 5.5) is the safest first choice. Not the smallest, because you would need two of them; not the largest, because in most cases you cannot finish it.
This matches the default-configuration habit in API development: moderate capability, controllable cost, low failure probability. From an engineering standpoint:
- The medium tier covers roughly 80% of scenarios: everyday coding, implementation against clear specs, simple refactors, documentation generation.
- Downgrade after verification: switch to a smaller model once functional tests pass, so you avoid a one-shot drop to the lowest tier and the rework it causes.
- The large tier serves specific phases: design, cross-file refactors, complex debugging, and the reflection phase of an agent.
The real trade-off point is the cost of failure. When a mid-tier model fails, the extra cost is one more call. When the largest model fails, the result is often no output at all, a timeout, or context truncation, and that is hard to predict in advance. So choosing “a medium tier that is good enough” rather than “a large tier that cannot go wrong” is the balance point between cost and robustness.
3. Step Two: Tier by Task Boundary, Not by Difficulty
A common mistake is treating “does this task sound hard?” as the tiering signal. A more reliable signal is whether the constraints are explicit and whether errors are verifiable.
| Task profile | Suggested tier | Reason |
|---|---|---|
| Well-bounded routine work (bug fixes, implementation to spec) | Sonnet 5.5 | Specs can be enumerated, verification cost is low |
| Classification, routing, information extraction, batch formatting | Haiku 5.5 | Short single outputs, throughput first, batch retries are cheap |
| Sub-agents / helper roles (collection, retrieval, preprocessing) | Haiku 5.5 | Auxiliary work outside the main task, cost efficiency first |
| The hardest technical work in coding, finance, and science | Fable 5.2 | Requires cross-layer reasoning and long-chain consistency |
| Long unattended tasks | Fable 5.2 or Opus 5.5 at high+ |
A single-point error gets amplified |
Opus 5.5 still falling short at high |
Fable 5.2 | Marginal returns are already diminishing |
Three criteria matter most. First, “clear spec” does not mean “simple task”. A database migration or a performance optimization can be specified very precisely and still be hard to implement: a migration involves data consistency, rollback plans, locking and index strategy, and a performance task requires locating hotspots and weighing read amplification. Even with a perfect spec, such tasks may need Opus 5.5 or even Fable 5.2.
Second, long-chain tasks must be moved up a tier. When an agent runs a dozen consecutive steps, any single wrong judgment along the way is treated as established fact by the steps that follow, so error accumulates over time. A single-step optimum is not a chain optimum.
Third, downstream consistency sets the tier floor. When Haiku handles classification and extraction, you can layer structural constraints on top: a fixed schema, enumerated legal values, JSON output with validation, and automatic retries on failure. That way, even with limited model capability, the output can be consumed reliably downstream.
4. Step Three: Turn Up effort Before Switching Models
This is the most important architectural takeaway from the source material: reasoning effort is a continuous cost knob that is independent of model size.
It behaves roughly like “redistributing the thinking budget”:
# Pseudocode: adjust effort first, consider switching models laterresult = model.generate(prompt = prompt,effort = "medium", # default tier, use first# effort = "high", # raise for complex tasks)
Three rules of thumb:
- Start at
mediumby default. The capability gap betweenmediumandhighon the same model is often larger than the gap between Sonnet and Opus, while the cost gap is much smaller. - Going above
highmay already cost close to a larger model. At that point, put “Opus 5.5 athigh+” and “Fable 5.2 atmedium“ in the same comparison table, total up the cost, and pick whichever is actually the better deal. - Measure it on your own tasks. The payoff curve for
effortis not globally consistent: code-completion tasks saturate atmedium, while multi-hop reasoning, complex debugging, and long-document consistency checks needhighto show a clear improvement.
In engineering terms, make effort a request-level parameter rather than a global constant, and preset tiers by task type:
task_type model effort----------------------------------------classify haiku lowextract haiku mediumimplement_spec sonnet mediumdebug_hard opus higharchitecture opus mediumresearch_long fable high
This splits “switching models” and “adjusting effort” into two orthogonal dimensions, so most cost optimization can happen within one model family, with cross-tier upgrades reserved for the inflection point of the payoff curve.
5. Five Main Patterns for Multi-Model Work Division
1. Classifier Router
Use Haiku to coarsely classify a request and decide which model handles it downstream:
# Pseudocodecategory = haiku.classify(request) # lightweight classificationmodel = {"simple_fix": "sonnet","spec_impl": "sonnet","hard_refactor": "opus","research": "fable",}[category]return model.generate(prompt, effort=DEFAULT_EFFORT[category])
Classification itself must be cheap and stable; otherwise the routing overhead eats the savings. In practice, restrict the output to a small set of mutually exclusive categories and require enumerable labels, to avoid routing jitter.
2. Cascade and Fallback
Start with Haiku, escalate when results fall short; or configure a retry chain on failure. The key is to define a clear criterion for “not good enough”: output fails schema validation, unit tests fail, confidence is below a threshold, response times out. A cascade without an objective criterion degenerates into “run everything twice.”
3. Generator–Verifier Split
Have a strong model generate and another strong model review, forming cross-validation. This is an effective counter to “confident but wrong,” at the cost of doubling calls, so reserve it for stages where errors are expensive: architecture reviews, migration script review, security-related code review.
4. Sub-agents
The main model keeps the context and global state and hands auxiliary work to Haiku sub-agents: retrieval, summarization, format conversion, batch information extraction, initial test-case filtering. The value of sub-agents is isolating context pollution: the main context keeps only conclusions and necessary citations, not the raw long text.
5. Spec Pre-Research
Before formal implementation, run a spec pre-research pass with Fable: decompose the task, list risks, draft interfaces, and produce a verification checklist. The pre-research output is fixed as a structured document, and implementation is handed to the medium-tier model. This is equivalent to moving the hardest piece of reasoning into a cheaper and more controllable stage, trading one high-investment pass for many subsequent low-cost executions.
6. How to Actually Calculate Cost
Cross-model comparison cannot look at unit price alone; it requires task-level normalization:
effective cost = unit price × (1 + retry rate) × average turns × mean tokens ÷ task success rate
None of the four variables can be dropped:
- Retry rate: small models are cheap per call, but one failure means a rerun, and after three retries the cost can exceed the medium tier.
- Average turns: in agent mode, insufficient model capability leads to more interaction turns.
- Mean tokens: stronger models produce more verbose output, and output tokens usually cost more than input, so long output inflates the bill.
- Task success rate: the denominator is the most critical. A cheap model with a 60% success rate has an effective cost of more than twice its sticker price.
So the recommendation is to run an A/B test on a small set of real tasks: run the same batch with “medium tier at medium“ and “large tier at medium“, record success rate, turns, and total tokens, then decide whether to move up a tier. This matches the intuition of “start with the medium cup, upgrade if it is not enough,” but gives you a quantifiable criterion.
7. A Reference Implementation
A minimal, extensible abstraction layer that turns “freely choosing a model” into a configuration item rather than a code change:
# Illustrative code: a model tiering router (interface and parameter names are generic placeholders)class ModelRouter:def __init__(self, registry, default="mid"):self.registry = registry # registered clients for each tierself.default = defaultdef pick(self, task):# 1) explicit specification winsif task.model:return self.registry[task.model]# 2) tier by task profilereturn self.registry.get(task.tier, self.registry[self.default])def run(self, task):model = self.pick(task)result = model.generate(prompt=task.prompt,effort=task.effort, # adjust effort firstschema=task.schema, # structured output constraint)if not task.verify(result):# 3) verification failure triggers escalation, at most two levelsfor tier in task.escalation:model = self.registry[tier]result = model.generate(task.prompt, effort="high", schema=task.schema)if task.verify(result):breakreturn result
Design points:
- The task object carries four attributes:
tier,effort,schema, andverify. This moves the tiering policy out of code and into data, making it easy to tune per business line. - The verification function is a prerequisite for the cascade. Without an automatic criterion, escalated retries have no termination condition.
- The registry decouples concrete implementations. Adding a model only requires registering it; routing logic stays unchanged, avoiding binding to a particular brand or interface.
- Failures must be observable. Log the tier,
effort, tokens, latency, and whether a retry happened for every call; otherwise you cannot back out the cost and payoff curves.
8. Decision Checklist
- Baseline: start most tasks with the medium tier plus
medium, and consider downgrading only after verification. - Tiering signal: look at constraint clarity and verification cost, not subjective difficulty.
- Ceiling: do not downgrade a task just because the spec is clear when the implementation is extremely hard.
- Escalation signals:
highstill falling short, long unattended runs, errors that get amplified along the chain. - Cost optimization order: lower
effortfirst, then lower the tier, and only then consider a cross-generation upgrade. - Batch scenarios: let Haiku handle classification, extraction, routing, and sub-agents, combined with structured output and validation.
- High-risk stages: use a two-model generator–verifier cross-check, but only where the cost of error is high.
- Measurement: compare normalized effective cost, not unit prices.
9. Common Pitfalls and Wrap-Up
Three frequent pitfalls are worth calling out separately.
One, treating “cheap” as “saving money.” Comparing unit prices while ignoring retry rate and turns almost certainly underestimates the total bill for small models.
Two, treating effort as a global constant. Reasoning effort should be preset by task type; hard-coding a single value throws away half of the adjustment space.
Three, lacking observability. Without call logs broken down by tier and effort, you cannot tell whether a given escalation was a necessary investment or waste, and optimization becomes guesswork.
Back to the topic: “letting a coding assistant freely choose different large models” is not a one-time product selection in engineering, but a mechanism that keeps evolving: baseline + tiering + reasoning effort adjustment + verification fallback. Build it as a configuration and routing layer, and model iterations require no changes to business code; build it as an observable cost model, and investment can be continuously calibrated against returns.
On a platform such as Baidu AI Cloud, which offers model services along with elastic compute, containerized deployment, and logging, monitoring, and alerting capabilities, the patterns above can be implemented directly as a unified inference gateway: use generic interfaces to hide differences between underlying models, configure tiering policy per business line, and continuously calibrate normalized cost with logs and monitoring. That turns “which model should I pick” from a recurring point of hesitation into a governable, measurable, and evolvable architecture decision.
