stream
option to true allows you to receive the response as a stream
of chunks, allowing you to incrementally display results instead of waiting for the entire
response to be generated.
Streaming output is supported for all hosted models. We especially encourage its
use with reasoning models, as non-streaming requests may timeout if the model thinks for
too long before output starts.
- Python
- Bash