LLM API vs PydanticAI Gateway Benchmark Comparison

LLM API
Faster in 0 of 2
vs
Pydantic
Faster in 2 of 2

Pydantic was faster in both shared AI gateway benchmarks.

Shared benchmarks
2
Last run
October 30, 2026
Want the full run details?Sign up free →

Scorecard

Median of each benchmark's primary metric; lower is better. Medians within 5% count as roughly even, and a benchmark gets no speed verdict when either provider completed fewer than 50% of runs.

BenchmarkLLM APIPydanticResultRatio
Anthropic
Cold end-to-end latency · Run October 30, 2026
762ms
100% success
393ms
100% success
Pydantic faster
1.94x
OpenAI
Cold end-to-end latency · Run October 30, 2026
1781ms
100% success
681ms
100% success
Pydantic faster
2.61x

Anthropic

Run October 30, 2026

Time for a cold request routed through the gateway to Claude Haiku 4.5 to return its complete response.

Cold end-to-end latency

LLM API

100% success
Median
762ms
P95
804ms
P99
809ms
LLM API Anthropic results →

Pydantic

100% success
Median
393ms
P95
475ms
P99
514ms
Pydantic Anthropic results →

Pydantic had a 1.94x lower median cold end-to-end latency (393ms vs 762ms for LLM API).

Median cold end-to-end latency over time

10 runs from August 28, 2026 to October 30, 2026.

LLM APIPydantic
View the full Anthropic leaderboard →

OpenAI

Run October 30, 2026

Time for a cold request routed through the gateway to GPT-5.4 Mini to return its complete response.

Cold end-to-end latency

LLM API

100% success
Median
1781ms
P95
2676ms
P99
2830ms
LLM API OpenAI results →

Pydantic

100% success
Median
681ms
P95
962ms
P99
1063ms
Pydantic OpenAI results →

Pydantic had a 2.61x lower median cold end-to-end latency (681ms vs 1781ms for LLM API).

Median cold end-to-end latency over time

10 runs from August 28, 2026 to October 30, 2026.

LLM APIPydantic
View the full OpenAI leaderboard →

Methodology

  • One workload, every provider. The same script, payload, and model hit every provider, addressed the way its own API expects. Nobody gets a tuned or special path.
  • Repeated on a schedule. Every suite runs many iterations per provider, automated on a recurring schedule, so results reflect steady state rather than one lucky request.
  • Raw results published. Every run is committed as JSON to the public benchmarks repo, next to the code that produced it. Nothing is cherry-picked or held back.
  • How this comparison is built. Each benchmark compares the two providers' medians; results within 5% count as roughly even. A comparison is published only when both providers completed the latency benchmark on at least two of the same model families reliably: at least 50% success for each provider, in benchmark runs from the last 30 days.

Frequently asked questions

Have another question? Email us.

Pydantic was faster in both shared AI gateway benchmarks. In Anthropic (October 30, 2026), Pydantic had a median cold end-to-end latency of 393ms versus 762ms for LLM API, 1.94x faster. In OpenAI (October 30, 2026), Pydantic had a median cold end-to-end latency of 681ms versus 1781ms for LLM API, 2.61x faster.

PartnersGoogle Cloud Run