Duczer East
Healthcare

In-perimeter AI on governed clinical and operational data.

Financial Services

Private AI and data platforms built to clear model-risk and audit review.

Financial services

Private AI, KYC/AML, API gateways and data governance for banks.

Insurance

Change data capture, governed agents and integration for insurers.

Healthcare

PHI document intelligence, FHIR APIs and in-perimeter AI for health systems and plans.

All use cases
  1. Home
  2. Use cases
  3. API gateway consulting
  4. Apache APISIX: Controls for AI Model Traffic
API gateway consultingInsuranceFinancial services

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

  1. 01

    List the AI use cases

    Name each app, its owner, the model it calls and how much it should use.

  2. 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.

  3. 03

    Set limits per use case

    Give each use case a request limit and a token limit sized to its normal day.

  4. 04

    Add caching where answers repeat

    Use a caching plugin only where the same question is asked often and the answer may be reused.

  5. 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

Apps by use caseCallers
APISIX route and limitsControl
ai-proxy to providersRouting
Use per routeEvidence

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.

Apache APISIXai-proxytoken limits

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 East

FAQ

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.

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.

Get a quote