Token Streaming
A mode in which the model produces tokens as it generates them — like typing text in a chat — instead of returning the whole answer in one piece at the end.
Why
- the user sees the answer immediately, without waiting for the full generation;
- the first tokens appear quickly — a better Time to First Token;
- generation can be stopped halfway if the answer is no longer needed.
How It Works Technically
The API enables the stream: true flag, and the server returns the answer in chunks as they become ready instead of a single JSON.