stream: true on a Chat request to receive output incrementally through SSE. Streaming changes how output arrives; it does not guarantee fixed latency or completion time.
Complete Python example
Install dependencies using the SDK guide, then setAPIONE_API_KEY and APIONE_MODEL. Save as stream.py and run python stream.py.
Inspect raw events with cURL
-N disables cURL output buffering so you can inspect incoming SSE events.
text/event-stream. Text updates generally appear in choices[0].delta.content, and data: [DONE] marks completion. A network byte chunk may not contain a complete SSE event. Custom parsers must buffer complete events and handle UTF-8 boundaries.
Empty chunks, errors, and interruptions
Browser applications should call your server, with the API Key kept on the server. See APIONE streaming documentation and troubleshooting.

