An AI assistant starts typing almost immediately, while another stays blank and then displays a complete answer. The first may feel faster even if both finish at the same time. Streaming changes when output becomes visible; it does not automatically shorten every part of the underlying work.
Anthropic’s streaming documentation provides one concrete API example, including events for the beginning, incremental content and completion of a message. Other services have their own event formats and failure behaviour, so build against the service actually being used.
Measure two waits
Record the time until the first useful visible content and the time until the complete result is available. Define the starting point consistently. A measurement taken after a server receives the request excludes some of the wait experienced by the person who clicked Submit.
For an illustrative comparison, imagine two interfaces that both finish in eight seconds. One displays useful text after two seconds; the other shows nothing until the eighth. Those invented numbers describe different experiences, not measured performance of any named model.
Now consider a workflow that needs a complete, validated object before updating a record. Seeing the first few characters sooner may be useful feedback, but it does not mean the application can safely act on an unfinished result.
Make interruption visible
A network failure halfway through a streamed answer should not leave the partial text looking complete. Keep a clear distinction between receiving, completed, cancelled and interrupted states. Preserve enough context for the user to understand what happened without exposing sensitive data in logs.
Test a slow stream, a stream that fails before any content arrives and one that stops near the end. Also test cancellation. The interface should stop presenting progress when the request has been cancelled rather than quietly appending late content to a new task.
Structured output and tool arguments need particular care: fragments can be incomplete until their defined end. Validate the complete object and apply the normal permission checks before any action. Streaming is a delivery mechanism, not an authorisation mechanism.
Use the measurements to improve the actual task. A pleasant first response matters, but a user completing a form or approving a document also needs a reliable signal that the answer is finished and ready to review.

