ChatGPT SearchOct 12, 2026
Data as of Oct 12, 2026A topic in Cloud-Native API & Networking Platforms.
Reviewed by Dimitry Apollonsky
Mentioned in · Jul 6 – Oct 12, 2026
ChatGPT SearchOct 12, 2026
For an internal LLM API, I’d start by evaluating Apache APISIX, Kong Gateway, and Envoy-based gateways. The best choice depends on whether you need ordinary API rate limiting and response caching, or LLM-specific features such as token-aware quotas, semantic caching, and per-model budgets.
One important distinction: caching LLM responses is not the same as caching ordinary HTTP responses. You need to account for model parameters, prompts, tenant isolation, streaming responses, and potentially sensitive data. A gateway that handles HTTP caching well may not provide semantic or token-aware LLM caching out of the box.
(Best overall for LLM APIs)
A strong fit if you want traditional API controls and LLM-specific features in one open-source gateway. Its AI plugins include token rate limiting and Redis-backed exact-match or optional semantic response caching.
License: Apache 2.0
Official AI Gateway documentation
A good choice if your team already uses Kong or wants a conventional API gateway with consumer-level rate limits and mature routing and authentication. Check the exact caching and advanced rate-limiting features against your required edition before committing.
License: verify the specific edition and plugins
Best if you're Kubernetes-first and want policy-driven traffic management. It supports local and global rate limits, with shared limits using an external rate-limit service and typically Redis. HTTP caching is available in the Envoy ecosystem, but LLM-aware caching may require additional components.
License: Apache 2.0 for Envoy
For a new internal LLM API, I'd use APISIX as the gateway and Redis for shared counters and response-cache storage where appropriate.
Internal applications
Service identity · API key · Tenant
Apache APISIX
Authentication · Request limits · Token quotas
Cache lookup · Routing · Metrics
Redis
Shared quotas and cache
LLM backends
Internal model servers or providers
APISIX documents both conventional caching via proxy-cache and LLM-aware caching via ai-cache. Its standard limit-count plugin supports request-count limits, while its AI rate-limiting plugin can enforce token quotas.
A few implementation details matter:
What does your internal LLM API look like?
1. Deployment environment
Kubernetes
VMs / Docker Compose
Already using Envoy or a service mesh
2. What kind of caching?
Exact prompt/request match
Semantic caching (similar prompts reuse answers)
Both
Only ordinary HTTP response caching
3. What limits do you need?
Requests per second/minute
Tokens or spend per tenant
Both request and token limits
[Compare for my setup]
Google AI ModeOct 2, 2026
Choosing the "best" open-source AI gateway for rate limiting and caching depends heavily on your existing infrastructure and scale.[](https://dev.to/pranay_batta/best-open-source-ai-gateway-in-2026-2flb)
The top open-source options break down by use-case:
What are the top open-source options for an API gateway if we need to handle rate limiting and caching for an internal LLM service?
To help narrow down the exact fit, tell me: