If your product calls a large language model for every task, you are probably paying top-tier prices for easy work. Routing fixes that: sort each task by difficulty and send it to the cheapest model that can do it well. Here is a practical way to try it, with the evidence and the limits.
What the evidence says
- RouteLLM (LMSYS, peer reviewed at ICLR 2025) cut cost by over 85% on MT Bench, 45% on MMLU and 35% on GSM8K against GPT-4 only, while keeping 95% of GPT-4 quality. Those are public benchmarks, not your traffic.
- Databricks reports 30% or more lower cost per task on real coding work. Cloudflare reports up to 30% in its own use. LiteLLM reports 46% less cost in an experiment. These are vendor claims.
- Zan Digital calculated from rate cards that the flagship to small model cost ratio went from about 5x to about 80x between the end of 2025 and November 2026. One analyst, not checked per rate card.
So the saving is plausible. Whether you get it depends on your own tasks.
A minimal router, as a sketch
This is an illustration of the idea, not a tested library. Replace the model names and the checks with your own.
def route(task, models, check): # models: ordered cheapest to most capable for model in models: answer = model.run(task) if check(task, answer): # your quality check, not a guess return model.name, answer return models[-1].name, answer # fall back to the best model # check() can be a schema test, a unit test, a rule from an expert, # or a score from a stronger model on a small sample. Two choices matter more than the code:
- Sort by difficulty first if you can. Short lookups and summaries start at the small model. Long reasoning or high-risk work starts higher.
- Make
checkreal. A weak check hides quality loss. Most hosted routers decide before the answer exists and do not inspect whether a cheaper answer was good enough. Checking on your own prompts is the part worth building.
How to test it before you trust it
- Take 200 real tasks from your own logs.
- Run all of them on the top model and on the router.
- Have a person, or a strong model plus a human spot check, rate both outputs without labels.
- Compare cost per finished task and the share rated acceptable.
- Ship only the task types where the router matches the top model.
Record the result per task type. A router may save a lot on one type and hurt on another.
Where this goes
Deloitte says the era of picking one enterprise model is over and that routing may become a control plane for cost, performance and policy. That is a big claim from one report. The practical read: gateways from Cloudflare and Databricks and funded routers already exist, so a new builder needs a narrow edge. A domain you know, or proof of quality on each customer's own data, are two candidates.
Sources: LMSYS RouteLLM (Jul 2024); Databricks (Aug 13, 2026); Cloudflare (Sep 30, 2026); LiteLLM (Sep 7, 2026); Deloitte Insights (Nov 30, 2026); Zan Digital (Nov 24, 2026).
Which of your tasks still go to the most expensive model by default?
