Inference 101, lesson 10
Routing: the right model for each job
Most of your AI jobs do not need your best model. This lesson shows how to send easy work to a small model and hard work to a big one, by a rule, a router or a check, and how to tell whether the routing really saves money.
Every example below changes to fit what you pick. The businesses are made up for teaching.
The picture, one step at a time
Each box is one stage. The picture lights up as you scroll.
Routing, from a job coming in to the right model
1A job comes in
A question, a task, a document to deal with.
2The router decides
A rule you write, or a small model, guesses how hard the job is before any answer exists.
3Easy: a small model
Quick and cheap, and good enough for most everyday work.
4Hard: a big model
Slower and dearer, kept for the jobs that need it.
5Checked, and passed up
Try the small model first. If a check fails, send the job to the big one.
6Scored per finished task
Each route is measured on your real jobs, retries and fixes included.
The right model for each job.
Step 1 of 7
One model for everything is a costly habit
The easy default is to send every job to the best model you have. But most everyday jobs, like sorting an email or looking up a size, do not need it. Picture a doctor's surgery: a nurse sees the simple cases and the specialist sees the hard ones. Routing does the same for AI jobs. Where the picture breaks: the router decides from the question alone, before anyone has seen an answer, so it will sometimes guess wrong.
Step 2 of 7
Start with a table you write
The simplest router is a rule. Most businesses have a handful of job types: labelling emails, answering from a product list, drafting, planning. Write down which model each type goes to. That table is a router, and for many businesses it is the only one they need.
Step 3 of 7
A router that learns
When jobs do not come neatly labelled, a small model can be trained to guess how hard each one is and pick a model for it. The saving depends on your mix. If most of your questions are easy, most go to the cheap model and the bill falls a lot. If most are hard, few can be sent down, and the saving is small.
The RouteLLM paper (Ong and others, 2024) trained routers to choose between a strong and a weak model, and reported cutting costs "by over 2 times in certain cases" without hurting answer quality. Its authors' post gave the spread: at 95% of the strong model's quality, costs fell by over 85% on a test of general chat, 45% on a knowledge test and 35% on a test of school maths.
Why did routing save far more on general chat than on maths questions?
Step 4 of 7
Try small first, then pass it up
Another way: send every job to the small model, check the answer, and pass only the failures up to the big one. This is called a cascade. It needs a check you can trust, such as a sum that must add up or tests that must pass. The catch: a job that fails is paid for twice, once on each model.
The FrugalGPT paper (Chen, Zaharia and Zou, 2023) learned which models to try in turn for each kind of question, and reported matching the strongest single model of the day "with up to 98% cost reduction" on its tests.
Step 5 of 7
Providers route too
Some providers now route for you, inside one product, sending easy questions to a quick model and hard ones to a model that thinks longer. Providers' own guides also suggest two ways to choose: start with a small model and move up only where it falls short, or start with the strongest and move down once it works. Either way, the guides say, the step that matters most is a set of tests built from your own work.
OpenAI described GPT-5 (August 2025) as one system with "a real-time router" choosing between a quick model and a deeper reasoning one. Anthropic's guide to choosing a model (read 29 November 2026) sets out "efficiency-first" and "capability-first" starts, and calls a good test set "the most important step in the process".
Step 6 of 7
A wrong turn has a price
A hard job sent to a small model comes back wrong, and costs a retry or a person's time to fix (lesson 4). An easy job sent to a big model is simply overpaid. So judge a route by its cost per finished task, not by the price of one try. Keep a set of 30 to 50 real jobs, marked easy or hard, and run them through your routes whenever you change anything.
A small model costs a tenth as much, but gets one hard job in three wrong, and each miss takes a person 20 minutes. What do you check?
Step 7 of 7
Write your routing table
For answering customers, list your job types in rows. Give each row a model, a check if one exists, and where it goes when the check fails. Score the table on your test set. Then look again whenever a new model comes out: a job that needed a big model last year may not need one now.
Which model should this go to?
Here are four AI jobs in your business. Sort each one: a small model, a big model, or the small one first with the big one catching failures?
1Every incoming email needs a label: "order", "return" or "other".
2A long, angry complaint mentions a solicitor and three earlier orders that went wrong.
3Working out a partial refund, which a simple rule can check against the items and the order total.
4"What sizes does the linen shirt come in?", answered from your own product list.
0 of 4 right so far, 4 to go.
A routing table
This is what you keep: how to fill in a routing table for your own jobs, and how to tell if it works.
A routing table
- List your AI jobs by type. Give each row a model, a check if one exists, and a fallback.
- Easy, frequent jobs, such as labelling, sorting and short answers from your own facts, go to a small model.
- Rare, hard or high-stakes jobs, such as new problems, long reasoning, or anything a mistake would cost dearly, go to a big model.
- Where a rule or a test can check the answer, try the small model first and pass the failures up.
- Score every row on 30 to 50 of your real jobs, by cost per finished task, retries and fixes included.
- Look again when a new model comes out: a row that needed a big model may not any more.
Pay big-model prices only for big-model work, and let your own test set, not a hunch, decide which is which.
Next: Lesson 11: What a GPU does, and why memory matters most