stream: true in your request.
Example
How it works
When streaming is enabled, the API returns a series of server-sent events (SSE). Each event contains a JSON chunk with adelta object holding the next piece of content.
data: [DONE] message signals the end of the stream. The last chunk before it includes a usage field with token counts.