- Home
- Use cases
- API gateway consulting
- Apache APISIX: Controls for AI Model Traffic
Apache APISIX: Controls for AI Model Traffic
Each AI use case gets its own rate and token limits at the gateway.
The challenge
What teams are up against
Typical situation, not a client: several teams at an insurer call hosted language models from different apps. Costs spike and nobody can say which app caused it. They want limits per use case at the gateway.
Our approach
How we deliver it, step by step
- 01
List the AI use cases
Name each app, its owner, the model it calls and how much it should use.
- 02
Route through one plugin
The ai-proxy plugin routes to providers such as OpenAI, Anthropic, Azure OpenAI, Amazon Bedrock, Gemini and Vertex AI, and to OpenAI-compatible endpoints.
- 03
Set limits per use case
Give each use case a request limit and a token limit sized to its normal day.
- 04
Add caching where answers repeat
Use a caching plugin only where the same question is asked often and the answer may be reused.
- 05
Replay and review
Replay a week of real calls, check the limits bite where they should, and keep the log.
Architecture
The components involved
From the top of the stack down
Apache APISIX sits between the apps and the model providers. A route per use case carries its own limits, and the ai-proxy plugin sends the call to the approved provider. Logs show use per route.
Outcomes
What changes when it is in place
Each AI use case has a named owner and a limit.
Spend can be traced to a route instead of a shared key.
The team knows which plugin settings to re-check on each release.
Why Duczer East
Senior practitioners, from scope to delivery
We score the starting point on paper first, then change the cheapest weak spot, so the plan rests on evidence from your own estate.
About Duczer EastFAQ
Questions we are asked about this
Can Apache APISIX limit tokens?
Token-based rate limiting plugins exist (APISIX docs, checked November 30, 2026). Confirm the plugin names and behaviour on your release before you design around them.
Does APISIX replace a dedicated LLM gateway?
It can cover routing and limits. Dedicated LLM gateways add features such as virtual keys and spend tracking, so compare them on your own requirements.
Related use cases
More problems we solve this way
Use cases on the same platform or for the same industries. Browse all use cases.
SAP Integration Suite Cost Review for a Retailer
Map real message volume and size to the SAP Integration Suite plan, and cut what is wasted.
Read use caseMuleSoft Renewal and vCore Right-Sizing for a Regional Bank
Measure real flow load, size capacity to it and prepare the renewal worksheet and the questions to put to MuleSoft.
Read use caseMigrate or Tune Decision for a Large Boomi Estate
Score each process for effort and risk and deliver a stay, tune or move table, so a platform debate becomes a plan.
Read use caseBoomi Platform Review for an Insurer
Review runtimes, upgrades, monitoring, API proxies and change tracking on a large Boomi estate, and leave a ranked fix list.
Read use caseESB Retirement Plan for an Insurer
Sort every interface by route and sequence the move so the old ESB shrinks each quarter instead of being replaced in one risky step.
Read use caseMicrosoft Purview: Copilot Rollout Readiness for a Bank
Run oversharing assessments, fix labels and sharing links, and set the policies that keep Copilot inside the lines.
Read use caseRelated insights
Further reading from our practitioners
Analysis and guides on the questions this use case raises. All insights.
AI Gateway vs API Gateway: What Is Different and When Each Fits
The differences, when one is enough, what each costs and a decision table
GuideWhat Is an AI Gateway, and When Do You Need One
A guide to policy enforcement for enterprise model traffic
WSO2 API Manager Upgrade Runbook: Steps, Testing, Rollback and Cutover
Upgrade WSO2 API Manager in a fixed order: prepare and back up, build a parallel environment, upgrade the schema and configuration, test, cut over in stages, and keep a rollback you have already rehearsed.
Let's Talk
Talk through this use case
Tell us about your systems and where you are today. A senior practitioner replies, and only your email is required.


