What is model routing?
Model routing selects an AI model for each request, balancing answer quality and cost with the constraints that apply to the task and the company data involved.
Model routing is the selection of an artificial intelligence model for a request from among several available models. A component called a router examines the request and applies a rule or an estimate to decide where to send it. For example, it may assign a routine question to a less expensive model and a high-stakes request to a more capable one, provided both are authorized to handle the data involved. Routing aims to balance answer quality, cost, and response time; it does not guarantee that the selected model will answer correctly. The router can use predefined categories or be trained on human comparisons of answers. Its effectiveness depends on the candidate models and actual requests: a score on public benchmarks may not carry over to a company's own traffic. Errors and costs therefore need to be measured on the intended use before the router is trusted with operational decisions.
See also: AI gatewayAn AI gateway is an intermediary that sits between applications and AI models and can apply shared access, routing, and usage rules to incoming requests.
How it works in practice
An explicit rule can assign requests by task type or data sensitivity. A trained router, by contrast, estimates which model to pick: the RouteLLM study uses human preference data to choose between a stronger and a weaker model. In one test the authors report cutting cost by more than half compared with random selection between the two models, while reaching 95% of the stronger model's score; the result holds under those experimental conditions, not for every application.
A different approach is a cascade: it tries one model first and moves to the next if the answer fails a check. The FrugalGPT paper studies exactly this kind of model sequence. A cascade can add calls and latency, while a router has to choose before it can see any answer. The router can be part of an AI gateway, the layer that manages access to models, but the two functions are distinct.
An enterprise example
A customer service department wants to help staff draft responses. The company compares a single model with a router: questions about business hours go to the cheaper model, while complex complaints go to the more capable one. The company first rules out any model not authorized for the data in a request, then tests both setups on a representative sample against a random choice between the two models at the same cost, measuring correctness, errors on complaints, response time, and total cost, including human review. The example is hypothetical: savings must be measured rather than assumed.
Why it matters for decision makers
A useful benchmark pits the router against a fixed model and a random choice between two well-chosen models at the same cost. A preprint on commercial routers finds that, in the authors' tests, none of the six systems examined outperforms random selection at matched cost. The finding does not cover every router; it does justify asking for evidence on your own workload.
Buyers can request the list of permitted models, selection criteria, data handling terms, and how each routing decision is logged. Service owners must monitor errors, response times, and spending, especially when models or the request mix change. AI tokenomics examines cost in more detail, while routing decides which model gets each task.
Frequently asked questions
Related terms
- AI gatewayAn AI gateway is an intermediary that sits between applications and AI models and can apply shared access, routing, and usage rules to incoming requests.
- Flash modelsThe tier of a model family tuned for latency and cost rather than peak capability: Flash, Haiku and equivalents.
- InferenceAI inference applies a trained model to new data to produce predictions or responses; latency and cost depend on the workload and the infrastructure behind it.
- AI tokenomicsAI tokenomics examines the cost of tokens used by generative models and compares it with the results, quality, and operating costs of a business service.
- OpenRouterOpenRouter is one API for dozens of models from different labs: how it routes requests, what an extra intermediary adds, and when going direct is better.