Methodology — how AI API latency is measured
Latency here is measured directly from probes in four regions — not scraped from pricing pages and not routed through an aggregator gateway. This page documents exactly how, so the numbers can be audited and cited with confidence.
What exactly is measured?
Two independent metrics per provider:
- Edge latency (time-to-first-byte, TTFB) — a probe connects to the provider's official API host and measures DNS resolution, TCP handshake, TLS handshake and time to the first response byte. The published TTFB is the last of these: the time from sending the request over the open TLS connection to the first response byte; the setup steps stay in the raw data. This isolates network and edge performance from model compute.
- Inference latency (time-to-first-token, TTFT) — the time from request to the first
streamed token of a real streamed completion. This needs an API key per provider, so it is measured
only where we hold one and appears as a separate table on those region pages. Coverage is
deliberately partial: every headline ranking on this site is edge latency (TTFB), never a
mix. We publish nothing rather than estimate a provider we cannot actually call.
The same request doubles as an error probe. A 5xx, a 529 or a timeout on that one-token request counts as a failed request and enters the incident log as “requests to <model>”, kept apart from host probes — a host can answer normally while a model returns errors, and on 3 September 2026 Anthropic did exactly that. Errors that are ours (a rejected key, an exhausted quota, a retired model name) are excluded rather than counted as the provider’s downtime.
TTFT is not comparable across providers. Each one is measured on whichever model that account can call, and model size drives TTFT far more than the network does — a 30B model will beat a 120B model on the same hardware. The model is printed next to every TTFT figure so the number can be read honestly; treat it as a per-provider baseline over time, not a leaderboard.
Where is it measured from?
Independent probe nodes in four regions, so latency reflects real geographic distance to each provider's infrastructure: Europe (Germany), US (Central), Asia (Tokyo) and South America (Santiago). Rankings routinely differ by region — the fastest API from Europe is often not the fastest from Asia. That per-region difference is the reason this site exists. The servers themselves are listed on what this site runs on.
Until November 8, 2026, South America was measured from São Paulo, Brazil (region sa-east); since then it is measured from Santiago, Chile (region sa-west). The same Vultr instance costs less in Santiago. The two cities are different routes to every provider, so their figures are separate series and are never merged; São Paulo measurements stay in the raw data until February 6, 2027.
How much data is behind these numbers?
Every figure on this site comes from the table below — the same database the rankings are built from, so the two cannot drift apart. As of November 16, 2026 it holds 4,867,109 individual measurements of 48 providers — including 3 APIs that have shut down and are still probed to confirm it, outside the rankings across 4 regions (and São Paulo until November 8, 2026), collected continuously since 2026-08-17 (91.0 days). The last 24 hours alone account for 56,160 probes.
| Region | Probes (24 h) | Providers | Probes per provider |
|---|---|---|---|
| Asia (Tokyo) | 14,040 | 48 | 292 |
| Europe (Germany) | 14,040 | 48 | 292 |
| South America (Santiago) | 14,040 | 48 | 292 |
| US (Central) | 14,040 | 48 | 292 |
At one probe every five minutes, a region should record roughly 288 probes per provider per day. Lower counts indicate reduced coverage for that day. Historical inference coverage in the retained database includes 7 of 48 providers, not necessarily active today. For successful TTFT measurements in the last 24 hours, see current TTFT coverage and named models. Raw measurements are retained for 90 days.
How often is it measured?
Each provider is probed on a repeating schedule (every few minutes). Pages rebuild automatically and show a visible “Updated” / “Last verified” date. Reported figures are percentiles over the last 24 hours.
Why percentiles instead of averages?
We publish p50 (median — a typical request) and p95 (95th percentile — the slow tail users actually feel), plus uptime (share of probes returning a successful response). Percentiles are nearest-rank; averages are avoided because a few outliers distort them.
When does a probe count as up, as a failure, or as a shut-down API?
Host probes carry no API key by design, so a 401 or 403 means the API host answered
correctly and counts as up. A timeout, a refused connection or a 5xx answer counts as a failure.
A 410 Gone counts as neither: it is the server stating that the resource has been
permanently removed (RFC 9110),
so it enters no latency figure, no uptime figure and no incident.
An API is treated as shut down when its provider has announced the shutdown and the date has
passed, or when its host has given nothing but 410 — no ordinary answer — from two or more
regions for an hour. A shut-down API is left out of every ranking, uptime table and incident count, and is not
counted among the providers we measure, because the milliseconds to an error page are not API latency and
“up” over a closed API would be false; its stored probes stay in the raw data. Its page says what happened instead: the shutdown date with a link to the provider’s own notice,
or, without a notice, what our probes receive and since when. The probes keep running, so a host that starts
answering normally again returns to the rankings by itself; an announced shutdown is lifted by hand once the API
is confirmed back. Currently treated as shut down: Tencent Hunyuan (retired on september 30, 2026), Targon (the endpoint is gone (http 410)), 01.AI (retired on september 3, 2026).
Until 7 November 2026 a 410 was recorded as up. Raw rows keep their HTTP status, so those older
answers are recognised and excluded in the same way; the daily aggregates published before that date still count
them as successes.
How is the Speed Index calculated?
The Speed Index is a composite 0–100 score for comparing providers across regions at a
glance. In each region a provider scores fastest_p50 / provider_p50 × 100 — so the region’s
fastest API scores 100 and one twice as slow scores 50 — and the score is averaged over the regions where the
provider is measured. The homepage lists only providers measured in all regions, so the comparison is
like-for-like. It is derived entirely from the measured p50 figures above: reproducible, not a subjective rating.
What does this data not tell you?
- It is an independent, provider-neutral, reproducible signal of how quickly each API responds by region, over time.
- It is not a benchmark of model quality, throughput (tokens/sec) or price. Measured latency depends on network path and endpoint behaviour and can change without notice.
- Every number is measured by this system; nothing is estimated or copied from a provider’s marketing.
How can I use or cite this data?
All rankings are free to reuse under CC BY 4.0, including commercially, provided the
source is attributed. Machine-readable: JSON API,
per-page markdown (append .md or send Accept: text/markdown),
full corpus, and an MCP endpoint for agents.
There is also an embeddable badge if you want to display a measured latency figure on your own site or README — it regenerates itself from live data.
Because every figure moves, a citation is only meaningful with the timestamp it was taken at. Please cite it as:
Source: llmlatency.dev — measured AI API latency by region, as of <UTC timestamp>.
The generated field in the JSON API carries that timestamp. Include the measurement
region when citing a latency figure.
Corrections & disputes
Report a suspected error to contact@llmlatency.dev.
Include the provider, the region, the UTC timestamp and your own measurements. We check reports against the stored raw probes.
- What happens next: the raw samples behind the disputed window are re-read. If the figure is wrong, it is corrected and the correction is recorded on the changelog.
- What will not happen: no number is removed, delisted or softened because a provider dislikes it. A measurement that survives a challenge stays exactly as measured.
- Endpoint changed? If the API host being probed is no longer the right one, say so — a stale endpoint is a measurement bug on our side, and it is the most useful report we get.
- The same address takes requests for an extra region or provider, and bulk history beyond the published window.
Partner links, and how they are kept apart from the data
A few pages carry a block labelled Partner link. If you sign up with that vendor through it, this site earns a commission (from Z.ai: credits on its own platform, not cash). Three rules keep that from touching the measurements:
- Partner links live in their own marked block, never inside a ranking, table or comparison, and carry
rel="sponsored"so search engines and answer engines can tell them apart from citations. - No provider measured here can buy a position, a badge or a softer number. Partner rewards have no input into any figure on this site. Where a measured provider runs an affiliate or referral programme we have joined (Novita AI, Z.ai), the link appears on that provider’s own page only, never in a ranking or comparison, and its figures come from the same probes and the same code as everyone else’s.
- Partner blocks go only on pages about the thing the vendor sells, and only for vendors this site uses itself or says plainly, in the block, that it does not use. Vultr hosts three of the four probe servers; the others are named as what they are: products for the same readers, not part of the measurement.
- Each partner, what it is for and whether this site uses it: what this site runs on.
- The list is short and public: Novita AI, Z.ai, Hyperping, Vultr, Railway, Vast.ai. If it changes, this section changes with it.
Partner links point to https://llmlatency.dev/go/<name>, which redirects to the vendor. The redirect
counts how often people use each link and from which page, so links nobody uses can be removed; bots are not
counted. It sets no cookie and stores no IP address — only a hash salted per day, so one person clicking ten
times does not look like ten readers.