LLM Cost Control with Tiered Model Routing: Per-Task Economics and Escalation
Enterprises often default to the strongest available large language model or switch to the cheapest one to cut costs. This article argues for a two-tier routing approach based on task complexity: a high-capability tier for uncertain, multi-step, highly constrained professional work, and a low-cost tier for well-structured, fault-tolerant, high-volume routine work. It explains how to compare billing dimensions, calculate expected per-task cost rather than relying on leaderboard scores, design rule-based routing with escalation on failure, and add engineering controls for caching, output contracts, observability, and change management. It also provides a practical rollout sequence and notes that security and compliance requirements apply equally to both tiers.
LLM Cost Control with Tiered Model Routing: Per-Task Economics and Escalation
A common mistake when adopting large language models is to treat the strongest model as the default option, or to treat the cheapest model as the primary cost-reduction lever. A more reliable approach is to tier by task complexity. One tier handles high-uncertainty, multi-step, strongly constrained professional work. The other handles routine work that is clearly structured, more tolerant of errors, and called frequently. The two tiers are not simply an expensive-versus-cheap relationship. They combine positioning, price elasticity, and failure cost.
Why Two Tiers Instead of One Model for Everything
Professional tasks often involve long context, multiple rounds of tool calls, strict formatting, and traceable conclusions. The cost of failure in these requests is high: rework, human review, and business interruption can amplify what looks like a modest token bill. Routine tasks are different. Their value per call is low, concurrency is high, and marginal cost is more sensitive.
If all traffic goes to the high-capability tier, bills and queueing latency will rise. If all traffic goes to the low-cost tier, hidden quality regressions are likely in scenarios such as coding, legal clause application, and precise calculation.
The goal of tiering is not to top a particular leaderboard. The goal is to minimize the total cost of completing one acceptable task. Total cost includes at least input and output tokens, cache hits, retries, human spot checks, and the cost of repairing incorrect results after they enter downstream systems.
Separate the Billing Dimensions
Common usage-based billing breaks a call into three categories: fresh input, reusable cached input, and model-generated output. Their unit prices usually differ significantly. Output is often much more expensive than input, while cached input is clearly cheaper than fresh input. A practical optimization order is therefore:
- First, reduce unnecessary output: limit verbose explanations, require structured fields, and prevent the model from repeating the entire context.
- Next, improve the stability of cacheable prefixes: keep system prompts, tool descriptions, and fixed specifications in the prefix and change them as little as possible.
- Finally, compress business input: summarize, retrieve snippets, and trim fields without removing the evidence the task needs.
Caching is not free correctness. If a prefix contains volatile data such as the current date, user PII, or a one-time ticket ID, the hit rate will fall and cross-talk may occur. Stable instructions and public knowledge boundaries are suitable for caching. Personal data and evidence that changes on every call are not.
Price changes should also be compared on the same basis. If the high-capability tier drops in price while the low-cost tier stays the same, the price gap narrows and the routing threshold must be recalculated. A previous rule of “use the low tier unless the high tier is necessary” may become “use the high tier directly on critical paths because it is more cost-effective.” Use the same billing period, the same cache policy, and the same output length cap in comparisons. Do not mix promotional prices with list prices.
Decide with Per-Task Cost, Not Leaderboard Scores
Agent benchmarks or internal ticket replays often report a top score and a per-task cost. When scores are close, costs can differ by several times. A more useful metric for procurement and architecture is the expected cost of completing a standard task while reaching an acceptable business quality level.
Expected cost can be expressed as:
Expected cost ≈ (input cost + cache cost + output cost) × (1 + retry rate) + human review cost × sampling rate + downstream failure cost × failure rate
Failure rates should be estimated separately by domain. Independent evaluations often show that the same model ranks high on scientific question answering, spatial or 3D descriptions, and some math problems, while its coding gains are limited. A low-cost tier may spend less overall but slip in ranking or score on some coding or legal questions. This means “close to the high tier” is usually close on average or on certain subsets. It cannot be extrapolated to every professional domain.
For evaluation, build a small but hard internal set instead of relying only on public leaderboards:
- Stratify samples by domain: scientific review, geometry and 3D constraints, calculation problems, repository-level edits, and contract clause application.
- Give each sample an automatically verifiable acceptance condition, supplemented by human spot checks.
- Fix temperature, tool permissions, and maximum steps, and record tokens and retries.
- Run both the high and low tiers, and report score gaps, cost ratios, and failure types rather than only aggregate scores.
Routing Strategy: Classify First, Escalate on Failure
A practical router does not need a complex learning system. Rules plus a fallback are often enough. The logic below is illustrative. Parameters must be calibrated with your own evaluations. Do not copy vendor-published scores or prices.
function route(task):if task.needs_citation or task.is_regulated or task.multi_step_tools:return HIGHif task.domain in {code_change, legal_apply} and task.risk != low:return HIGHif task.context_stable and task.schema_simple:return LOWreturn LOW with escalate_on_failfunction run(task):tier = route(task)result = call(tier, task, cache_prefix=stable_instructions)if not accept(result) and tier == LOW:return call(HIGH, task, prior_errors=result.errors)return result
Escalation conditions should be specific: unit test failure, schema validation failure, missing citations, or a contradiction between tool output and the conclusion. Do not escalate merely because the output “looks unconfident”; doing so will consume the savings from the low tier. Conversely, if historical data shows a high failure rate for the low tier in coding and legal scenarios, default those scenarios to the high tier instead of saving one call and then reworking.
Engineering Controls That Make Tiering Work
Context assembly: cap retrieved snippets at the upper limit needed for sufficient evidence. Put repeated policy text in a stable prefix so it can be cached.
Output contracts: use schemas to constrain fields. If output is too long, truncate it and require the model to return only the differences.
Observability: bill and report by routing tier, domain, cache hit rate, retry rate, and human rejection rate, not only by total tokens.
Change management: treat prompts, retrieval strategies, and tier switches as versions. Run regressions against the same replay set. This prevents cases where quality quietly degrades after a price cut, or where the low tier regresses on new task types without being noticed.
Security and compliance do not relax because of tiering. Data minimization, permission and tool sandboxing, and log redaction apply equally to both tiers. A cheaper tier does not mean it can hold more sensitive data. A stronger tier does not mean human review can be skipped for high-risk conclusions.
Rollout Sequence
- Identify domains with high failure cost and domains with high throughput. Sample 50 to 200 real tasks from each.
- Normalize the billing basis and measure expected per-task cost, not the per-million-token unit price.
- Enable caching only for stable prefixes, and monitor hit rates and their correlation with errors.
- Default to the low tier with escalation on failure. Default to the high tier for high-risk domains such as coding and legal work.
- Review score gaps monthly with a replay set. Recalculate thresholds when price gaps change.
The value of a two-model setup is to spend capability redundancy on genuinely difficult paths and to keep high-volume calls on a low-cost path that still meets acceptable quality. Decisions should be based on domain-level pass rates and total per-task cost, not on a point-in-time promotional message or a single leaderboard.
