By API7.ai Team
Last updated: June 2026
Kong AI Gateway and LiteLLM take different paths to putting one API in front of many LLM providers: AI plugins on a mature API-gateway platform versus a purpose-built open-source LLM proxy. This guide compares them on architecture, routing, caching, guardrails, MCP, governance, self-hosting, and pricing so you can choose the right fit.
Kong AI Gateway is a set of AI plugins on a battle-tested, Apache-2.0 API gateway, strong if you already run Kong — but its free AI surface is thin and the advanced features (semantic routing and cache, token/cost limits, semantic/PII guardrails, MCP, LLM-as-judge) plus SSO/RBAC are Enterprise-gated. LiteLLM is an open-source LLM proxy that keeps far more in OSS. The core axis is an enterprise API-gateway platform with add-on AI versus an open-source LLM-native proxy.
Kong AI Gateway brings AI plugins to a full API-gateway platform but gates most advanced AI features behind Enterprise; LiteLLM keeps more in open source. Neither documents ensemble, and only Kong offers semantic routing (Enterprise).
| Dimension | Kong | LiteLLM |
|---|---|---|
| Best for | AI on a full API-gateway platform | Open-source LLM-native proxy |
| Core & runtime | Lua on OpenResty/nginx + AI plugins | Python (SDK + proxy) |
| Open-source license | Apache-2.0 core; advanced AI plugins Enterprise | MIT core; enterprise/ commercial |
| Provider coverage | 15+ providers | 100+ providers |
| Semantic routing | ✓ Enterprise (AI Proxy Advanced) | — Not documented |
| Ensemble / fusion | — Not documented | — Not documented |
| Caching | ✓ Semantic (Enterprise) | ✓ Exact + semantic (OSS) |
| MCP gateway | ✓ Enterprise (AI MCP Proxy) | ✓ In open source |
| Self-host / hybrid | Docker/K8s; hybrid + Konnect SaaS | Docker/K8s/Terraform |
| SSO / RBAC | Enterprise/Konnect | Enterprise-only |
Kong AI Gateway is a set of AI plugins on Kong Gateway, a mature Apache-2.0 API gateway. Free plugins cover single-target proxying and prompt manipulation; advanced AI features are Enterprise-tier.
Kong AI Gateway is a set of AI plugins on Kong Gateway, a mature API gateway with an Apache-2.0 core written in Lua on OpenResty/nginx. Free plugins cover single-target proxying and prompt manipulation; advanced AI features are Enterprise-tier.
Language
Lua on OpenResty/nginx
License
Apache-2.0 core; AI plugins tiered
Form factor
API gateway + AI plugins
Best for
Teams already running Kong
LiteLLM is an open-source Python SDK and proxy that exposes 100+ LLM providers through one OpenAI-compatible API, with budgets, virtual keys, semantic caching, and an MCP gateway in open source.
LiteLLM is an open-source Python SDK and proxy server that exposes 100+ LLM providers through one OpenAI-compatible API. Its core is MIT-licensed, with a paid Enterprise tier for identity, audit, and advanced guardrail features.
Language
Python
License
MIT (core) + commercial enterprise/
Form factor
SDK + proxy server
Best for
Python teams, broad provider access
The two converge on multi-provider proxying and an MCP gateway, then diverge on form factor (API-gateway platform vs Python proxy) and where each draws the free/paid line — Kong gates most advanced AI plugins behind Enterprise, while LiteLLM keeps them in OSS.
| Feature | Kong | LiteLLM |
|---|---|---|
| Core & runtime | Apache-2.0 Kong Gateway (Lua on OpenResty/nginx) with a set of AI plugins | Python; SDK + proxy on Uvicorn; key & budget features need PostgreSQL |
| Provider coverage | 15+ providers (OpenAI, Azure, Bedrock, Anthropic, Gemini, Vertex AI, Mistral, and more) | 100+ providers in OpenAI format |
| Routing | AI Proxy routes to one upstream (free); AI Proxy Advanced adds multi-model load balancing, retries, and failover (Enterprise) | Simple-shuffle, latency, least-busy, rate-limit-aware, cost-based, custom; fallbacks & retries |
| Semantic routing | ✓ Enterprise (AI Proxy Advanced routes by request meaning) | — Not documented |
| Ensemble / fusion | — Not documented (LLM-as-Judge scores a response, does not fan out) | — Not documented |
| Caching | AI Semantic Cache (Enterprise) | Exact + semantic (Qdrant, Redis, Valkey) |
| Guardrails | Free: AI Prompt Guard (regex allow/deny). Enterprise: AI Semantic Prompt Guard, AI PII Sanitizer, LLM-as-Judge, plus Azure/AWS/GCP/Lakera partner checks | Presidio PII + hooks in OSS; moderation & per-key scoping are Enterprise |
| Rate limiting & budgets | AI Rate Limiting Advanced (token- and cost-based) is Enterprise-tier | Virtual keys, per-key/user/team budgets, spend tracking in OSS (needs PostgreSQL) |
| MCP gateway | ✓ Enterprise (AI MCP Proxy bridges MCP and HTTP) | ✓ In OSS (access control by key/team) |
| Observability | Kong analytics/logging plugins; deeper analytics via Konnect | Prometheus in OSS, Langfuse, OpenTelemetry, Datadog |
| Self-host / hybrid | Docker/K8s (Kong Ingress Controller); hybrid data plane in your network; Konnect managed SaaS control plane | Docker/K8s (Helm) and Terraform; run the proxy in your own infrastructure |
| Enterprise identity | SSO (OIDC/SAML) + RBAC via Enterprise/Konnect (RBAC needs a license); Konnect SCIM not documented | Global roles in OSS; SSO/RBAC/SCIM/audit Enterprise |
Both have a free open-source core and paywall advanced capabilities — but along different lines.
Kong Gateway's core is free (Apache-2.0), and a handful of AI plugins ship free — but the advanced AI plugins (AI Proxy Advanced, AI Semantic Cache, AI Rate Limiting Advanced, AI Semantic Prompt Guard, AI PII Sanitizer, AI MCP Proxy, AI LLM-as-Judge) and SSO/RBAC require an Enterprise license. Kong Konnect adds a managed control plane: a free trial, a Plus tier with published usage pricing (about $200/month per additional 1M API requests), and a custom Enterprise tier (contact sales). LiteLLM's core is free (MIT) including budgets and virtual keys; its Enterprise license (custom-priced) adds SSO/SAML, RBAC, SCIM, audit logs, and enterprise guardrails. In short, Kong gates most of its advanced AI surface by tier, while LiteLLM gates enterprise identity and audit.
Choose Kong AI Gateway if you already run Kong or want a full API-gateway platform; choose LiteLLM for an open-source LLM proxy with a Python SDK and OSS budgets.
Choose Kong AI Gateway to add AI to a mature API-gateway platform (accepting that advanced AI features and SSO/RBAC are Enterprise-gated); choose LiteLLM for an open-source LLM proxy that keeps more governance in OSS.
If you already run Kong or want AI features on a full API-gateway platform, Kong AI Gateway is the natural pick — just budget for Enterprise, since multi-model routing, semantic cache, token/cost limits, semantic/PII guardrails, MCP, and SSO/RBAC live there. If you want an open-source LLM proxy that keeps semantic caching, virtual keys, budgets, and an MCP gateway in OSS — plus a Python SDK — LiteLLM fits better. If you're evaluating open-source AI gateways more broadly, AISIX is another option worth a look: a Rust, Apache-2.0 gateway (from the creators of Apache APISIX) with semantic routing and ensemble built into the open-source core and self-hostable in your own VPC. See AISIX vs LiteLLM.
Portkey vs LiteLLM · AISIX vs LiteLLM · All AI gateway comparisons
Ready to get started?
For more information about full API lifecycle management, please contact us to Meet with our API Experts.

