Blank white background with no objects or features visible.

Olá, EMEA! A TrueFoundry está expandindo sua presença pela Europa, Oriente Médio e África. Leia mais. →

Kong AI Gateway Benchmark Review: Open-Source Kong + ai-proxy on 1 vCPU

By Ketan Gangal

Updated: novembro 23, 2026

Published: novembro 23, 202616

We benchmarked open-source Kong Gateway 3.9.4 with its ai-proxy plugin, the piece that turns Kong into an AI gateway, on a single vCPU and 2 GB of memory, on Azure. The short version: Kong adds about 1 ms to a normal request and handles 2,000 to 3,000+ requests per second for short prompts. CPU is what runs out, and it runs out much sooner for very long prompts. Two defaults are worth changing.

TL;DR
  • Overhead is tiny. ai-proxy adds about 1 ms at the median for prompts up to 2,000 tokens while it has CPU to spare, and 3.5 to 5 ms for a 20,000-token prompt. For those shorter prompts added p99 stays under 3 ms up to 1,000 RPS.
  • The ceiling depends on prompt size (1 vCPU, added p99 ≤ 100 ms, errors ≤ 0.1%): 3,000+ RPS for 200 tokens, 2,500 for 1,000 tokens (Kong’s own test payload), 2,000 for 2,000 tokens, 300 for 20,000 tokens (400 is borderline).
  • CPU runs out first, never memory. At the ceiling Kong sits at 100% of one core. Memory stays at 180 to 260 MiB (150 MiB idle) of 2 GiB, and Kong never restarted on its own.
  • Default streaming delays the first token by 58 to 136 ms. Setting response_buffering: false on the route cuts that to 1 to 5 ms.
  • Overload is survivable. At twice its limit Kong slows to a p99 of about 1.3 s, never crashes, and is back to normal within 5 seconds after the load drops.
  • Cold start is about 3.4 seconds. Turning the access log off lowers p99 by 6 to 21 ms at 2,000 to 3,000 RPS.
  • One borderline: large prompts at 400 RPS passed on one cluster node and failed on another. Why is a matter for further infrastructure investigation, which is out of scope for this blog for the time being.
  • A default to know about: ai-proxy rejects request bodies above its 8 KiB default with a misleading 400 unless you raise max_request_body_size.

What We Tested

“Kong AI Gateway” is sold in three forms: open-source Kong with the AI plugins (free), a licensed AI Gateway image, and Konnect (how Kong prices them). We tested the free one: kong:3.9.4, edition community, with ai-proxy, DB-less, one nginx worker. When this post says “Kong”, it means that setup.

Figure 1: The test setup, two paths with the same load

Figure 1. The two paths. k6 sends the same requests at the same rate to the fake LLM directly and through Kong; the difference is what Kong adds.

Everything runs inside one Azure Kubernetes cluster (East US) on internal addresses, so no internet hops are in the numbers. Kong is limited to 1 vCPU and 2 GiB. The fake LLM waits a fixed 50 ms, so what we measure is the gateway, not a model. The load is open loop (k6 keeps sending at a fixed rate even if Kong slows down), with a 30 s warm-up and a 60 s measured window per step.

Payload Prompt tokens Reply tokens Note
small 200 100 a short chat turn
claim 1,000 100 Kong’s own test payload
medium 2,000 500
large 20,000 1,000 a long document

A step passes when added p99 (Kong minus direct, same rate) is at most 100 ms and errors plus dropped requests are at most 0.1%. We ran every step twice, and medium at 1,500 and 2,000 RPS a third time, because two runs disagreed there. We report the median and say so when rounds disagree.

Kong’s own benchmark reports that, with every gateway given the same 12 CPUs, Kong’s data planes were over 228% faster than Portkey and 859% faster than LiteLLM. We don’t test other gateways, so we can’t confirm that (for how Kong and LiteLLM differ beyond speed, see Kong vs LiteLLM). We measure something different: what open-source Kong adds, in milliseconds, on one core, and where it breaks.

1. Latency overhead

Figure 2: Added median and p99 latency vs requests per second, per payload

Figure 2. Added latency through ai-proxy (Kong minus direct). Left: median. Right: p99, with the 100 ms limit.

What we saw: for short prompts Kong adds 0.9 to 1.6 ms at the median, flat from 10 up to 1,500 RPS. Near the ceiling it rises (medium: about 7 ms at 2,000 RPS). The 20,000-token prompt adds 3.5 to 4.8 ms because Kong has to read and copy a 100 KB body. Added p99 stays at 1.5 to 2.7 ms up to 1,000 RPS for small, medium and claim, then climbs as CPU fills: small 5 ms at 2,000 RPS and 57 ms at 3,000; claim 24 ms and 61 ms at 2,000 and 2,500.

Why it matters: next to an LLM call that takes seconds, 1 ms is noise. The number to plan around is the rate at which the tail starts to grow, not the median.

2. How many requests per second

Figure 3: Throughput ceiling per payload

Figure 3. The highest rate that passed, per payload.

