Glossary term
What is Streaming?
Receiving a model's answer piece by piece while it is still being written.
Definition
Streaming returns a model's answer in small pieces as it is generated, over one open connection, instead of waiting for the whole reply. The client can show the first words within a moment and keep adding text until the model sends its final event with the finish reason and usage.
Why it matters
People judge speed by when the first words appear. Streaming makes chat feel fast and keeps long generations from hitting request timeouts.
How it works on OceanToken
On OceanToken, set stream: true on chat completions, the Responses API or /v1/messages. A request that is not streamed is closed after 240 seconds, so stream every long answer. Add stream_options.include_usage to get token counts at the end.