Last verified

Building with models AI glossary

What is model routing?

Model routing is sending each request to one of several models — usually the cheapest one able to handle it — based on a rule or a classifier, instead of using one model for everything.

At a glance

  • How it works: A router inspects the request — its length, type or predicted difficulty — and picks a model; hard cases go to a large model, easy ones to a small one.
  • Why it matters: Per-token prices span orders of magnitude between small and frontier models, and most traffic in most products is easy.
  • What it costs: The router itself, if it calls a model, plus the risk of misrouting: an easy model on a hard task can cost more in retries than it saved.
  • Related to: Reasoning effort, blended rate, AI agent, price per million tokens.

How routing works

The simplest routers are rules: classification requests to a small model, code generation to a coding model, anything over a length threshold to a model with a large window. Learned routers go further and predict, per request, whether a cheaper model's answer will be good enough. The RouteLLM paper (Ong and colleagues, 2024) trained such routers on human preference data and reported cutting costs by over two times in certain cases without a loss in response quality on its benchmarks.

A cascade is the sequential version: try the cheap model first, check the answer — with a validator, a confidence score or a test — and escalate to a stronger model only when the check fails. Cascades suit tasks where answers can be verified automatically, such as code that must pass tests or extractions that must match a schema.

Why routing saves money

Rates differ enormously between the smallest and largest current models in our price index, while the share of requests that genuinely need a frontier model is usually small. Routing turns a product's cost from the price of its best model into a blend weighted by how traffic splits. The worked example below prices the same month of traffic on one large model and on a split.

Routing also happens inside one model. Reasoning models let you set effort per request — low for a quick reply, high for a hard problem — which captures some of the same saving without operating two models.

Worked exampleOne large model vs a routed split

100,000 requests a month on Claude Sonnet 5.5, priced at its current list rates, checked on 2026-10-09.

All traffic on Sonnet 5.5
Input · 200M tokens @ $2.00/M$400
Output · 40M tokens @ $10.00/M$400
Blended · per 1M tokens billed$3.33
Per request$0.008
Per month$800
Only the hard 20% on Sonnet 5.5 −80%
Input · 40M tokens @ $2.00/M$80.00
Output · 8M tokens @ $10.00/M$80.00
Blended · per 1M tokens billed$3.33
Per request$0.0016
Per month$160

A simplification for illustration: the second column scales the Sonnet traffic down to the 20% of requests a router would send it. The other 80% would run on a small model — price that share on its own model page, such as Claude Haiku 5.5, and add it to see the full routed bill.

Change the workload or the model in the LLM API cost calculator.

Where routing goes wrong

  • Misrouting hard requests — a cheap model's wrong answer can cost a retry on the expensive model, or a user, which outweighs the saving.
  • A costly router — a classifier that calls a large model on every request eats into what it saves.
  • Lost cache hits — splitting traffic across models splits the prompt cache; each model warms its own.
  • Drift — model releases and retirements change what each tier can do; routes need re-evaluation.

Frequently asked.

Short answers to the questions that come up next.

Q · 01 What is an LLM router? +
Software that picks which model handles each request — by rule, or with a classifier that predicts whether a cheaper model will answer well enough.
Q · 02 How much can model routing save? +
It depends on how much of your traffic is easy. The RouteLLM research reported cost reductions of over two times in certain cases; your figure is the share of requests a small model can serve times the price gap.
Q · 03 What is the difference between routing and cascading? +
Routing decides up front which model gets a request. A cascade tries a cheap model first and escalates only if a check on its answer fails.