AI-gateway
in English: AI gateway / LLM gateway
An intermediary software gateway through which every request intended for an AI model passes, enabling centralized monitoring, control, logging, and accounting.
In plain terms
Imagine the reception desk of a large office building. Everyone enters and exits through the same door, the receptionist knows who is visiting whom, who has access, and records the traffic. The AI gateway is that reception desk, except instead of people, requests sent to artificial intelligence and responses coming from it pass through.
Today, a company rarely uses a single AI model: one provider is good for one task, while another is cheaper or runs on a local machine for a different task. Without a gateway, every application would connect to each one separately, with its own key and rules. The gateway consolidates this into a single common entry point.
It is useful for the company to see and control AI usage: how much it costs, who uses it for what, whether sensitive data is leaving, and what to do if a provider goes down. As a user, you usually see nothing of this, at most that the corporate AI assistant sometimes rejects a request or informs you that your monthly limit has been exhausted.
With the spread of agents, this has become even more important because an agent can send hundreds of requests to the model during a single task without human supervision. The gateway is the point where this traffic can be captured and limited.
How it works
- The application or agent does not send the request directly to the AI provider, but to the gateway address with its own internal identifier.
- The gateway checks whether the requester is authorized, whether the request fits within the quota, and inspects the content according to set rules, for example filtering out or masking personal data.
- If a cached response already exists for the same question, it returns that and does not call the model. If not, it decides which model to forward the request to: the one suitable for the task, a cheaper one, or an available one. If one provider does not respond, it redirects to another.
- The provider is contacted with the company's centrally stored key, so individual applications and staff do not need to know the production keys.
- The system returns the answer to the requester while logging who asked what, how many tokens were used, and the cost.
An everyday example
Your workplace introduces an internal AI assistant, and you paste a customer list to request a summary. The assistant indicates that phone numbers and email addresses were redacted before the text reached the external model. This filtering is typically performed by an AI gateway running in the background.
Who is affected
A common misconception
Limits and risks
- All traffic passes through a single point, so if the gateway goes down or slows, every AI service built on it is affected.
- A gateway log can collect vast amounts of sensitive content, including questions, document excerpts, and personal data, thereby becoming a protected data repository itself.
- Content filtering is not infallible: cleverly phrased requests may slip through, while harmless ones may be wrongly flagged.
- It does not improve the quality of the model's responses: it propagates errors or hallucinations just the same if there is no separate check.
Similar, but not the same
- API-gateway – A traditional API gateway handles general web requests, while an AI gateway also understands model-specific concepts: tokens, costs, prompts and model selection.
- Guardrail – A guardrail is a specific content rule or filter, while the gateway is the place where such rules can be executed, among other things.
- Model router (LLM router) – The router only decides which model receives the request; the gateway also handles permissions, quotas, logging, and filtering.
Related concepts
AI infrastructure, API-gateway, AI governance
MCP-gateway
A brief history
It emerged following the API gateway pattern long used in the world of web services. The first gateways created specifically for language models appeared in 2023, when companies began mass-adopting multiple AI providers simultaneously.
Where things stand
By late 2026, it is an established building block in larger organizations that use multiple models and agents; cloud providers and open-source projects also offer it. It is still rare in smaller companies. Gateways increasingly oversee agents' tool use as well, not just model calls.
Also known as
AI gateway · LLM gateway · AI gateway · AI gateway · LLM gateway · LLM proxy · model gateway · GenAI gateway
Sources
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.