What is LLM model routing
Most work a company sends to AI does not need the most expensive model. A router classifies each request and picks a model by expected quality, cost and speed.
The router sits inside a gateway that every model call passes through. The gateway also holds budgets, fallbacks, data rules and the cost log. Grab’s engineering team wrote in July 2026: if moving between providers takes more than a few config changes, technical debt is already slowing you down.
Which model decisions belong to the CEO
Three choices set the economics of everything above this layer. The first is which workloads justify frontier prices. The second is which data may leave your infrastructure, which decides whether open models run on your own hardware. The third is the unit of work you track cost against.
Uber’s engineering team published its cost equation in August 2026: total spend is users times sessions per user times turns per session times requests per turn times tokens per request times price per token, and each managed agent is tracked by cost per merged change or per review next to a quality signal. Braintrust’s October 2026 version adds the failures: divide total spend on all attempts by the attempts that pass the quality gate.
Routing options compared
Companies combine these four patterns. The table shows where each one fits.
| Option | How it works | Fits when |
|---|
| One frontier model | Every request goes to the top model | Launching a new workload and learning what good looks like |
| Rules first, model as fallback | Versioned rules resolve routine cases; a model handles the rest | Most cases repeat and errors are costly |
| Task-aware router | Each task goes to the cheapest model that meets the bar | Volume is high and tasks vary in difficulty |
| Own or open models behind the router | Post-trained open models take the high-volume tasks | Data must stay inside, or volume makes training pay back |
What drives LLM cost
Databricks named four levers in August 2026: move defaults to newer efficient models, route each task to the cheapest capable model, show teams their spend with progressive friction in place of hard caps, and cut token overhead. All four are set in the gateway.
When agents run long tasks, caching affects cost. Databricks noted in August 2026 that routing for agents has to account for server-side caching, because a cold cache is costly on large contexts; task-level routing hands a whole task to one model.
What companies built in 2026
AT&T runs an internal AI gateway that routes each prompt, turn by turn, to the cheapest adequate model, across an average of 45 billion tokens a day. AT&T says this is reducing AI costs “as much as 90%” and is “already saving millions” (July 2026).
Pinterest’s CEO told investors in August 2026 that open models post-trained on Pinterest data cost less than 8% per transaction of comparable closed models, on Pinterest’s own use cases. A central routing layer sends routine work to lighter models.
Ramp built one routing layer for more than 100 AI use cases, and its Router product shadow-tests candidate models on a sample of live requests. Ramp says the router cut its own LLM costs 30% (July 2026).
Meta reports that its privacy classifier resolves about 85% of traffic with versioned rules in milliseconds. The model handles the remaining 15% at roughly 400 times the compute cost, and a nightly loop turns reviewed model decisions into new rules (June 2026).
Travelers trained TravelersLLM on millions of company documents and routes each query to it or to a frontier model. Travelers says it beat commercial models on quality, cost and speed in internal testing on tens of thousands of insurance questions (June 2026).
How to start with model routing
Put one gateway in front of every model call this quarter and attribute cost to teams and workloads. Pick the three highest-volume workloads, replay a week of real requests against two cheaper models, and compare cost per successful task. Write the result into a routing policy with a named owner.
What you build, decide and measure