LLM Router
What is LLM Router?
An LLM router is a system that decides which language model should handle each request, sending simple requests to cheaper, faster models and complex ones to more capable models, to balance cost and quality.
Updated November 2026 · 5 min read
An LLM router sits between an application and the models it uses and chooses, for every request, which model should answer. Most applications receive a mix of requests: some are simple, such as classifying a message or answering a common question, and some are hard, such as analyzing a long document or reasoning through a multi-step problem. Sending everything to a frontier model wastes money on easy requests, while sending everything to the cheapest model hurts quality on hard ones. A router makes the choice request by request, a practice often called model routing.
Model routing is one of the most effective ways to reduce AI costs without lowering quality. Because prices between models can differ by a factor of ten or more, moving even a moderate share of requests to a cheaper model can cut spending substantially. For IT financial management, routing turns model choice from a one-time decision into a continuous optimization, and the share of requests handled by each model becomes a key measure of how efficiently an application uses AI.
Definition of LLM Router
An LLM router is software that receives requests intended for a language model and directs each one to a model selected from a pool of available models, based on rules or on a prediction of which model will handle it best at the lowest cost.
Routers are often built into AI gateways, which manage all model traffic for an organization, but they can also be part of an individual application.
Routing Approaches
Rule-based routing uses fixed criteria, such as the type of task, the length of the input or the user's plan, to choose a model. It is simple and predictable but can miss requests that do not fit the rules.
Classifier-based routing uses a small, inexpensive model to assess each request's difficulty or category and choose a model accordingly. It adapts better to varied requests. The classifier itself costs little, since it only needs to judge the request, not answer it.
Cascade routing sends a request first to a cheap model and escalates to a more capable one only if the first answer fails a quality check or the cheap model indicates low confidence. Cascades work well where answers can be checked automatically, such as data that must match a format.
What Routers Optimize
Most routers aim to minimize cost while keeping quality above a set level. Some also consider latency, sending time-sensitive requests to faster models.
Routers can also provide resilience, sending traffic to an alternative model or provider when one is unavailable or rate-limited.
Some routing decisions consider data sensitivity, sending requests that contain confidential information only to approved models or self-hosted deployments.
Importance of LLM Routers in IT Financial Management
Routing directly reduces the average cost per token an application pays, by matching each request to the least expensive model that can handle it.
The savings can be large because request mixes are often dominated by simple requests. If most traffic can be handled by a small model, the cost of the remaining hard requests matters much less.
Routing also makes organizations less dependent on any single model or provider, which helps in negotiations and reduces risk when prices or availability change. Once routing is in place, adopting a new model is a configuration change rather than a rebuild.
Measuring Routing Performance
Key measures include the share of requests sent to each model, the cost per request by model and overall, and quality measures for each route.
Tracking the model mix over time shows whether savings are holding and whether new types of requests are being sent to expensive models.
For cascades, the escalation rate shows how often cheap models fail and how much cost the extra calls add. If escalation rises too high, the cascade may cost more than sending requests straight to the larger model.
Costs and Risks
Routers add some cost and complexity. Classifier-based routing requires an extra model call, although usually a very cheap one.
Poor routing can send hard requests to models that cannot handle them, lowering quality in ways that may not be obvious. Regular evaluation of each route is essential.
Model behavior differs between providers, so prompts and output formats may need adjusting to work consistently across the models a router uses.
How to Implement an LLM Router
Implementing routing involves understanding the request mix, testing models on each type of request and building and monitoring the routing logic.
Starting with simple rules for clearly separable request types is often enough to capture much of the saving.
Designing the Routes
Analyze a sample of real requests and group them by type and difficulty. Estimate the share of traffic in each group.
Evaluate candidate models on each group using an AI evaluation set, recording quality and cost, and choose the cheapest model that meets the quality bar for each.
Implement routing rules or a classifier, and decide whether a cascade with escalation is needed for uncertain cases. Roll out gradually, routing a small share of traffic first and comparing results with the existing setup.
Operating the Router
Monitor model mix, cost per request and quality by route, and set alerts for sudden shifts, such as a rise in requests sent to the most expensive model.
Re-evaluate routes when new models are released or prices change, since a newer small model may now handle requests that previously needed a large one.
Report routing savings as part of AI cost optimization reviews.
Examples of LLM Routers in IT Financial Management
The examples below show model routing reducing costs.
Both use illustrative figures. The first introduces rule-based routing, and the second uses a cascade.
In each, the savings depended on how much of the traffic could be handled by cheaper models without losing quality.
Rule-Based Routing
A company's AI assistant sends all 1 million monthly requests to a frontier model at an average cost of $0.015 per request, or $15,000 a month.
Analysis shows 65% of requests are short questions about company policies that a smaller model, at $0.002 per request, answers equally well in testing. The team routes these by request type.
Monthly cost falls to about $6,550, a reduction of 56%, with no change in user ratings. The team reviews the routing rules each quarter as new small models are released.
A Cascade for Document Extraction
Another company extracts data from invoices with a large model at $0.04 per invoice. It introduces a cascade in which a small model at $0.005 extracts the data first and a validation check sends failures to the large model.
The small model handles 80% of invoices successfully. The remaining 20% cost both the small and large model calls, or $0.045 each.
The average cost per invoice falls to about $0.013, and accuracy is unchanged because every invoice that fails validation receives the large model's attention.
Conclusion
An LLM router chooses which language model handles each request, sending simple requests to cheaper models and complex ones to more capable models, using rules, classifiers or cascades. It is often part of an AI gateway.
In IT financial management, routing is one of the most effective ways to lower AI costs while maintaining quality. Analyzing the request mix, evaluating models for each request type, monitoring model mix and quality by route and revisiting routes as new models arrive help organizations pay frontier prices only for requests that need frontier models.
Related terms
Frontier Models
Frontier models are the most capable AI models available at a given time, typically very large, general-purpose models from leading AI developers, offered at the highest prices in the market.
AI Gateway
An AI gateway is a central layer through which an organization's applications send requests to AI models, providing one point to control access, route traffic, record usage and cost, apply limits and enforce policies.
Cost per Token
Cost per token is the price paid for each token a language model processes, usually quoted per million tokens with separate rates for input and output, and the basic unit price of AI services.
AI Evaluation
AI evaluation is the systematic testing of AI models and applications against defined tasks and quality criteria, used to compare options, catch regressions and confirm that cost-saving changes do not reduce quality.