API
Streaming
Set stream: true for SSE. The final chunk carries usage with empty choices, followed by data: [DONE].
During long pauses the server sends ': ping' comment lines to keep the connection alive; ignore them.
If the client disconnects mid-stream you are billed for the tokens already generated.