Skip to content

Anthropic AI Gateway Benchmark

Benchmark AI gateway latency and token throughput, measured against a direct-to-Anthropic baseline. Inspired by this benchmark from Ronny Badilla.

Provider leaderboard

Select a provider to see its full results.

"Anthropic (Direct)" is a no-gateway control, not a competing gateway — it isolates how much latency each gateway adds on top of the underlying model provider.

Provider VarianceComposite Score

"Anthropic (Direct)" is a no-gateway control, not a competing gateway.
Delta vs. the Anthropic (Direct)'s composite score. Positive is better than baseline; negative is worse.

Performance Over Time

Composite Score

Detailed Metrics

Provider
Anthropic (Direct)Baseline92.3268ms265ms740.36ms1.05ms4.52ms100%
ngrok AI Gateway92.1311ms279ms740.58ms13.00ms15.21ms100%
Pydantic AI Gateway91.9344ms296ms720.97ms1.57ms7.34ms100%
Cloudflare AI Gateway91.5370ms351ms691.38ms1.08ms8.54ms100%
LLM Gateway91.5368ms358ms691.09ms1.53ms7.68ms100%
Vercel AI Gateway91.0439ms409ms661.54ms8.23ms18.03ms100%
Concentrate AI90.6524ms494ms630.82ms1.06ms5.06ms100%
LLM API89.2792ms598ms530.47ms87.48ms89.00ms100%
Blazerail87.6884ms880ms471.28ms0.98ms2.86ms100%

Models & Pricing

Every model each gateway lists through its public catalog endpoint, unified into one cross-gateway matrix with per-million-token pricing. See which gateways route a given model and what each charges.

Methodology

Every run executes on a GitHub Actions runner provided by Namespace, physically located in Northern Virginia, US. Since results are a property of the network they're measured from, treat rankings as relative to that vantage point rather than a universal number — see Limitations in the archived methodology.

What We Measure

Every gateway is hit directly with the same prompt and model (Claude Haiku 4.5), addressed the way each API expects it to be addressed — no gateway is proxied through another. Each request is either cold (a brand-new TCP+TLS connection, opened from scratch) or warm (a second request reusing an already-open keep-alive connection).

Cold requests are broken into DNS, TCP, and TLS phases (real socket timestamps, not estimates), plus time to first response byte and first streamed token. Every request also records output tokens/sec and success/failure.

This family's no-gateway control is a direct call to Anthropic's own API, not a competing participant — it isolates how much latency each gateway adds on top of the underlying model provider. See the other target-model families on the AI Gateway Benchmarks overview. Full methodology, including how "cold" and "warm" are defined and their limitations, is documented in the archived benchmark methodology.

How We Score

The Composite Score combines cold end-to-end latency and warm time-to-first-token — the short-lived-process case and the steady-state case — with generation throughput, all multiplied by success rate.

  • • Cold E2E median: 30%
  • • Warm TTFT median: 30%
  • • Cold E2E P95: 15%
  • • Warm TTFT P95: 15%
  • • Tokens/sec: 10%