PromptForge
AI Glossary

Cost & performance

Streaming

Also known as: stream, sse

Definition

Streaming sends a response token by token as it is generated rather than waiting for completion. It does not reduce total generation time but dramatically improves how fast the response feels.

Without streaming, a user stares at a spinner for the whole generation. With streaming, text begins appearing after the first token, and reading pace roughly matches generation pace.

The engineering cost is real: you handle a stream of partial events rather than one response object, which complicates parsing, error handling and any post-processing that needs the complete text.

Streaming conflicts with output validation. If you need to check or reformat a complete response before showing it, you cannot stream it — a genuine trade-off between perceived speed and output control.

Related terms

Put this into practice

Understanding the term is step one. Our free courses and tools let you actually use it.