Docs
Streaming Requests
Updated 2026-07-21
Chat Completions Streaming
Set the following in your request "stream": true: ```bash
curl https://api.rokoapi.com/v1/chat/completions
-H “Authorization: Bearer $API_KEY”
-H “Content-Type: application/json”
-N
-d ’{
“model”: “deepseek-v4-flash”,
“stream”: true,
“messages”: [{“role”:“user”,“content”:“Tell a short story”}]
}’
Clients parse `choices[0].delta` from SSE `data:` lines.
## Responses Streaming
Responses uses semantic events (such as `response.output_text.delta`), see [Responses API](/en/docs/api/responses/).
## Client Considerations
- Do not buffer the entire SSE stream in intermediate proxies
- Decide whether to retry based on your business logic after a connection interruption
- See [Rate Limits](/en/docs/rate-limits/)