AI model routing: how to send each request to the right model
What model routing means and why one model for everything costs you
Model routing means choosing a model for each request instead of sending every request to the same one. Most business workloads mix easy and hard work. Classifying a support email or pulling a date from an invoice rarely needs the strongest model, while drafting a contract clause or reasoning through an unusual complaint often does.
Using one top model for everything is simple to build, but it spends more than most tasks need. Using one cheap model for everything is inexpensive, but it can quietly fail on the hard cases. Routing lets you match the model to the task, and it gives you a second option when a provider has an outage.
How a router decides which model to use
A router is a small piece of logic that looks at a request before the model is called and picks a route. Most teams start with simple rules and add complexity only when their data shows they need it.
- Task type: a label such as classify, summarise, extract or draft, set by the feature that sends the request.
- Size and complexity: short, clear inputs go to the fast model, while long or ambiguous ones go to the stronger model.
- Customer or channel: premium users, a regulated product line or a particular language may have their own route.
- Escalation: the fast model answers first, and a check on its output, such as a format test or a confidence rule, sends weak answers on to the stronger model.
Set the routing rule from your own test results
The rule should come from evidence on your own requests, not from a public leaderboard or a guess. A general benchmark tells you little about your invoices, your customer emails or your product names.
- Collect a sample of real requests for each task type, including the awkward ones, and remove personal data that the test set does not need.
- Write a scoring rubric in plain terms, such as the right field was extracted, the tone is right, nothing is invented and the length is within limits.
- Run every sample through each candidate model, and record the output, the score, the response time and the cost per request.
- For each task type, choose the cheapest model that meets your quality bar, and keep the result in a short table your team can read.
- Repeat the test when you change prompts, when a provider releases a new model, or when pricing changes. Check current prices on each provider's pricing page rather than relying on an old figure.
Fallbacks when a provider is slow or unavailable
Providers have slow periods and outages, and a request that hangs is a broken feature. Plan the fallback before you need it. Set a time limit for each call, and when the limit passes or the provider returns an error, send the same request to a second model from a different provider.
A fallback only helps if it has been tested. Check that the backup model handles your languages, returns the same output format and meets your data rules, because a backup in another region can break a residency promise you have made to a customer. Do not retry an identical request again and again. Change the route, log the failure and tell the user what happened.
Mistakes people make with model routing
Most routing problems come from a few habits that look sensible at first. Watch for these when you review a design.
- Routing on price alone, so a cheap model handles the cases where a wrong answer is costly.
- Writing prompts for one model and never testing them on the others, so a switch breaks the output format.
- Hard-coding model names in many places, which turns every model change into a code release.
- Not logging which model answered each request, so nobody can explain a bad answer later.
- Sending everything to the strongest model out of caution, and paying for quality that the task never needed.
Where to check current model options and prices
Model names, context limits, regional options and prices change often. Read the current model list and pricing page on each provider's website, and check the provider's data terms before you route any personal or confidential data to it.
Keep the routing table in one place, so a change there updates every feature that uses it. That single point of control makes later tests and fallbacks much easier to manage.
How Hundred Seas helps
Hundred Seas is a product studio in Taipei. We build on Claude and on OpenAI models, and we choose the model for each task on cost, speed, quality and where the client's data has to stay. Routing is that same choice written down as a rule that your software follows on every request.
Every engagement begins with a scope step of about one week at a fixed price. You receive a written plan, a clickable prototype and a firm quote before the build starts. The build runs in weekly releases of working software, and a monthly run plan keeps the routes tested as models change.
Questions
- Is model routing worth the effort for a small team?
- Often yes, once you have more than one kind of AI task. Start with two routes, a fast model for simple work and a stronger model for hard work, and measure the difference on real requests. If every task needs the same quality, one model may be enough, and a router would only add complexity.
- How do I know which model is good enough for a task?
- Build a small test set from real cases, score each model's answers against a written rubric, and choose the cheapest model that passes your bar for that task. Include difficult cases in the set, because a model that handles easy cases well can still fail on the edge cases that cause complaints.
- What happens if my main AI provider goes down?
- A well-designed system switches to a tested backup after a time limit, logs the event and tells the user if a delay is likely. The backup should already have been checked for language, output format and data rules. Without a tested fallback, an outage turns into a broken feature.
- Does routing change the quality of answers?
- It can, in either direction. Sending simple tasks to a smaller model rarely hurts when the test results show it passes, but sending hard tasks to a weak model does. Measure the quality of each route, not the average across all requests, because the average hides the failures.
- How often should I review the routing rules?
- Review them when you change prompts, when a provider releases a model you might use, and when pricing or data terms change. Also read the logs each month for requests that failed or were escalated, because those patterns show where a rule needs adjusting.