Apache APISIX AI gateway plugins

Specific AI gateway jobs done with APISIX plugins: balancing and failing over between LLM providers, token budgets, prompt and content guards, self-hosted model routing, LLM metrics and MCP.

LLM load balancing and failover with APISIX ai-proxy-multi

Spreading LLM traffic across providers and keeping it flowing when one fails: weighted, hash and semantic balancing, priorities, fallback on 429 and 5xx, retry limits, health checks and unique instance names required in 3.19.

Token-based rate limiting for LLM APIs in Apache APISIX

Capping LLM spend per team or customer with ai-rate-limiting: limiting total, prompt or completion tokens, per-instance and per-consumer budgets, shared counters in Redis and shifting traffic when a quota runs out.

Prompt guards and content moderation in Apache APISIX

Filtering prompts and responses at the gateway: ai-prompt-guard, AWS and Aliyun content moderation, Lakera Guard, the 3.18 changes to moderation scope and fail modes, and where gateway checks stop and model-level controls begin.

Routing to self-hosted LLMs with Apache APISIX

Putting APISIX in front of models you run with vLLM or Ollama: OpenAI-compatible upstreams in ai-proxy, mixing self-hosted and cloud providers, authentication and quotas per consumer, and keeping prompts inside your network.

Monitoring LLM traffic through Apache APISIX

Measuring LLM usage at the gateway: token and model logging, apisix_llm_latency with time to first token since 3.18, dashboards that break on the new type label, per-consumer cost reporting and log retention.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.