An AI gateway is a checkpoint that every request to an AI model passes through first.
This guide is for anyone whose organisation is starting to use AI tools and wants to understand how to keep them under control. You do not need to be technical: if staff or apps in your business send work to AI services, a gateway is one way to see and manage that traffic.
In short
- An AI gateway sits between your staff or apps and the AI models they use.
- It can keep the AI keys in one place, record who asked what, cap spending and filter risky requests.
- It only sees traffic that goes through it, so AI use that goes around it stays hidden.
- The gateway holds valuable keys and records, so it needs strong protection of its own.
What you will learn
- Explain what an AI gateway does in one sentence.
- Spot the four jobs a gateway usually does: keys, records, limits and filters.
- Check whether your AI use actually goes through a gateway.
- Ask the right questions before your organisation sets one up.
- Checkpoint for AI requests (AI gateway)
- a service that every AI request passes through, where rules are applied and records kept.
- Software password (API key)
- a secret code a program shows an AI service to prove it may use it.
- AI usage unit (token)
- a small piece of text that AI services count to work out the bill.
What is an AI gateway?
Think of a company travel desk. Staff do not book trips with their own cards. They ask the travel desk, which holds the company card, checks the budget, refuses banned trips and keeps a record of every booking.
An AI gateway does the same for AI. Staff and apps send their requests to the gateway instead of straight to an AI provider. The gateway checks each request against your rules. Then it passes the request on to the right AI model, using a key it keeps safe, and returns the answer.
A large language model (LLM) is the kind of AI that reads and writes text, such as a chatbot. Because gateways often sit in front of these models, some products call themselves an LLM gateway. The idea is the same.
The keys a gateway holds belong to non-human identities (NHIs): identities used by software rather than people. Keeping them in one guarded place means fewer copies spread around your apps.
Where the comparison stops working: a travel desk sees every booking because staff have no other way to pay. With AI, anyone can open a free chatbot in a browser. A gateway only sees what is sent through it.
Why does it matter?
Without a checkpoint, AI keys end up copied into many apps. Nobody has one view of who uses AI, for what, or at what cost. A gateway gives one place to set rules and see the results.
If you manage a team that uses AI
What could happen: staff paste customer details into AI tools, and nobody knows which tools or how often.
Check this: ask whether approved AI tools go through a gateway that keeps records.
If you pay the AI bills
What could happen: one app gets stuck in a loop or a key leaks, and the bill jumps.
Check this: ask whether each team or app has its own spending cap.
If you are new to IT or security work
What could happen: AI keys are scattered across many apps, so one leak is hard to trace.
Check this: list where AI keys live today, and who owns each one.
Next: LLMjacking for Beginners
What does it look like?
Here is a made-up rules card for a small firm's AI gateway.
Example only. All values are made up.
# rules for example-gateway.example.com who_can_use: staff signed in through the company account (1) provider_key: held by the gateway, FAKE-KEY-0000 (2) spend_cap: sales team 500 tokens a minute, 0000 a month (3) record: who, when, which model, how many tokens (4) filter: block messages that look like card numbers (5) allowed_models: chat-small-EXAMPLE, chat-large-EXAMPLE (6)
- Only signed-in staff can use the gateway, so each request has a name on it.
- In a real file, this line would point to where the provider key is stored. Staff and apps never see it.
- A cap per team, so one faulty app cannot run up the whole bill.
- Records show who used AI, when and how much.
- A simple filter that blocks some private data before it leaves.
- Only models the firm has approved can be used.
Why this is risky: without rules like these, each app holds its own copy of the key. Nobody has the full picture. And a gateway's own keys and records are a prize, so it needs careful protection.
The safer way: route approved AI use through one gateway, give it strict access, and review its records and caps each month.
How does it work?
Here is what happens to one request. Products are named in alphabetical order, only as examples.
- The request. A person or app sends a question to the gateway, not straight to the AI provider.
- The checks. The gateway checks who is asking and whether they are under their limit. Microsoft's gateway, for example, can cap tokens per minute or per month for each user.[2]
- The filter. Some gateways check the text for unsafe content before it goes on.[2]
- The hand-over. The gateway sends the request to the AI model, signing in with its own key or identity, and gets the answer.[2]
- The record. It logs the request, the tokens used and the cost. Cloudflare's gateway, for example, reports requests, tokens and cost, and can save repeat answers to cut costs.[1]

