What Is an LLM Gateway? A Plain Definition

An LLM gateway is a service that sits between your application and the model providers you call, so that requests, credentials, limits and cost accounting are handled in one place instead of in every service that happens to talk to a model.

That is the whole definition. The rest of this post is about what follows from it — because the interesting part is not what a gateway is, it is which problems disappear once you have one and which ones stubbornly do not.

What a gateway actually does

Four responsibilities show up in every serious implementation:

What a gateway is not

Three things get confused with gateways often enough to be worth separating.

It is not a model. A gateway does not make answers better. If a model is wrong for your task, routing it through anything will not fix that.

It is not an agent framework. Orchestration, tool loops, memory and planning live in your application or in a framework you choose. A gateway that starts making those decisions for you becomes a dependency you cannot debug.

It is not a cache by default. Caching LLM responses is legitimate for some workloads and dangerous for others — see our post on cost control for where the line sits. Gateways can offer caching; conflating the two leads to surprising correctness bugs.

Proxy, gateway, router: the words people use

The vocabulary in this category is loose, and vendors use it inconsistently. A rough map:

The distinction matters when buying. If your problem is "we want the cheapest token", a router is enough. If your problem is "we cannot tell which team spent $40,000 last month and our provider keys are in six places", you want a gateway.

When a team actually needs one

Not immediately. A single service calling a single provider with one key does not need a control plane, and adding one early buys latency and an extra dependency for no benefit.

The signals that it is time are consistent:

Self-host or managed

Both are reasonable. Self-hosting keeps traffic inside your perimeter and gives you the source; it also means you own a component on the hot path of every AI feature you ship, including its upgrades, its failover behaviour and its 3am pages. A managed gateway trades that for a dependency you do not control.

The honest way to decide is to ask who will own the on-call rotation for it in six months. If the answer is "nobody has volunteered", self-hosting is a decision to accumulate risk rather than to save money.

Weighing whether you need a gateway at all? Runix Gateway is in early access — tell us what you are building and we reply within one business day.