An API gateway manages calls to your APIs: who may call, how often, where the call goes and what was called. An AI gateway does that for model traffic and adds controls an API gateway lacks: token-based limits, routing between model providers, checks on prompts and responses, and cost tracking by model and by team. If your use is a single internal model call with low risk, your API gateway may be enough. Once you route between models, face customers or handle personal data, you need AI features, in the same product or a separate one. Our definition, what is an AI gateway and when do you need one, covers the basics; this page is the comparison. The gateway named in the examples is now Choreo AI Gateway (formerly WSO2 AI Gateway), after Choreo Labs, formerly WSO2, renamed on November 17, 2026.
Differences
| Dimension | API gateway | AI gateway |
|---|---|---|
| Unit of limit | Requests per second or per day | Tokens, as well as requests |
| Backend | Your services | Model providers, plus your services |
| Routing | By path, version or header | By model, cost, latency or failure |
| Content checks | Rarely, mostly schema | Prompt and response checks, guardrails |
| Caching | By URL and headers | Semantic caching by meaning |
| Identity | Application and user | Application, user and increasingly the agent |
| Cost tracking | Calls | Tokens and spend by model and team |
| Typical failure | Timeouts, 5xx | Wrong, unsafe or expensive answers |
A model call can return a valid response that is still wrong, unsafe or ten times too long. A conventional gateway cannot see that, because to it the call succeeded. That is the core reason AI traffic needs its own controls. The WSO2 documentation lists AI APIs and token limits from API Manager 4.4, multi-model routing from 4.5, and MCP gateway, guardrails and semantic caching from 4.6. See our release table.
When one is enough
Your existing API gateway may cover the need when all of these are true.
- One application calls one model provider.
- The data is not personal or confidential.
- A person reviews every output before it is used.
- You accept the provider's own safety checks.
- Spend is small and a monthly bill review is a fine control.
Add AI features when any of these change: you add a second provider, you face customers, personal data enters prompts, agents act on their own or spend becomes material. Moving to AI features does not always mean a new product. If your platform already has them, the question is which release you run; see WSO2 AI Gateway setup and registration.
Costs
The costs are different in kind, and neither is a number we can give you.
| Cost | API gateway | AI gateway |
|---|---|---|
| Licence or subscription | Yes | Often the same product, sometimes extra |
| Infrastructure | Gateway nodes | Gateway nodes, plus cache and guardrail services |
| Model spend | Not applicable | Large and variable, capped by token limits |
| External checks | None | Content safety services may bill separately |
| Engineering | Policies and routes | Guardrails, test sets, prompt management |
| Operations | Patching, monitoring | Plus model changes and evaluation |
The largest new line is model spend. A token limit at the gateway gives it a ceiling, which is one of the cheapest controls to add. Our cost drivers guide breaks the costs down for a WSO2 estate.
Decision
| If you... | Then |
|---|---|
| Call one model from one internal tool, low risk | Keep the API gateway, add a spend alert |
| Use two or more model providers | Use AI routing, in your platform if available |
| Put model output in front of customers | Add guardrails and logging |
| Send personal or confidential data in prompts | Add masking before the data leaves your network; see guardrails and PII masking |
| Run agents that call tools | Add agent identity and MCP controls; see agent governance |
| Must keep traffic inside your network | Check on-premises options first |
If your answer sits in several rows, the highest row wins. A shortened version of this table is a fine first slide in a design review.
Example: a customer assistant (illustrative)
This is a scenario, not a client. A bank adds a customer-facing assistant. Its API gateway already handles authentication, rate limits and routing, so the team assumes it is covered. In review they find three gaps: nothing stops a customer from pasting an account number into the prompt, nothing caps what the assistant can spend on a long conversation, and nothing logs the reply that went out. They add masking, a token limit per user per day and logging of requests and responses at the gateway. The API gateway still does what it did before; the AI controls sit beside it. The lesson is that the question is not either-or but which controls you have for the model traffic specifically.
Questions to ask a vendor
- Which of these features are in the base product, and which need an add-on?
- Can guardrails be tested without sending traffic to a live model?
- How do limits work: per user, per team, per API, per model?
- Can the gateway run in my network, and what does it still call out to?
- What is logged by default, and can personal data be masked in the log?
A first engagement
Duczer East offers an AI gateway fit check: we review your current gateway, the traffic you expect and the risks, and hand back a short written plan that says whether your API gateway is enough and what to add if not. See AI gateway implementation.



