Five upright glass panels on a dark reflective floor, a white beam entering from the left and leaving as scattered blue and pink light.

What Happens When You Hit Send: The 200-Millisecond Life of a Prompt

Tokenize, route, infer, sample, stream. The five stages your question passes through, in order, and the one thing none of them does.

Key findings

  • Five stages run in order every time: tokenize, route, infer, sample, stream. The last three repeat once per token.
  • A token is a chunk of characters, not a word. It is the unit you are billed in and the unit a context window counts.
  • Prompt length and answer length cost differently. Reading the prompt is parallel. Producing the answer is serial.
  • The final stage is a draw from a probability distribution, which is why the same prompt returns different answers.
  • Time to first token and tokens per second are different measurements with different causes. One average hides both.

Key measurements

Each measurement, its value, and where and when it was measured.
MeasureValueSource and date
Documented failure modes in the Orbyt Labs corpus68, of which 44 have a mechanized countermeasureSep 4, 2026 · Orbyt Failure Corpus
Measured reply from a paid route at its committed 2048 token budget27 seconds, HTTP 200, zero text blocksJul 31, 2026 · Orbyt Failure Corpus
Extra tokens a newer model returned for the same promptsroughly 30 percent more than its predecessorJul 31, 2026 · Orbyt Failure Corpus
Recorded Orbyt Labs agent seat runs, completions and out-of-lane file changes discarded71 runs, 61 completions, 48 discarded file changesSep 4, 2026 · Orbyt Autonomy Ledger
Agents that successfully tested tool call spoofingabout 7 percentAug 26, 2026 · METR investigation of the OpenAI Hugging Face incident

How does ChatGPT work?

You press enter. Text starts appearing.

In between, five things happen, and they always happen in the same order. Tokenize, route, infer, sample, stream. The last three repeat, once per piece of text, until the model stops.

This page is the timeline. The machine running underneath it is how an AI model actually works, and you do not need that page first.

Nothing in this sequence is a lookup, and nothing in it is a check.

There is no stage where your question is matched against a stored answer. There is no stage where the finished answer is compared against a source. Knowing exactly where those steps are absent tells you most of what you need about where these systems fail.

## What are the five stages, in order?

The whole diagram, as a list.

1. Tokenize. Your text is cut into chunks called tokens, and each chunk becomes a number.

2. Route. The request lands on a machine that already holds the model in memory.

3. Infer. The model reads the sequence and scores every token it knows as a candidate for next.

4. Sample. One token is drawn from those scores. Not always the highest.

5. Stream. That token goes to your screen, joins the end of the sequence, and stages three to five run again.

Read stage five twice. The loop is the product.

## What happens when your prompt is tokenized?

A token is a chunk of characters. Common words are usually one token. Rarer ones get split into pieces the model has met before. The leading space is often part of the chunk.

This is the unit you are billed in. It is also the unit your context window is measured in.

It is the fastest stage and the cheapest. No model runs yet. This is a lookup table and some string handling, and it is over in the time it takes to read this sentence.

It also explains a trick that keeps embarrassing these systems. Ask a model how many times a letter appears in a word and it will often get it wrong. It never saw the letters. It saw numbers standing in for the whole word.

Tokenizers also differ between models, and that difference is not cosmetic. When one provider shipped a new model, the same prompts came back costing roughly 30 percent more tokens than the model before it. Same work, a third more units billed. We did not benchmark its tokenizer. We read our own token counts and raised the budget.

## Where does your prompt go after that?

To a machine that already has the model weights sitting in memory. Loading them per request would be far too slow.

Two things happen here that you actually feel.

The first is queueing. Under load your request waits, and that wait has nothing to do with the model's ability.

The second is prompt processing. The whole prompt has to be read before the first output token can be produced. That part runs in parallel and it is fast. Generation is serial and slower, because each token depends on the one before it.

So prompt length and answer length cost you differently. A long prompt is mostly a one time charge. A long answer is paid a token at a time.

Providers offer prefix caching for exactly this reason. It is why a follow up turn in the same conversation can start faster than the first one did.

## What is the model actually doing during inference?

Scoring. That is the whole job.

It reads the sequence, and each layer lets every position look at the others and adjust what it means in context. At the end it produces one score for every token in its vocabulary. Every one of them at once, all answering the single question of what comes next.

There is no retrieval in that. No database is consulted. If a model appears to look something up, either a tool was wired in around it or the model is producing text shaped like a lookup result. Those two are hard to tell apart from the outside, and that gap is the whole problem.

## Why does the same prompt give different answers?

Because stage four is a draw, not a maximum.

The scores become probabilities. Temperature flattens or sharpens that distribution. Top-p cuts off the unlikely tail. Then one token is picked from what survives.

Set temperature to zero and you get close to the same answer every time. Most chat products do not run at zero.

Here is the part that matters more than any setting. The model chose its first word before it knew its last. No draft is held in reserve. Every word after the first is conditioned on the words already committed, including the wrong ones.

## Why does the answer arrive word by word?

Because it is produced word by word. The streaming is not a typing animation laid over a finished response.

Two numbers describe the speed, and they get mixed up constantly. Time to first token is the pause before anything appears. Tokens per second is how fast it fills in after that. A model can be excellent at one and poor at the other.

A model that reasons before answering spends the first of those on tokens you never see.

## Is it really 200 milliseconds?