Payload Passes Fails Kong CPU at the last pass
small (200 tokens) 3,000, not reached 78%
claim (1,000 tokens) 2,500 3,000 88%
medium (2,000 tokens) 2,000 2,500 97%
large (20,000 tokens) 300 400 is borderline 79%

What we saw: the ceiling falls as prompts grow. Every request costs Kong CPU in proportion to the body it has to handle: about 0.26 ms of CPU per small request against about 2.6 ms per large one, roughly 10 times more. Medium at 2,000 RPS is borderline: it passed in two of three runs, with added p99 between 69 and 114 ms.

Caveats: small never failed, so “3,000+” is a floor; we stopped at 3,000 RPS. For large prompts, 300 RPS passed in every run, but 400 is borderline: it failed every time on one cluster node and mostly passed on another (added p99 94 ms against the 100 ms limit). Why it differs is a matter for further infrastructure investigation, which is out of scope for this blog for the time being. We treat 300 as the safe ceiling and 400 as the edge.

3. CPU and memory

Figure 4: Peak Kong CPU and memory per step

Figure 4. Peak CPU (left, % of one vCPU) and memory (right, MiB) per step. Hollow points failed the rule.

What we saw: CPU climbs steadily with load and hits the single-core limit at every failing step, with 8 to 15% of CPU time throttled there. Memory is flat: about 180 to 260 MiB at every load that passed, up to about 350 MiB when overloaded. Nothing came near the 2 GiB limit and Kong never restarted on its own.

Why it matters: size Kong by CPU and prompt length. Memory is not the constraint on this setup.

4. Streaming: the first token

Figure 5: Time to first token, direct vs Kong default vs Kong with buffering off

Figure 5. Time to first token at 50 RPS. The labels above the bars show what Kong adds.

What we saw: with Kong’s defaults, the first streamed token arrives 136 ms late for small prompts, 82 ms for medium and 58 ms for large (at 50 RPS; within 1 ms at 10 and 200 RPS). With response_buffering: false on the route the delay is 1 to 5 ms. The total time of the stream does not change.

Figure 6: One stream, chunk by chunk

Figure 6. When each of 20 streamed chunks arrived. Stacked dots arrived together.

The reason is visible chunk by chunk. The fake LLM sends 20 chunks about 27 ms apart. Through the default route they arrive in three bursts (6, 8 and 6 chunks together). With buffering off they arrive smoothly, as they do without Kong.

The fix: set response_buffering: false on routes that stream. The delay is easy to reproduce on this setup; why the route buffers by default is outside what we tested.

5. Overload and recovery

Figure 7: p99 per 5-second window before, during and after the overload

Figure 7. Large prompts at 150 RPS, then 600 RPS for 60 seconds (shaded), then 150 RPS again. Two Kong runs and the direct baseline.

What we saw: we sent 150 RPS of large prompts, then 600 RPS (twice the 300 RPS ceiling) for 60 seconds, then 150 RPS again. During the overload Kong stayed at 100% CPU and p99 rose to about 1.3 s. It returned no error responses; 27 to 33% of the requests could not be served in time and count as failures. Once the load dropped, p99 was back within 10% of normal after 5 seconds, in both rounds, with no restarts. The direct run at 600 RPS was clean, so the fake LLM was not the limit.

6. Cold start and idle

Figure 8: Cold start and idle memory

Figure 8. Restart time, idle memory and idle CPU.

What we saw: after we scaled Kong to zero and back, it answered its first request 3.4 seconds after the scale-up call (3.3 to 4.4 s over five restarts, accurate to about a second). With no traffic for 28 minutes it used 145 to 151 MiB and 0.001 cores.

Caveat: this includes Kubernetes starting the pod, so it isn’t comparable with a plain Docker start.

7. The access log

Figure 9: Added p99 with the access log on and off

Figure 9. Added p99 with Kong’s access log on (the default) and off.

What we saw: Kong writes an access-log line per request by default. Turning it off lowered added p99 by about 6 ms at 2,000 RPS, 13 ms at 2,500 and 21 ms at 3,000 for small prompts. For large prompts at 200 to 300 RPS the gap was only 1 to 2 ms, and we did not test the log at lower rates for small prompts on Azure. This one is a trade: you lose the log.

8. A default to change: the body limit

ai-proxy has a request-size limit (max_request_body_size) that defaults to 8 KiB. Bodies above that limit get 400 request body doesn't contain valid prompts, which doesn’t mention size. The 20,000-token payload is 100 KB and fails with the default. We raised the limit to 1 MiB for every run in this post. If you send long prompts, raise it too.

What we observed

  1. Kong is not the slow part. A millisecond is the cost of the gateway; the LLM is the bottleneck.
  2. Prompt length sets capacity. The same core serves 3,000 short requests per second or 300 very long ones.
  3. Two defaults need attention: response buffering (for streaming) and the body limit (for long prompts).
  4. It fails gently: it slows, never crashes, and recovers in seconds.
  5. Repeat your tests. One step passed in two of three runs, and one passed on one node and failed on another.

Our take

