Building with AILesson 5 of 80

Module 1 · The call underneath everything

Streaming, and the difference between fast and feeling fast

In this lesson

  • 9 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 5 of 10 in this chapter

This chapter’s goalSend the same request to a hosted model and to a model running on your own machine, read every field of the response including token counts and stop reason, and predict within a factor of two what a proposed feature will cost per thousand users before you write it.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 6Free · no account needed
Lesson steps

Two numbers, not one

A non-streaming call has one latency: the time until the whole answer arrives. A streaming call has two, and they behave completely differently.

Time to first token (TTFT) measures when the first output arrives. Network delay, queueing, input processing and caching can affect it. Measure the actual model and request sizes rather than assuming a fixed relationship between prompt length and delay.

Tokens per second is how fast text then appears. It varies with the model, request, service load and delivery path.

For an illustrative 500-token answer delivered at 60 tokens per second, generation takes about 8.3 seconds. If the first token arrives after 0.4 seconds, streaming lets the reader begin while the remaining text arrives. A non-streaming interface waits for the complete answer.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘Streaming, and the difference between fast and feeling fast’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/streaming-and-perceived-speed (Accessed: 29 November 2026).