Azure OpenAI routing

Azure OpenAI router for enterprise deployment failover

Use Sage Router as the OpenAI-compatible policy layer in front of your authorized Azure OpenAI deployments. Keep AZURE_OPENAI_API_KEY, AZURE_OPENAI_ENDPOINT, deployment names, and Azure subscription access under your custody while agents use one stable endpoint.

Create API key Read quickstart OpenAI-compatible setup Browse models

Azure tenant custody

Configure Azure OpenAI as an authorized provider route using your own AZURE_OPENAI_API_KEY and AZURE_OPENAI_ENDPOINT. Sage Router does not grant Azure, OpenAI, or Microsoft subscription access.

OpenAI-compatible setup

Point OpenAI SDKs, Codex, Cursor, Aider, Continue, OpenHands, and gateway-compatible clients at https://api.sagerouter.dev/v1 while the router maps policy profiles to Azure OpenAI deployments and fallback routes.

Deployment routing

Route by model profile, Azure deployment name, provider health, latency, credential health, and capability requirements instead of hard-coding every agent to one Azure deployment.

60-second Azure OpenAI setup

export OPENAI_BASE_URL=https://api.sagerouter.dev/v1
export OPENAI_API_KEY=sk_sage_your_generated_key
export AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com
export AZURE_OPENAI_API_KEY=your_authorized_azure_key

curl "$OPENAI_BASE_URL/chat/completions" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sage-router/frontier",
    "messages": [{"role": "user", "content": "Use the best healthy Azure OpenAI or fallback route"}]
  }'

Credential load balancing

Credential pools can distribute traffic across authorized Azure OpenAI keys, endpoints, or deployment paths and fail over when one route is exhausted, revoked, rate-limited, or unhealthy.

429 failover

Retryable rate limits can move to another eligible Azure credential, Azure deployment, OpenAI-compatible provider, local Ollama model, or private endpoint according to your policy.

Multimodal safeguards

Image, audio, video, and document inputs route only to capable models, so auto and agentic profiles do not send multimodal work to incompatible deployments.

Provider authorization boundary

Sage Router sells routing, generated keys, quotas, account management, analytics, and reliability infrastructure. It does not include bundled Azure OpenAI resale, does not bypass Azure or OpenAI terms, and does not grant unauthorized Azure, OpenAI, or Microsoft account access.

Next steps

Create an API key, copy the hosted quickstart, use the OpenAI-compatible setup, or estimate routing fit.