Lesson 4 of 4 Costs, Benefits and Model Routing

Routing Requests with Model Router

This lesson explains how model router chooses models and how to configure it for cost and quality.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain what model router does.
  • Compare the Balanced, Cost and Quality routing modes.
  • Identify when model router is and is not suitable.

What model router does

Different prompts need different amounts of model capability. A simple greeting or a short lookup does not need the most capable reasoning model, whereas a complex analysis does. Model router is a trained model, deployed in Foundry as a single deployment, that evaluates each incoming prompt in real time and routes it to the most suitable underlying model. The application calls one endpoint, and the router decides which model answers. Model router does not store prompts, and it routes only to models that the customer is eligible to use for the chosen deployment type, honouring data zone boundaries.

Model router is offered as versions; the latest at the time of writing is 2025-11-18, which is updated in place, while earlier versions are frozen. Its set of underlying models includes OpenAI models such as the gpt-5 and gpt-4.1 families and o4-mini, and models from other providers such as Anthropic Claude, xAI Grok, DeepSeek and Meta Llama. Some providers' models must be deployed from the catalogue before the router can use them.

Routing modes and model subsets

Model router lets the architect choose how it trades quality against cost. The following table describes the three routing modes.

ModeBehaviourSuits
Balanced (default)Chooses the most cost-effective model within a small quality band of the best model for the promptMost business workloads
CostAccepts a wider quality band to reduce cost furtherHigh-volume, lower-stakes requests
QualityChooses the highest-rated model regardless of costComplex or high-stakes requests

A model subset restricts the router to chosen models, for example to exclude models that the organization has not approved or that do not meet a residency requirement. New base models are not added to a custom subset automatically. Because failover uses the subset as the fallback set, a subset should contain at least two models.

Design considerations

Model router fits well when request complexity varies widely and the application would otherwise send everything to an expensive model. It is less suitable when every request must use one validated model, for example a fine-tuned model or a model whose outputs were formally approved, because the router may choose a different model for each prompt.

  • Model router is deployed with the Global Standard or Data Zone Standard deployment type, and is available in a defined list of regions.
  • The context window is limited by the smallest underlying model in use, so long prompts may need a subset of models with large context windows.
  • Routing decisions use text, so images are accepted but do not influence the choice of model, and audio is not processed.
  • Usage is charged for input prompts at the rate on the pricing page, so cost analysis should model the expected mix of underlying models.
  • Evaluation and monitoring must cover the mix of models, because quality can vary with the model chosen.
Worked example

Reducing the cost of an internal assistant

An internal assistant built on Foundry sends every request to a large reasoning model. Analysis of a month of traffic shows that 70 percent of requests are short factual questions and 30 percent are complex analyses. The company wants to reduce cost without a noticeable loss of quality, and only models approved by its AI governance board may be used. What should you recommend?

The traffic mix is ideal for model router, because most requests do not need the large model. The recommendation is to deploy model router in Balanced mode with a model subset limited to the approved models, including at least two, and to point the assistant at the router deployment. Balanced mode keeps quality within a small band of the best model for each prompt while sending simple questions to cheaper models. The team should run its evaluation set before and after the change to confirm quality, and monitor which models receive traffic.

Check yourself

Which model router mode chooses the highest-rated model regardless of cost?

Show answer

Quality. Balanced, the default, picks the cheapest model within a small quality band, and Cost widens that band.

Exam Tips

Remember for the exam

  • Model router routes each prompt to a suitable underlying model behind one deployment.
  • Balanced is the default mode; Cost widens the quality band; Quality ignores cost.
  • A model subset limits routing to approved models; include at least two.
  • Avoid model router when every request must use one validated model.