BlogInfrastructure

Azure API Management or LiteLLM for companies on Azure

If your models, your identity and your platform team are all on Azure, the AI gateway features in Azure API Management are probably enough, and they spare you a component you would have to patch yourself. LiteLLM is the better fit when you use several model providers, want coding agents such as Claude Code behind the gateway, or want each team to manage its own keys and budget. Running both is also an option. As of 27 November 2026.

By Updated

What Azure offers

Microsoft describes the AI gateway in API Management as a set of capabilities, not a product of its own. You put policies in front of your model endpoints: a token limit per consumer, token metrics, semantic caching, load balancing across backends with a circuit breaker, and content safety checks. It also handles MCP servers and agent APIs. Which of these you get depends on the service tier you run.

Next to it there is now a separate product called AI Gateway. Microsoft announced it in July 2026 as a preview tier of API Management, and its documentation today presents it as a dedicated service for model and MCP traffic with its own catalogue for developers. It is young, and names and scope have moved within a few months. We would not build a rollout on it yet without checking region and preview status on the day you decide.

What LiteLLM offers

LiteLLM is an open-source gateway you run yourself, in Azure or anywhere else. It speaks one OpenAI-compatible API towards applications and translates to more than a hundred providers behind it. Its strength is the part around the request: virtual keys that people create themselves, teams with a budget in money, spend per team and key, an MCP gateway and guardrails. Anthropic and LiteLLM both document how to put Claude Code behind it.

The price is that you operate it. LiteLLM had four serious security incidents in 2026, and each one meant work for whoever runs the gateway.

Side by side

Azure API Management and LiteLLM as an LLM gateway, from Microsoft's and LiteLLM's documentation, checked on 27 November 2026
QuestionAzure API ManagementLiteLLM
Who operates itMicrosoft runs the service, you write the policiesYou run it, or a provider does
How limits workToken limits per consumer, set in policiesBudgets in money and rate limits per team and key
Where usage data goesAzure Monitor and Application InsightsIts own database and interface, with exports to your tools
Models outside AzurePossible as backends, configured by youThe core use case
Coding agentsCheck Anthropic's gateway requirements against your policies firstDocumented by Anthropic and by LiteLLM
If you leave AzureThe policies stay behindThe gateway moves with you

How to decide

  • Everything on Azure, a handful of applications, a platform team that already runs API Management: stay with API Management.
  • Developers with coding agents, several providers, or teams that should see and manage their own spend: use LiteLLM.
  • A firm requirement that nothing self-operated holds provider keys: API Management, and accept its limits.
  • A plan to add your own models on your own servers later: LiteLLM, because it does not care where a model runs.

Running both

The two are not rivals in every setup. One arrangement keeps API Management at the edge, where your network rules, certificates and existing API policies already live, and puts LiteLLM behind it for keys, budgets and model routing. It costs one more hop and one more thing to explain. Do it when you need what each does. Otherwise pick one.

No vendor pays us. We set up gateways on Azure with either product and say so when the simpler one is enough.

Questions

Is Azure API Management an LLM gateway?

It can act as one. Microsoft offers AI gateway capabilities inside API Management, such as token limits, token metrics and semantic caching, and their availability depends on the service tier.

Can LiteLLM run inside our Azure subscription?

Yes. It is a container with a Postgres database and Redis, so it runs on the Azure services you already use for containers and databases. Sign-in can come from Entra ID.

Should we wait for Microsoft's AI Gateway product?

Not if you have a need today. It was announced as a preview in July 2026 and is still changing. Choose from what is generally available now and plan a review in a year.

Talk to an engineer

Bring one piece of work you would like to improve. The call takes 30 minutes and needs no access to your systems or your data.

Booking runs on Google Calendar.

Mickey Graf

Mickey Graf

Founder and CEO of Cloudsail

Rated 4.9 out of 5 on Clutch

Prefer to write first? Leave your email and a few lines. Mickey reads every message himself and replies by email with times for a call.

The button prepares an email in your own email program, for you to send. Privacy policy (draft)