← Blog

LLM Gateway Kong: What It Does and Where It Fits

2026-09-11 · 5 min read · SubToAPI Team

If you're searching "llm gateway kong," you're probably trying to figure out one of two things: whether Kong (the API gateway) can proxy and manage LLM traffic, or how to actually configure it to do so. The short answer is yes — Kong ships a set of AI Gateway plugins (ai-proxy, ai-rate-limiting-advanced, ai-prompt-guard, ai-semantic-cache, and a few others) that let you route requests to model providers like OpenAI, Anthropic, Azure OpenAI, and Bedrock through Kong's existing gateway infrastructure.

This is different from a purpose-built LLM API product. Kong is a general-purpose API gateway that added LLM-specific plugins on top of its existing routing, auth, and rate-limiting engine. That means you get Kong's operational model — nodes, routes, services, plugins, a data store — applied to LLM traffic instead of a dedicated LLM proxy built from scratch. Below is what that setup actually looks like, what you get from it, and where it's more infrastructure than a small team needs.

What Kong's AI Gateway actually is

Kong AI Gateway isn't a separate product — it's a plugin layer on Kong Gateway (open source or Enterprise). The core pieces:

You configure these declaratively (YAML) or via Kong's Admin API, attach them to a route, and Kong sits in front of the actual provider API, applying policy on every request.

A basic Kong AI Gateway config

Here's a stripped-down declarative config routing a service through the ai-proxy plugin to Anthropic's API:

_format_version: "3.0"
services:
  - name: claude-service
    url: https://api.anthropic.com
    routes:
      - name: claude-route
        paths:
          - /v1/messages
    plugins:
      - name: ai-proxy
        config:
          route_type: "llm/v1/chat"
          model:
            provider: anthropic
            name: claude-sonnet-4
          auth:
            header_name: "x-api-key"
            header_value: "$ANTHROPIC_API_KEY"

Apply it with deck sync (Kong's declarative config CLI) or push it through the Admin API. From there, every request to /v1/messages gets proxied, and you can layer on ai-rate-limiting-advanced for token-based limits or ai-prompt-guard for input filtering.

This works. The tradeoff is everything around it: you need a running Kong Gateway (self-hosted or Konnect), a datastore or DB-less mode, deck or GitOps tooling to manage config, and someone who understands Kong's plugin ordering and route matching to debug it when something breaks.

What Kong gives you that a raw provider API doesn't

That last point is the real reason to pick Kong specifically: it makes sense when LLM traffic is one more workload inside an API platform you already operate, not when it's the only thing you need to expose.

Where it's more than most teams need

For a solo developer or small product team, standing up Kong just to get a clean HTTPS endpoint for Claude is a lot of infrastructure for a narrow problem. There's no built-in concept of per-application API keys with usage metadata out of the box — you'd build that yourself with consumers, credentials, and custom logging plugins. There's no dashboard for seat-based team access. And running Kong reliably means owning uptime for the gateway itself, on top of the model provider's uptime.

If what you actually want is: turn your existing Claude access into a hosted HTTPS API with application keys, streaming, tool use, and usage tracking per key — without running gateway infrastructure — that's a narrower, already-solved problem. SubToAPI does exactly that: you get sub_live_... keys scoped per application, streaming and tool-use support, and usage metadata in a dashboard, with team seats if you need multiple people issuing keys.

curl https://api.subtoapi.app/v1/messages \
  -H "Authorization: Bearer $SUBTOAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4",
    "max_tokens": 1024,
    "messages": [
      { "role": "user", "content": "Summarize this ticket in one sentence." }
    ]
  }'

No YAML, no plugin ordering, no datastore to manage — you get an API key from signup and start calling /docs/messages. Streaming and tool use follow the same request shape, documented at /docs/streaming and /docs/tools.

Kong vs a hosted LLM API: how to decide

Pick Kong AI Gateway if:

Pick a hosted API like SubToAPI if:

Check pricing and the quickstart if you want to see how fast the hosted path is compared to a Kong deployment.

Questions

Does Kong support Anthropic's Claude models specifically? Yes, the ai-proxy plugin lists Anthropic as a supported provider alongside OpenAI, Azure OpenAI, Bedrock, and Gemini, using a common request/response translation layer.

Do I need Kong Enterprise for the AI Gateway plugins? Some AI plugins, like ai-semantic-cache and advanced rate limiting, are Enterprise/Konnect features; basic ai-proxy routing is available in the open source gateway.

Is Kong overkill for a single application calling Claude? For one application needing an API key, streaming, and usage tracking, running full Kong infrastructure is usually more setup than necessary — a hosted API layer is faster to integrate and maintain.

Turn your Claude access into an HTTPS API

SubToAPI gives you application API keys, streaming, tool use and usage insights on top of your existing Claude access — set up in minutes.

Start free  Read the quickstart →