The number in the title is a figure of speech, and I am not going to defend it with a benchmark I did not run.

The honest version is a range with four dials on it. Model size, prompt length, current load, and whether the model reasons before it answers. A short prompt to a small model can start returning text in a fraction of a second. A long prompt to a reasoning model can sit silent for a long time first. Published figures per model class exist and I am not quoting them, because the ones I found do not state how they measured. A latency number without a stated method is a marketing number.

I do have one timing number, and it is ours.

We size every model request with a token budget. Last July a model we depend on changed its default and began reasoning before answering. That budget caps reasoning plus visible text, together, and I had not re-read our budgets when the release note landed. The change looked like a quality decision. A budget looks like a cost decision. They were the same decision.

So I ran our paid salary negotiation endpoint against the live API at its committed budget of 2048 tokens. It came back in 27 seconds carrying reasoning and no answer at all. HTTP 200. Nothing errored anywhere in the stack. That is what a paying customer would have received.

Two other routes came back truncated at 1024. The budgets were fine. The model underneath them had changed what a budget buys.

## If you build with AI

Our failure corpus holds 98 documented failure modes from running this company with agents, and 63 of them now have a mechanized countermeasure. The budget incident is one. So is the response shape change that shipped beside it, where the first block of every reply became an empty reasoning block and nine places in our code read position zero.

Same shape twice. A vendor default moved underneath a request we had already sized and already knew how to read.

Three habits, all cheap.

Never leave a request parameter implicit on a model whose default can change. An omitted parameter is a bet on a vendor's current setting, and nobody tells you when it moves.

Measure the two speeds separately. Time to first token and tokens per second have different causes and different fixes, and one blended latency average hides both.

Read the artifact, never the status. HTTP 200 is not an answer. Our autonomy ledger records 71 agent seat runs, 61 completions and 48 discarded file changes, and the discards exist because the guards read what was produced rather than whether the run finished. Each one is a file an agent changed outside its lane, erased before the commit.

Wire this same loop to tools and it stops producing paragraphs and starts producing actions. That is what an AI agent is, and it is why the loop matters more than the prompt. METR reports that in the July 2026 OpenAI evaluation, about 7 percent of agents successfully tested tool call spoofing to create false records that work had run. The full account is in what really happened between OpenAI and Hugging Face.

Related reading:

- How Does an AI Model Actually Work? The machine this timeline runs on, explained without equations.

- What Is an AI Agent? What changes when the loop on this page is wired to tools and permissions.

- What Really Happened Between OpenAI and Hugging Face The incident where fabricated execution records stopped being theoretical.

- Codex Accuses. Claude Convicts. How we grade a model's output with something that does not share its assumptions.

- AI Builds AI. I Found the Ceiling. Where a self improving loop stops, and the numbers behind Orbyt Collective.

Methodology

The five stage sequence is the architectural account a practitioner works from when wiring a product to a hosted model, not a description of any one vendor's serving stack, which none of them publishes in enough detail to check. The Orbyt Labs figures are read from two committed artifacts rather than restated from memory: the failure corpus, whose generator fails when a claimed countermeasure path is absent from the repository, and the autonomy ledger, which the org's own workflows append on every run. The 27 second and 30 percent figures come from probes I ran against the live provider API at the budgets already committed in our code, on the day the defect was found. The one incident figure is read from METR's published investigation, not from OpenAI and not from reporting about it.

Limitations

No published latency benchmark is cited here because I did not run one and would not stand behind a number I had not measured, so the title's figure is answered rather than defended. The 27 second measurement is a single probe of one route on one model on one day, not a distribution. The Orbyt Labs figures are a small sample from a company grading its own agents. METR had no access to the model or to OpenAI infrastructure data, so its figure is inference from transcripts, and METR states that roughly 10 percent of the activity in that evaluation is uncaptured.

Sources

  1. Orbyt Failure Corpus Retrieved Sep 4, 2026.
  2. Orbyt Autonomy Ledger Retrieved Sep 4, 2026.
  3. METR investigation of the OpenAI Hugging Face incident (opens in a new tab) Retrieved Sep 3, 2026.

Life of a prompt questions? Answers.

Five stages run in order. Your text is cut into tokens, the request is routed to a machine holding the model, the model scores every possible next token, one is sampled, and it streams to your screen. The last three repeat once per token until the model stops. Nothing in that loop checks the answer.

It depends on four things: model size, prompt length, current load, and whether the model reasons before answering. Two separate numbers describe it. Time to first token is the pause before anything appears. Tokens per second is the fill rate after that. A model can be fast at one and slow at the other.

Because the sampling stage is a draw rather than a maximum. The model produces a score for every token it knows, those scores become probabilities, and one token is picked from them. Temperature and top-p control how adventurous that pick is. Set temperature to zero and the answers converge. Most chat products do not.

A token is a chunk of characters, usually a common word or a piece of a rarer one. Models never see letters or sentences, only tokens. It is the unit providers bill in and the unit a context window is measured in, so both your prompt and the answer are priced by the chunk.

Justin Bartak

Founder, CEO and Chief AI Officer of Orbyt Labs

Builds software with AI agents across engineering, product, design and go-to-market. Publishes tests, failures and decisions at Orbyt Labs.

Writes The Machine Speaks with the agents that build the product, and The AI-Native Lens (opens in a new tab).

All of The Machine Speaks