Open-source Kong with ai-proxy is a light, fast AI proxy on a single core. Before you put it in front of real traffic: set response_buffering: false on routes that stream, raise max_request_body_size if prompts can be longer than a few pages, and size it by prompt length, from about 300 requests per second per core for 20,000-token prompts to 2,000 or more for short ones.

This review covers performance only. For what teams say about running Kong day to day, see Kong AI reviews: what users actually say.

What we didn’t test

  • Enterprise plugins (ai-proxy-advanced, semantic cache), Konnect, and other gateways.
  • A real LLM. The fake one waits a fixed 50 ms, so these are gateway numbers, not end-to-end ones.
  • More than 3,000 RPS, streaming above 200 RPS, or more than one Kong pod.
  • Why large prompts at 400 RPS behave differently on different cluster nodes. That is a matter for further infrastructure investigation, out of scope for this blog for the time being.

How we ran it

  • Open-source Kong 3.9.4 (community) with ai-proxy, DB-less, 1 vCPU, about 2 GiB, one worker. k6 1.0.0 as a Job in the same Azure Kubernetes Service cluster (East US, D4ds v5 nodes in a shared pool), internal addresses only.
  • Run on 10 to 12 November 2026. Two full rounds of every step and a third run of medium at 1,500 and 2,000 RPS. The overload, cold start and access-log tests ran two rounds each; idle memory once.
  • CPU and memory come from the cluster’s Prometheus (15-second samples, so short peaks can be missed).
  • This is a companion to our Bifrost AI Gateway Review, which also used 1 vCPU. The load steps and cluster differ, so don’t compare the two posts’ numbers directly.
  • Every number in this post comes from our Azure runs.

Try now.

One gateway for all your models, MCP servers, and agents. No credit card needed.

Start free
Table of Contents

One Gateway for Every LLM, Agent and MCP Server

Book a 30-min with our AI expert

Book a Demo

The fastest way to build, govern and scale your AI

Book Demo
Summarize with
ChatGPT logo by OpenAI
Perplexity AI logo
Blurry red snowflake on white background, symmetrical frosty design with soft edges and abstract shape.

Discover More

|
5 min read

Kong Konnect Pricing: What It Is and What It Costs in 2026

agosto 31, 2026
|
5 min read

Otimização de Custo de LLM: O Guia Completo (2026)

março 25, 2025
|
5 min read

As 6 Melhores Alternativas ao AWS SageMaker em 2026

maio 8, 2024
|
5 min read

Explorando alternativas ao Vertex AI para 2026

novembro 23, 2026
|
5 min read

Kong Konnect Pricing: What It Is and What It Costs in 2026

comparação
Ferramentas de LLM
novembro 23, 2026
|
5 min read

Kong AI Gateway Benchmark Review: Open-Source Kong + ai-proxy on 1 vCPU

Ferramentas de LLM
novembro 23, 2026
|
5 min read

O que é busca com IA? Como funciona, arquitetura e casos de uso corporativos

No items found.
|
5 min read

API Gateway vs AI Gateway: What Changes When the Traffic Is LLM Calls

comparação
 What is an LLM Gateway
novembro 16, 2026
|
5 min read

O que é um LLM Gateway? Um guia completo

Engenharia e Produto
novembro 3, 2026
|
5 min read

Análise do Bifrost AI Gateway: Benchmark de Desempenho em 1 vCPU

No items found.
Detailed analysis of Kong AI reviews for enterprises
novembro 5, 2026
|
5 min read

Avaliações do Kong AI em 2026: O Que Usuários Reais Dizem Sobre a Plataforma

No items found.
TrueFoundry comparison guide for Kong vs LiteLLM for enterprises
novembro 20, 2026
|
5 min read

Kong vs LiteLLM: Arquitetura, Preço e Trade-offs

No items found.
Kong Gateway Latest Pricing Explained for 2026
novembro 20, 2026
|
5 min read

Preços e Arquitetura do Kong Gateway: Uma Análise para Equipes de IA (Edição 2026)

No items found.
novembro 3, 2026
|
5 min read

Integração do TrueFoundry AI Gateway com o Elastic

No items found.

Recent Blogs

Black left pointing arrow symbol on white background, directional indicator.
Black left pointing arrow symbol on white background, directional indicator.

Frequently asked questions

How much latency does Kong add?

About 1 ms at the median and under 3 ms at p99 for prompts up to 2,000 tokens, up to 1,000 RPS. About 4 ms at the median for a 20,000-token prompt.

How many requests per second on one vCPU?

3,000+ for short prompts, about 2,000 to 2,500 for 1,000 to 2,000 tokens, about 300 for 20,000 tokens (400 is borderline).

What breaks first, CPU or memory?

CPU. Memory stayed below 350 MiB of 2 GiB.

Does Kong stream well?

Yes, after one setting. By default the first token is 58 to 136 ms late; with response_buffering: false it is 1 to 5 ms late.

What happens when it’s overloaded?

It slows (p99 about 1.3 s at twice the limit), keeps serving, and recovers within 5 seconds.
Take a quick product tour
Start Product Tour
Product Tour