Skip to content
Tech Intuition
Tech Intuition

Appearance

Theme

Signal · Dark with amber

Background

Slow stars and the odd comet

Connect

Video breakdown

How ChatGPT scales to billions of prompts a day

GPU batching, the KV cache, model routing and rate limits explained as one stack, with a clear line between what OpenAI has said publicly and the standard techniques that explain it.

14:12 video7 min read

Watch on YouTube (opens in a new tab)

Each segment is a chapter, drawn to scale

  • 2 architecture diagrams
  • 3 self-checks
  • 2.5B

    prompts a day (reported, July 2025)

  • ~29,000

    prompts every second

  • 5

    layers in the serving stack

In this video
  • Why generating text is sequential and memory-hungry, and what the KV cache stores.
  • How batching and continuous batching keep an expensive chip busy.
  • Why routing easy and hard questions to different models saves money.
  • How rate limits and graceful fallback keep a service alive when demand spikes.

Chapters

  1. 0:00The impossible math of a billion answers (opens the video at this moment on YouTube)
  2. 1:15The cost of a single word: tokens and the KV cache (opens the video at this moment on YouTube)
  3. 3:01Batching: continuous batching and prefix sharing (opens the video at this moment on YouTube)
  4. 4:53The day the GPUs melted (opens the video at this moment on YouTube)
  5. 5:50The machine underneath: GPU fleets and follow-the-sun (opens the video at this moment on YouTube)
  6. 7:37The traffic cop: the GPT-5 model router (opens the video at this moment on YouTube)
  7. 9:57When the system says no: rate limits and failing softly (opens the video at this moment on YouTube)
  8. 12:08The whole stack, and the principle behind it (opens the video at this moment on YouTube)

ChatGPT handles on the order of 2.5 billion prompts a day. That is roughly 29,000 every second, on chips that are scarce and expensive. No single idea makes that possible. It is a stack of ideas, each covering for a limit of the one below it.

What is confirmed and what is explanation

OpenAI has not published a full description of how it serves ChatGPT. So this post separates two kinds of claim.

ClaimStatus
About 2.5 billion prompts per day (July 2025)Reported by Axios; OpenAI confirmed the figure
GPT-5 is a system with a fast model, a deeper reasoning model and a routerDescribed by OpenAI at launch (August 2025)
"Our GPUs are melting"; image limits for free usersSaid publicly by OpenAI's CEO (March 2025)
OpenAI is designing custom chips with BroadcomAnnounced jointly in October 2025
KV cache, batching, continuous batching, prefix reuse, token-bucket limitsStandard industry techniques that explain how such a service works; not an inside account of OpenAI's systems

That does not make the techniques less useful: they are what every large language model service has to solve.

Layer 1: the job is sequential and memory-hungry

A language model writes one token (a piece of a word) at a time. Each token depends on everything before it, so the work cannot be run ahead; it is sequential.

To avoid redoing the math for earlier tokens, the model stores intermediate results for them, the key-value (KV) cache, in GPU memory next to the model. Each token generated reads that cache again. GPU memory is small and expensive, and the cache grows with conversation length, so long conversations leave less room for everyone else.

  generation:  sequential, one token at a time
               memory-hungry (KV cache grows)
  the chip:    built to do thousands of things at once
               with limited memory
  ──────────────────────────────────────────────────────────────
  everything below is a way to resolve this mismatch
Fig. The core tension

Layer 2: batching keeps the chip busy

One user per GPU wastes the chip. Each step has to read the model's weights from memory, and that cost is the same whether the step serves one request or a hundred. Batching serves many requests in the same step so the cost is shared.

Plain batching has a flaw: the group finishes together, so one long answer holds up the short ones. Continuous batching (described in the research literature as iteration-level scheduling) checks the queue after every token. When a request finishes, its memory is freed and a waiting request takes the slot immediately, so the batch stays full.

  static batching
    slot 1  A A A A A A A A
    slot 2  B B · · · · · ·   idle
    slot 3  C C C C · · · ·

  continuous batching
    slot 1  A A A A A A A A
    slot 2  B B D D D D D D   D joins
    slot 3  C C C C E E E E
Fig. Batching: each row is a slot, time moves right

Related ideas include managing KV memory in small blocks so it is not wasted (the approach behind the vLLM serving system) and prefix reuse: many requests begin with the same standing instructions, so the system computes that shared start once and reuses it. OpenAI's API exposes a similar idea as prompt caching.

Layer 3: the machine

ChatGPT has run on Microsoft Azure, with racks of AI accelerators joined by fast networking so many chips behave like one. OpenAI has since added more compute partners, and in October 2025 announced a multiyear agreement with Broadcom to co-develop its own custom accelerators, with the first deployments planned for the second half of 2026.

The video also describes demand "following the sun": the busiest region moves around the planet, so spare capacity in sleeping regions can serve awake ones. That is a sound general pattern for global services, and it is why capacity planning for the single busiest region wastes hardware. OpenAI has not published how it routes between regions, so treat this part as an explanation of the idea, not a description of its system.

Layer 4: send each question to the right model

Most questions are easy, and a few are hard. A small, fast model can answer a quick fact or a rewrite cheaply. A hard maths or coding problem benefits from a larger model that spends time reasoning. Sending everything to the biggest model would waste most of its capacity.

With GPT-5, OpenAI described ChatGPT as a system: a fast model, a deeper reasoning model, and a router that decides between them. It weighs things like the type of conversation, how complex it looks, whether tools are needed, and whether you asked it to think harder, and it is continuously trained on signals such as users switching models and which answers they preferred. The exact rules have changed since launch, so treat any specific behaviour as a snapshot.

Fig. Routing as a cost control
Fig. Routing as a cost control

Layer 5: when demand wins anyway

In March 2025 a new image generator went viral. OpenAI's CEO said publicly that the company's GPUs were "melting", and OpenAI temporarily limited image generation, with free accounts to be held to three images per day. The point is the principle: when demand exceeds the hardware, the system has to protect itself.

The classic tool is the token bucket: a bucket refills at a steady rate, each request spends tokens, and spending faster than the refill means waiting. It turns a spike into a steady stream. The same idea appears in every rate limiter, including the one you can break in the 3D rate limiter lab, and OpenAI's API documents its limits as requests and tokens per minute.

The gentlest way to say no is to not say no. When you reach a limit on the main model, ChatGPT can move you to a smaller one so you still get an answer. That is graceful degradation: not unlimited, but always something.

The stack in one picture

Fig. A request's path down the stack
Fig. A request's path down the stack

Check yourself

QuestionWhy does serving one user per GPU waste the chip?Reveal answer

Each step must read the model's weights from memory, and a single conversation produces one token at a time, so the chip's parallelism sits idle. Batching many users shares that cost across requests.

QuestionWhat problem does continuous batching solve that plain batching does not?Reveal answer

In plain batching a whole group must finish together, so short requests wait on long ones and slots sit empty. Continuous batching checks the queue after every token and fills a freed slot at once.

QuestionWhy is falling back to a smaller model better than returning an error when a user hits a limit?Reveal answer

The user still gets an answer, load on the expensive model drops, and the service degrades gradually instead of failing. This is graceful degradation.

Go deeper

Build the limiter yourself in the rate limiting lesson and the 3D lab. The caching lesson explains why reusing shared work pays off, and the load balancing lesson covers spreading work across machines.

Sources

Spot a mistake, or have a question?

Accuracy matters here. Tell me what looks wrong or unclear and I will fix it and credit you.

Keep going

Send a message

It goes straight to my inbox. I usually reply within a few days.