Model Router

Model Router documentation
Hydrating page from local storage...

Explore Microsoft Foundry's managed router with text, image input, function tools, structured output, and inspectable routing decisions.

Completed sessions are saved in this browser's IndexedDB. Auto-save optionally retains configuration and drafts with encrypted credentials. Session ZIPs omit credentials and redact sensitive JSON fields. Azure management tokens stay in memory. Provider charges apply. Browser requests use the existing Foundry relay; Azure management requests require CORS access. Hosting infrastructure can interrupt requests near 3 minutes 45 seconds.

Connect to a Model Router deployment to begin. Deployment utilities use a separate Azure management token.
Foundry connection

Use your router's deployment name as the request model. Select v1 for a services or project endpoint. Complete inference URLs are normalized to the API and deployment selected above.

Inference target: Enter a complete public HTTPS endpoint.

Routing and deployment configuration
Request routing diagnostics and session affinity

Adds Foundry-Features: ModelRouterControls=V1Preview. Returned fields can vary during preview.

Reuse an opaque ID across related turns. Body IDs support 1-256 Unicode code points; header IDs use printable ASCII. Affinity is best-effort and expires after 30 minutes without a successful update. Safety, eligibility, quota, and failover still apply. None bypasses association lookup and updates for this request.

Routing trace and affinity reference
Deployment routing and supported model pool

Routing mode and model subsets are deployment settings. Generate the configuration here, then use the Azure deployment utility to apply it.

The active version receives model additions in place. Older versions have fixed pools and support the default settings here. Capacity and the content filter apply across the routed models. Region checks describe your existing account and do not relocate it. Regional access and Azure Policy can further restrict the available pool.

Automatic failover and eligible-model prompt caching are enabled by the service. Select at least two subset models for failover. Cache reuse depends on the selected model and overlapping prompt prefixes. The smallest selected context window limits reliably supported input sizes.

Azure deployment and utility operations

Inspect account models, deployments, and quota. Create, update, and delete actions require a separate management token and confirmation.

Get a management token with Azure CLI

Sign in with az login, then run this command locally. The signed-in identity needs the relevant Azure resource permissions.

az account get-access-token --resource https://management.azure.com --query accessToken -o tsv

Management target: Enter the Foundry account resource ID: /subscriptions/{id}/resourceGroups/{group}/providers/Microsoft.CognitiveServices/accounts/{account}.

Advanced
Inference parameters and tools

Choose a prompt template

Prompt templates

2 templates

Preview the full template without changing your prompt.

Reasoning effort is supported by the current router version when the selected model supports that effort. Reasoning models can ignore temperature, top P, stop, penalties, logit bias, and log probabilities. Use a compatible model subset for consistent capabilities.

Additional Chat Completions parameters
Structured output

For JSON object mode, explicitly request JSON in your instructions. Schema support depends on the routed model.

Function tools None configured

Define function tools in the selected API's wire format. Review calls and provide results manually. Native Responses tools require support by the selected model and Foundry endpoint. Foundry Agent Service tool compatibility is documented separately.

Add supported API parameters here. Guided fields stay owned by their controls; the full JSON editor supports custom request shapes. Guided Responses requests use store: false and replay their saved input and output.

Authentication, preview, session, and transport headers use their dedicated controls.

Request

Request content
Image input 0 attached

20 MiB per image, 40 MiB combined, up to 10 files per selection. Model Router supports vision; routing decisions use text. Audio input is unsupported.

0 completed request(s) in this session
POST Enter a complete public HTTPS endpoint.

Response

See which model handles your task

Connect a router deployment and send a request. The serving model, reported usage, and available routing evidence appear here.

Payloads, response headers, and reusable code

Request credentials are redacted. Response copy and download preserve the returned payload; review account data before sharing it.

An unhandled error has occurred. Reload 🗙