Call a model API without streaming and the connection sits silent while the model writes the whole answer, then delivers it in one object. Flip one flag in the same request and the same answer arrives as a river: each token flushed down the wire the moment it exists. Nothing about the model changed. The tokens are identical, the last one is ready at the same moment, and the bill is the same to the cent. Streaming is a change in delivery, not in intelligence, and yet it is the difference between a ten-second blank screen and words in a third of a second, which is why it quietly became an architectural commitment for everyone who serves these models.
Streaming changes when you see the answer, not when the answer exists: same request, same tokens, same finish time, same price; the only thing that moves is the wait, from the full generation time down to the time of the first token.
Researched October 2026. The worked example is arithmetic, labeled as such; wire formats and prices are from the providers' own documentation pages.
One request two ways, then the serving machinery that decides the river's rhythm.
Follow a single call both ways. The worked example throughout: a 500-token answer generated at 50 tokens per second, so generation itself takes 10.0 seconds no matter what. Watch where the waiting happens in each mode.
Tap the arrows to step through
Your tokens are not made alone. They are produced inside a shared machine whose scheduling choices you can literally watch as rhythm, pauses, and bursts in the arriving text. Four mechanisms, in the order they touch your stream.
Tap the arrows to step through
What the chunks actually look like from the two big APIs, which transport carries them and why, and the cases where the right answer is not to stream at all.
Landmarks only: from request-and-response to streaming as the default transport.
Tap the arrows to step through
The contracts, the serving papers, and one interested dissent.
The streamed form of a chat completion: a sequence of chat.completion.chunk objects, each carrying choices delta content (or delta tool_calls fragments), all sharing one completion id, closed by a literal data: [DONE] line. The docs present streaming as a display option on the same endpoint, which is the whole thesis in miniature.
The typed alternative: message_start, content_block_start, a run of content_block_delta events (text_delta for prose, input_json_delta carrying partial JSON strings for tool input), content_block_stop, message_delta with stop reason and usage, message_stop, with ping keepalives and an error event that can arrive at any point. More ceremony, more information, same river.
The serving insight underneath everything: schedule per iteration, not per request, so finished sequences exit and waiting ones join after every single decode step. They named it iteration-level scheduling; the field renamed it continuous batching, a citation drift the literature itself now documents.
Their framing made streaming performance a systems property: the bottleneck was KV-cache memory management, solved by paging the cache like an operating system pages RAM. The launch blog claimed up to 24 times the throughput of Hugging Face Transformers in their benchmarks; the batching itself was inherited from Orca, a credit assignment the retellings often scramble.
The stall hunters: a long prompt's prefill, run as one block, freezes everyone else's decode. Split prefill into budget-sized chunks piggybacked on decode iterations and the freezes go away; they report 2.6 to 5.6 times the serving capacity of vLLM under tail-latency constraints. Your stream's smoothness is partly their chunk budget.
The pair of papers behind the bursts: a small draft model proposes several tokens, the big model verifies them in one parallel pass, and the output distribution is provably unchanged (2 to 3 times faster on T5-XXL; 2 to 2.5 times on Chinchilla 70B). Because the guarantee is mathematical, labs deploy it silently, and clients meet it only as rhythm: several tokens at once, then a pause.
The realtime-infrastructure vendor argues WebSockets beat server-sent events for AI streaming at scale: reconnection, replay, and last-mile delivery are the client's problem under SSE, and lab session APIs do not replay missed events. Fair points, commercially convenient ones: Ably sells the alternative. The labs' revealed preference so far is SSE for one-shot text and sockets only where the client must also talk (realtime audio).
No serious source prices or benchmarks streaming as a different product: rate cards list one per-token price with streaming as a supported feature, the forward passes are identical, and the last token lands at the same time either way. Claims that streaming "makes the model faster" are confusing time-to-first-token with total latency, and the field's own definitions keep them separate.
Since Orca, serving quality is understood to live in batching, cache management, and prefill policy as much as in the model. TTFT and inter-token latency are the two numbers every serious serving stack now reports, because users can feel both.
The labs' revealed preference. For one-shot generation the client speaks first and then only listens, which is exactly what server-sent events do, over ordinary HTTP that every proxy and firewall already understands. OpenAI and Anthropic both standardized on it; simplicity won.
The Ably position. At scale, SSE leaves reconnection, replay of missed events, and fan-out to the client and the edge. WebSockets give a managed, bidirectional channel with delivery semantics. The disagreement is really about who should own reliability, the protocol or the application, and it stays open because both sides are describing real costs.
The decode-first schedulers. Keep batches purely decode so inter-token latency stays glassy; let new prompts wait for a clean slot. The user already reading should never feel someone else's prompt arrive.
The Sarathi position. Pure decode batches strand prefill capacity and punish new arrivals' first tokens. Chunked prefill with a token budget keeps both promises at once, at measurably higher total capacity (their 2.6 to 5.6 times figure), accepting tiny decode jitter as the price.
So, streaming, in one paragraph: it is the same HTTP request with one flag flipped, answered as a sequence of server-sent events instead of one held JSON object. Generation is autoregressive, so a long answer takes linear time either way; streaming simply spends none of that time hiding finished tokens. The two numbers that describe the experience are time to first token (dominated by queueing and prefill) and inter-token latency (dominated by the shared batch your request rides in), and every serving advance of the last four years, continuous batching, paged KV cache, chunked prefill, speculative decoding, is a lever on one of those two numbers.
Every load-bearing claim traces to one of these.