Skip to main content
Set "stream": true in the chat request to receive the reply as a Server-Sent Events (SSE) stream of delta events instead of a single JSON body.
  • The stream uses data-only messages (data: field). No event: field is sent.
  • Each data: line carries a JSON object.

Frame shape

The OpenAPI document only states that frames are delta events. The official SDKs parse frames of this shape:
The frame schema comes from the SDK implementations and tests, not from the OpenAPI specification. An empty data: message is treated by the SDKs as an end-of-stream marker.

Read a stream

If you call the API directly, parse each data: line as JSON and append delta.reply.content. Errors that happen before streaming starts (such as 400 or 401) are returned as normal JSON error responses.