Skip to content

Streaming

Receive model output as it is generated.

Set stream: true in your chat completion request to receive server-sent events.

Each event contains a delta with incremental content. The final event marks the end of the stream.

Streaming is supported for all models that expose streaming capabilities.