Does distance make AI slower?

We measured the OpenAI and Anthropic APIs from eight cities. How much of the wait is the network, why the nearest server isn’t the model, and when location matters.

Popo
On this page

A ping to an AI site may show 5 ms, and the answer still takes ten seconds. The ping is real. It just measures something other than the model: the nearest machine of the content delivery network in front of it.

Four parts of a wait

  1. 1You → edgeA few milliseconds in a big city
  2. 2Edge → APITens to hundreds of milliseconds, by distance
  3. 3Waiting and readingThe queue, and your input
  4. 4WritingToken by token, often many seconds

Distance affects the first two. For anything but a very short answer, the last two decide.

Where the time goes between pressing Enter and the end of the answer.

The first part is short nearly everywhere because ChatGPT and Claude are behind Cloudflare, whose anycast addresses lead you to a data center nearby. The connection and its encryption are set up there. Only then does the request travel on to the servers that do the work.

Measured from eight cities

To separate the first two parts, we used Globalping probes in eight data centers to make two requests to each API: one that Cloudflare answers itself (/cdn-cgi/trace), and one that has to go to the API (/v1/models, without a key, which returns an error immediately). Neither uses the model.

Anthropic: answered at the edge

Ashburn4 ms
London6 ms
Frankfurt4 ms
São Paulo3 ms
Tokyo11 ms
Sydney5 ms
Singapore6 ms
Johannesburg4 ms

Anthropic: answered by the API

Ashburn68 ms
London100 ms
Frankfurt114 ms
São Paulo134 ms
Tokyo191 ms
Sydney250 ms
Singapore247 ms
Johannesburg244 ms
Time to first byte after the connection was open, Globalping, 30 November 2026, 08:41 UTC. One measurement per city, so treat single values as approximate.

The edge answered within 3 to 11 milliseconds everywhere, from nodes in the probes' own cities. The API took from 68 ms (Ashburn, in the US state of Virginia) to 250 ms (Sydney). The same for OpenAI:

OpenAI: answered by the API

Ashburn56 ms
London112 ms
Frankfurt175 ms
São Paulo134 ms
Tokyo164 ms
Sydney177 ms
Singapore227 ms
Johannesburg330 ms
Same method and time. At the edge, OpenAI's API answered in 4 to 25 ms.

In both cases the shortest time is from the eastern United States, and the times broadly grow with distance from there. That suggests these requests were handled in or near North America. It doesn't show where the model runs: checking a key and generating text can happen in different places, and providers can move both at any time.

Can it be explained by distance alone? Light in fiber covers about 200,000 km per second, so each 1,000 km adds about 10 ms to a round trip. Sydney to Virginia is about 15,700 km in a straight line, so at least 157 ms. The measured 250 and 177 ms are in the range you'd expect with real cable routes and some processing.

How much does it matter?

Take Sydney at 250 ms and Ashburn at 68. The gap is under 0.2 seconds, once, at the start. After that, text arrives as a stream, and tokens on their way don't wait for one another. Suppose an answer has 500 tokens and the model writes 50 per second: it takes 10 seconds. The difference between the two cities is then about 2% of the wait.

So for chatting, distance is hardly noticeable. Where it does count:

  • Many short requests in sequence. An agent that makes 40 calls pays for the round trip 40 times: about 7 seconds in this example.
  • Short answers, such as classification or autocomplete, for which generating takes hardly longer than the trip.
  • Voice, where people notice delays of a few tenths of a second.
  • New connections. Setting one up takes extra round trips, but only to the nearby edge. Reusing connections avoids it.

What usually makes it slow

Time before the first word grows with the length of the input and how busy the service is. Reasoning models may think for a long time first. The speed of writing depends on the model and the load. None of these is in your network.

A poor connection is different from a distant one. Packet loss and unstable Wi-Fi make a stream stutter or stop halfway. And a proxy or VPN adds its own detour before the edge.

Measure yours

The connectivity check shows the time from your browser to each AI site's edge. If it's under 100 ms, your network isn't what you're waiting for. To compare cities, use the global ping:

On the command line, the same comparison as above:

Terminal
for p in cdn-cgi/trace v1/models; do  curl -s -o /dev/null -w "$p %{time_pretransfer} %{time_starttransfer}\n" https://api.openai.com/$pdone

Subtract the first number from the second: that's the time to first byte on an open connection. The difference between the two lines is roughly what distance to the API costs you.

A lookup of the API's address won't tell you where the model is. It's an anycast address, and the network it's on is the CDN's or the company's, not the GPU cluster's.

More in AI & LLMs

Using AI services, how LLMs work, and AI news

All 35 articles