[Resources](https://vatan.one/resources)/**What an AI gateway is, and when you need one**

Architecture8 min read · updated 4 August 2026

# What an AI gateway is, and when you need one

An AI gateway sits between your applications and every model provider. This is what it does, what it costs you not to have one, and how to tell whether you have reached the point of needing it.

### The shape of the problem

It starts with one team, one API key and a corporate card. It becomes a problem at team four, when nobody can answer what the organisation spent, which models are in production, or whether customer data has left the estate.

Every organisation solves this eventually. The only question is whether it is solved deliberately or discovered during an incident.

### What the layer actually does

Routing and failover: one endpoint in front of many providers, with a chain that fails over when an upstream degrades. Provider outages are frequent enough that this alone pays for the layer.

Budgets and rate limits per key, enforced rather than reported. A budget that only sends an alert is a report, not a control.

Guardrails applied before routing, so redaction covers self-hosted models too, which is where people assume the rule does not apply.

A request log with route, tokens, cost and outcome, retained long enough to answer a question asked six months later.

### When you have reached the point

Three or more teams calling models independently. A finance question you cannot answer. A security review that asked where prompts go and got an inconsistent answer. Any one of those is the signal.

Below that threshold a gateway is overhead. Adopting infrastructure before the problem exists is its own failure mode, and we would rather say so than sell into it.

Want this done rather than read?

Vatan Discover does this work in ten working days, for one fixed fee.

[Vatan Discover](https://vatan.one/services/discover)

Read next

[The EU AI Act, as a checklistWhat you actually have to do, in the order you have to do it](https://vatan.one/resources/eu-ai-act-checklist)[Evaluation that actually blocks a releaseWhy most AI evaluation is theatre, and what the working version looks like](https://vatan.one/resources/evaluation-that-blocks-releases)

Where the layer sits

## One layer between every team and every provider.

Each team calls the gateway instead of a provider. Routing, limits, guardrails and the log happen once, in one place, for all of them.

Your applications, team by team

Team 1

Team 2

Team 3

**AI GATEWAY**

Routing and failoverOne endpoint, failing over when a provider degrades

Budgets and rate limitsPer key, enforced rather than reported

GuardrailsApplied before routing

A request logRoute, tokens, cost and outcome

Provider

Provider

Provider

Worth it at three or more teams calling models on their own.

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.

Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

## Bring us the deadline you are working to.

Most first conversations start with a supervisory letter or a board date, and those are the useful ones.

[Get in touch](https://vatan.one/contact)[See pricing](https://vatan.one/pricing)

Source: https://vatan.one/resources/ai-gateway-explained
