stream: true to receive a Server-Sent Events response from POST /v1/chat/completions.
Stream a response
Setstream_options.include_usage to true when your client needs the usage-only chunk.
Event shape
The response uses these headers:data: events. Read partial output from choices[].delta.
choices array:
data: [DONE] when the upstream stream sends it.
Is usage always included?
No. The gateway always requests usage from the hosted model so it can settle the request. It forwards the usage-only event to your client only when your original request includes:Streaming requests do not use the chat idempotency cache. See Idempotent retries before retrying a stream.