BlogInfrastructure

AI gateway, LLM gateway, MCP gateway, API gateway: the difference

An API gateway manages traffic to your own services. An AI gateway manages calls from your applications to language models, and LLM gateway is another name for the same thing. An MCP gateway manages calls from an AI agent to tools. They are layers that sit in different places, so you rarely have to choose between them. You decide which ones you need already. As of 27 November 2026.

By Updated

The four terms side by side

API gateway, AI or LLM gateway and MCP gateway compared by the traffic they govern
GatewayTraffic it governsWhat it counts and limitsExamples
API gatewayClients calling your own servicesRequests per clientKong, Azure API Management, Traefik
AI gateway, also called LLM gatewayYour applications and coding agents calling modelsTokens and money per team and key, with budgetsLiteLLM, Portkey, the AI features in Kong and Azure API Management
MCP gatewayAn agent calling tools on MCP serversWhich caller may use which toolThe MCP gateway in LiteLLM, in Kong and in Traefik

The product names overlap on purpose. Vendors of API gateways add AI features, and vendors of AI gateways add an MCP gateway. Look at the job a product does and ignore the label.

Why an API gateway is not enough for model traffic

An API gateway was built for requests that cost about the same each time. A model call does not behave like that. One request can cost a hundredth of a cent and the next one several euros, depending on how much text goes in and comes out.

  • It counts requests. Model providers bill tokens, so a request limit says little about cost.
  • It does not know models. Fallback to a second provider, or a cheaper model for simple tasks, is outside its vocabulary.
  • It does not read prompts. Masking personal data or checking a response needs something that understands the payload.
  • It has no budget in money. Telling a team that it has 500 euros a month is an AI gateway feature.

This does not always mean a second product. The Apache APISIX project makes the point that AI traffic is a new kind of load with its own rules, and that you can serve it either with a dedicated AI gateway or with AI plugins in the gateway you already run.

AI gateway or LLM gateway

In everyday use the two mean the same: one endpoint in front of all model providers, with keys, budgets, logging and routing. LLM gateway is the older and narrower word. AI gateway has become the umbrella term, and some vendors now use it for everything on this page at once: model calls, tool calls and calls between agents. When you compare products, ask which of those three a given "AI gateway" really covers.

Where the MCP gateway fits

The MCP gateway looks in the other direction. The AI gateway stands between your application and the model. The MCP gateway stands between the agent and the tools it wants to use: the ticket system, the database, the repository. It decides who may call which tool, and on whose behalf. Cost comes second there.

A single task often crosses both. An agent asks the model what to do through the AI gateway, then reads a ticket through the MCP gateway. That is why LiteLLM and several other products offer both in one system, with one set of teams and keys.

Which do you need

  • One application calling one model: none yet. A provider key in a secret manager is enough.
  • Several teams or applications calling models, or developers with coding agents: an AI gateway, so cost and access have one place.
  • Agents that use tools in company systems: an MCP gateway as well, before the second MCP server is added.
  • Your own services exposed to partners or the internet: an API gateway, which you probably already have.

We help companies decide which of these they need and set them up, with products chosen for the case and not the other way round.

Questions

Is an AI gateway the same as an API gateway?

No. An API gateway manages requests to your own services and limits them by count. An AI gateway manages calls to language models and limits them by tokens and cost. Many AI gateways are built on API gateway technology.

Is an LLM gateway the same as an AI gateway?

In most cases yes. LLM gateway is the narrower term for the layer in front of model providers. AI gateway is used for the same thing and, by some vendors, also for tool and agent traffic.

Do we need an MCP gateway if we have an AI gateway?

Only once agents use tools through MCP servers. Then yes, because an AI gateway governs model calls and does not decide which tool an agent may use. Several products, LiteLLM among them, include both.

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)