Model Routing Best Practices: Send Each Request to the Right Model
Model routing sends each request to the cheapest model that can handle it, using clear rules, measured quality and a fallback for hard cases.
On this page
Short answer
Model routing is the practice of sending each request to the model best suited to it, instead of sending everything to the largest model. A simple question goes to a small fast model, a hard reasoning task goes to a larger one, and a request that needs your own data goes to a model with retrieval. Done well, routing cuts cost and latency without lowering quality.
What is model routing?
Model routing is the decision layer between your application and your models. When a request arrives, the router looks at what the request needs and picks which model should answer it. The router can be a set of rules, a small classifier, or a mix of both, and it sits in front of two or more models of different sizes, costs and strengths.
Routing exists because no single model is the right choice for every request. The largest model handles hard reasoning well but costs more and answers more slowly. A small model answers simple questions fast and cheaply but struggles with complex ones. Routing matches the request to the model, so you pay for the large model only when the request needs it.
Routing is not the same as load balancing. Load balancing spreads requests across copies of the same model to handle volume. Routing chooses between different models based on what the request needs. Most production systems need both, and the router is the part that decides quality while the balancer decides capacity.
Define what each model is for
Define what each model is for before you write any routing rules. List your models, what each one does well, what it does badly, and what it costs per request. A model that is good at short answers may be poor at long documents; a model that is cheap may be slow at the volume you need.
| Tier | Model type | Use it for | Watch out for |
|---|---|---|---|
| Fast | Small model | Short answers, classification, extraction | Hard reasoning, long context |
| Balanced | Mid-size model | Drafts, summaries, routine chat | Subtle judgement calls |
| Strong | Large model | Hard reasoning, planning, edge cases | Cost and latency |
| Grounded | Model with retrieval | Questions about your own data | Stale or missing sources |
Keep the number of tiers small. Two or three models cover most applications, and each extra model adds routing rules, evaluation work and failure modes. Add a tier only when the test set shows a real gap between two existing tiers that no rule can bridge.
Which signals should the router use?
The router should use signals that predict how hard the request is. Request length is the simplest signal: a one-line question rarely needs the largest model. The task type is stronger: classification and extraction usually fit a small model, while open-ended reasoning fits a large one. The presence of your own documents points to the grounded tier.
History helps too. If a user has already had two failed answers on the same topic, the next request should go to a stronger model rather than repeating the same mistake. If a request mentions a regulated topic or a high-value decision, route it to the stronger model and add a human check.
Do not let the router guess from the model's own output. A model asked to judge its own difficulty will often say a hard question is easy. Use the request itself: its length, its type, the data it needs and the cost of getting it wrong. Those signals are visible before any model runs.
How do you balance cost and quality?
Balance cost and quality by setting a quality floor and then cutting cost above it. The floor is the minimum acceptable answer quality for each task type, measured on a fixed test set. Any routing change that keeps quality above the floor and lowers cost is a win; any change that drops below the floor is not, however cheap it is.
Measure quality per task type, not overall. A router can look good on average while sending all the hard questions to the wrong model. Track the share of requests each tier handles and the quality score for each tier, and watch the weakest tier first.
Start with a conservative router that sends more to the strong model than you think it needs, then move requests down a tier one task type at a time, measuring quality after each move. Moving everything at once makes it impossible to tell which change caused a quality drop. The evaluation approach is the same one used for implementing RAG: a fixed test set, measured before and after.
Fallbacks: what happens when the first choice fails?
Every router needs a fallback. A model can fail, return a malformed answer, or produce something the checks reject, and the router must have a next step ready. The usual fallback is to retry the same request on the next stronger model, once, and then hand the request to a person if it still fails.
Set a rule for what counts as a failure. A timeout, an empty answer and a failed format check are clear failures. A low-confidence answer is a judgement call: route it to a stronger model or to a human queue, but do not show it to the user as if it were certain.
Log every fallback. If one tier falls back often, the routing rules for that task type are wrong, or the model is the wrong fit for it. A fallback rate that climbs over weeks is a signal to re-measure, not a cost to accept. Fallback design is part of the wider reliability work in MLOps consulting, where monitoring and retraining keep the system honest.
How do you measure whether routing works?
Measure routing with three numbers per task type: the share of requests each tier handles, the quality score for each tier, and the cost per request. A good router moves most requests to the cheaper tiers while quality stays above the floor. A bad router either keeps everything on the strong model, which wastes money, or moves too much down, which drops quality.
Run a shadow test before you change the router. Send the same requests through the old and the new router, compare the answers on the same test set, and only switch when the new router is better on cost without dropping quality. Shadow testing catches routing mistakes before users see them.
Re-measure on a schedule. Models change, prices change, and the mix of requests changes as users learn what the system can do. A router tuned for last quarter's traffic may be wrong for this quarter's. A monthly review of the three numbers per task type is enough for most teams.
Example (hypothetical): a support assistant that routes by question type
Example (hypothetical): a support assistant answers 1,000 questions a day. Today every question goes to the large model, which costs about 4 cents per question, or 1,000 x 4 = 4,000 cents, $40 a day. The team wants to cut that cost without hurting answers.
The team sorts the questions into three types. Simple status questions, such as order tracking, are 500 a day and go to the small model at 0.5 cents each, or $2.50 a day. Routine questions, such as how-to guides, are 350 a day and go to the mid-size model at 1.5 cents each, or $5.25 a day.
Hard questions, such as billing disputes and edge cases, are 150 a day and stay on the large model at 4 cents each, or $6 a day.
The new daily cost is $2.50 + $5.25 + $6.00 = $13.75, down from $40, a saving of about $26 a day, or roughly $780 a month. Quality is measured on a fixed set of 200 questions before and after the change, and the share answered correctly stays at 184 out of 200 in both cases.
The team keeps the fallback: any question the small model cannot answer goes to the mid-size model, and any question that model cannot answer goes to the large one.
What are the common mistakes?
The most common routing mistakes are routing on vibes instead of measurements, adding too many tiers, and having no fallback when a model fails.
- Routing without a test set. Changes are judged by feel, and quality drifts without anyone noticing.
- Too many tiers. Five models mean five sets of rules and five failure modes; two or three cover most apps.
- No fallback. A failed model call becomes a failed user request instead of a retry on a stronger model.
- Letting the model judge itself. A model asked to rate its own difficulty usually says the question is easy.
- Moving everything at once. A quality drop cannot be traced to one change when five changed together.
- Never re-measuring. Traffic mix, prices and models change, and a router tuned last quarter goes stale.
Start with two or three tiers, a fixed test set, and a fallback rule. Move requests down a tier one task type at a time, and measure after each move. If you are building the router as part of a larger product, LLM development covers the model and integration choices around it.
Key takeaways
- Route each request to the cheapest model that can handle it.
- Define what each tier is for, and keep the number of tiers small.
- Use request signals such as length, task type and data needs, not self-judgement.
- Set a quality floor per task type and cut cost only above it.
- Always have a fallback: retry on a stronger model, then hand off to a person.
- Shadow-test routing changes and re-measure the mix every month.
Frequently asked questions
What is model routing in simple terms?
It is the decision of which model should answer each request. Simple questions go to a small fast model, hard questions go to a larger one, and questions about your own data go to a model with retrieval, so you only pay for the large model when it is needed.
How is model routing different from load balancing?
Load balancing spreads requests across copies of the same model to handle volume. Routing chooses between different models based on what the request needs. Most production systems use both, since one handles capacity and the other handles quality.
How many models should a router choose between?
Two or three tiers cover most applications: a fast small model, a balanced mid-size model, and a strong large model, with retrieval added where questions need your own data. Each extra tier adds rules and failure modes.
What signals should a router use?
Request length, task type, whether the question needs your own documents, the cost of a wrong answer, and the user's recent history. Avoid asking the model to judge its own difficulty, since it usually says a hard question is easy.
What happens if the chosen model fails?
The router retries the request once on the next stronger model. If that also fails, the request goes to a human queue. Every fallback should be logged, since a rising fallback rate means the routing rules need fixing.
How do I know my router is working?
Track three numbers per task type: the share of requests each tier handles, the quality score for each tier, and the cost per request. Quality should stay above the floor you set, while the cheaper tiers handle most of the traffic.