Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

AI comparison

Streaming vs not streaming

Stream when a person is watching the reply appear, so they can start reading at once; wait for the whole reply when code must parse or check it first.

Streaming and Whole reply side by side
AspectStreamingWhole reply
First words appearWithin a momentWhen the whole reply is done
Total timeAbout the sameAbout the same
Handling in codeEvents to join and partial textOne response to parse
Checking before showingHard: the text is already shownEasy

Choose Streaming when

  • A person reads the reply as it is written
  • Replies are long
  • You want the feature to feel responsive

Choose Whole reply when

  • The reply is JSON for your code
  • You must check or filter it before anyone sees it
  • Replies are short

Learn it hands-on

These free lessons teach it with commands to run in a lab and checked tasks. Read them whole with no account.

Related terms

Streaming
Streaming sends a model's reply piece by piece as it is generated, so a user sees the first words in a moment instead of waiting for the whole answer.
Latency
Latency is how long a user waits for a response; for a language model it is usually split into time to first token and total time.
Structured output
Structured output is asking a language model to reply in a fixed machine-readable shape, such as JSON with named fields, instead of free text.

← All AI terms