Hot AI News

Azure’s AI Gateway can now pick the model for each prompt, free during preview

Microsoft's AI Gateway can now use model router to pick a model for each prompt. The feature is in public preview, and Microsoft's documentation lists no routing fee while it lasts.

Azure’s AI Gateway can now pick the model for each prompt, free during preview
Image: Microsoft

Microsoft has put model router into public preview inside AI Gateway, according to an Azure update published November 23. Apps call one model alias, and the gateway picks a backend model for each prompt. Microsoft’s documentation lists no model router fee during the preview.

The Azure update page did not load its text for us, so the details below come from Microsoft Learn documentation covering the same feature, last updated November 18. Where the two could differ, the documentation is the only source we could read.

Diagram from Microsoft's blog post on the AI Gateway tier of API Management in public preview, the free preview in the story. I did not open the image, and the post does not mention per-prompt model selection.
Image: Microsoft

One alias, many models behind it

Microsoft’s documentation says automatic model selection brings model router from Microsoft Foundry to the model aliases of an AI Gateway. Applications keep calling a single alias. The gateway first applies its usual controls, such as authentication and token or cost limits. Model router then ranks the models behind that alias for the specific prompt.

The ranking follows one of three modes. Balanced is the default and, per the documentation, considers models within a small quality range of the best one (for example 1-2%) and takes the cheapest. Quality picks the strongest model regardless of cost. Cost accepts a wider band (for example 5-6%) and takes the cheapest within it.

Second body image from the same AI Gateway public preview post. It sits after the OpenTelemetry section. I did not open the image.
Image: Microsoft

The gateway then applies its own rules, either “Model first” or “Priorities first”, using priorities from 0 to 100 (lower is preferred) and weights from 1 to 100. As the documentation puts it: “Model router ranks the models, but it doesn’t serve the request.”

Backends can be Foundry or Azure OpenAI deployments, OpenAI and Anthropic endpoints, Amazon Bedrock, Google Vertex AI, or a custom OpenAI-compatible endpoint, as long as the model is one that model router supports. The feature is available in every AI Gateway region and uses API version 2026-11-01. In the AI Gateway portal it is a checkbox labeled “Choose a model based on the prompt”.

Official architecture diagram of the components in AI Gateway and how they connect. This URL is inferred from a relative path on the page and has not been checked.
Image: Microsoft Learn
Advertisements

Free routing for now, but the gateway still bills

Outside the gateway, model router charges a routing fee per million input tokens on top of the chosen model’s own rates, according to Microsoft’s documentation. In the AI Gateway preview that fee is waived. AI Gateway has its own charges, and each backend bills at its own rates. The documentation does not say what the routing fee will be when the preview ends, so the long-term cost is unknown.

The standalone model router currently spans 45 models as of November 18, from OpenAI, Anthropic, Microsoft AI, xAI, DeepSeek, Meta and Fireworks, per the documentation. Which of those a given gateway can use depends on the backends its owner connects.

Preview limits that matter before you switch

The restrictions are specific, and several affect real deployments. Microsoft’s documentation lists these for the gateway preview:

  • Parameters are not adapted between models, so a request with a parameter the chosen model does not support returns an error.
  • In the Responses API, follow-up turns that use previous_response_id go to the same backend without being ranked again.
  • Claude and OpenAI models cannot share an alias, so a single alias cannot weigh an Anthropic model against an OpenAI one.

The last limit narrows the main selling point. A cross-vendor price comparison per prompt has to happen at a higher level, such as separate aliases. The general model router page also says preview features carry no SLA and are not recommended for production workloads. It adds that the router is not available in Azure Government.

The routing quality itself rests on Microsoft’s description. The company says its router is trained on billions of interactions and judges how demanding each request is. We found no independent measurement of how often it picks the right model, or of how much it saves compared with a fixed choice.

What it changes for teams already behind a gateway

Companies that already route traffic through AI Gateway can now delegate part of model choice to a router instead of hard-coding it per alias. The routing logic is Microsoft’s, but the gateway’s limits and priorities still apply. Teams comparing it with other cost-control moves can look at Google’s Gemini API change that bills only the pages and frames it reads, which attacks cost from the input side rather than the model choice.

The feature also fits the broader push by cloud vendors to wrap agents and model access in managed services, as covered in our report on Azure Catalyst. Microsoft has not said when the gateway feature will reach general availability.

Sign Up for the Daily AI Pulse

One email a day. All the stories that matter.

Leo MartinsAI Tools, Prompts & Practical AI Expert

Leo Martins is the AI Tools & Practical AI Expert at Aiholics, focused on helping readers use artificial intelligence to improve productivity, creativity and everyday work.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like