Spending caps and request limits help against cost attacks. The OWASP Foundation, a non-profit security group, keeps a list of top risks for AI apps. It recommends request limits, quotas and close watching of usage.[3] A gateway is one common place to apply them.
A worked example
Yara Novak is operations manager at a fictional recruitment firm with forty staff. Three teams have started using AI. Each one signed up separately, and the bills arrive on three different cards.
Her IT lead, Milo Ilic, suggests an AI gateway. Yara thinks of the company travel desk. One desk, one card, one set of records.
Milo sets up the gateway. He moves the AI keys out of the three apps and into the gateway's safe store. The apps now talk to the gateway, not to the AI provider. Staff sign in with their normal work accounts.
Next, he sets a monthly cap for each team and an alert at three quarters of it. He turns on records, so Yara can see which team used what.
He adds a filter that warns when a message looks like it holds a national insurance number. It will not catch everything, so the firm's AI rules still tell staff not to paste candidate details.
A month later, Yara reviews the records. One team's use is much lower than its old bill. Milo finds that some staff still use a free chatbot in their browsers. The gateway cannot see that, so Yara updates the AI policy and talks to the team.
Last, Milo limits who can change the gateway's settings to two named people, and turns on extra sign-in checks for them.
Myths and mistakes
| What people think | What is true |
|---|---|
| A gateway sees all AI use in the firm. | It sees only what goes through it. Browser chatbots and personal accounts can go around it. |
| Once we have a gateway, AI is safe. | It is one control among several. Policies, training and data rules still matter. |
| Filters catch all sensitive data. | Filters catch patterns they are set up for. Unusual data can slip past. |
| A gateway is the same as an API gateway. | They are related. An AI gateway adds AI-specific jobs such as token caps and prompt records.[2] |
| The gateway does not need much protection. | It holds keys and records of what staff asked. Protect it like any system that holds secrets. |
What can I do this week?
- List the AI services your organisation pays for, and who holds each key.
- Ask IT whether any AI use already goes through a gateway.
- Agree a monthly AI budget for each team.
- Decide what records you need: who, when, which model and cost.
- Check who can change gateway settings, if you have one.
Checklist
- Approved AI tools and apps send their requests through the gateway.
- AI provider keys are held by the gateway, not copied into each app.
- Staff and apps sign in to the gateway, so each request has a name.
- Each team or app has a spending cap and an alert.
- Requests are recorded, and someone reviews the records.
- Only a small number of named people can change gateway settings.
- The AI policy covers tools that go around the gateway.
Common questions
What is the difference between an AI gateway and an LLM gateway?
Very little. An LLM gateway sits in front of large language models, the AI that reads and writes text. AI gateway is a wider name that can also cover other AI services and agents. Most people use the two names for the same idea.
Is an AI gateway the same as an API gateway?
Not quite. An API gateway is a checkpoint for any software requests. An AI gateway adds AI jobs, such as counting tokens, capping spend and recording prompts. Some API gateways now offer AI features. See API Gateways for Beginners.
Does an AI gateway stop shadow AI?
Partly. It gives approved AI use one safe route. But staff can still use AI tools that do not go through it, which is known as shadow AI. Clear rules, training and an easy approved option all help. See Shadow AI for Beginners.
Does a gateway slow AI down?
A little, in most cases, because each request takes one extra step. Some gateways can also make things faster by saving answers to repeat questions and sending them straight back, which can also cut costs.[1][2]
Who should run the AI gateway?
Usually the IT or platform team, with security setting the rules. We suggest that only a small, named group can change settings, and that changes are recorded. The business should agree the budgets and approved AI models.
Where next?
Ready for the detail? Read the practitioner guide: AI Gateway and LLM Gateway Guide. It goes further into gateway designs, policy settings, logging choices and how to roll a gateway out.
Also useful:
- AI Usage Control and Shadow AI Buyer's Guide
- AI Gateway vs API Gateway
- Securing the AI gateway itself
- LLMjacking for Beginners
- NHI Foundation Level Training
Related NHI Mgmt Group resources: AI Gateway Buyer's Guide · AI Gateway vs CASB/SSE for Controlling Shadow AI · Non-Human Identities for Beginners
Key terms
- AI gateway
- A checkpoint between AI apps and the models they call, where rules are applied and records kept.
- LLM gateway
- A single control layer in front of one or more large language model providers.
- API key
- A secret code a program uses to prove it may use a service.
- Rate limiting
- A control that caps how many requests a caller can make in a set time.
- Shadow AI
- Use of AI tools without approval or visibility from IT or security.
- Large language model
- An AI system trained on large amounts of text that reads and writes language.
Sources and further reading
- Cloudflare AI Gateway overview. Cloudflare Docs, Cloudflare. https://developers.cloudflare.com/ai-gateway/, accessed 28 Nov 2026.
- AI gateway capabilities in Azure API Management. Microsoft Learn, Microsoft, updated 29 May 2026. https://learn.microsoft.com/en-us/azure/api-management/genai-gateway-capabilities, accessed 28 Nov 2026.
- OWASP Top 10 for LLM Applications 2025, LLM10:2025 Unbounded Consumption. OWASP GenAI Security Project. https://genai.owasp.org/llmrisk/llm102025-unbounded-consumption/, accessed 28 Nov 2026.