You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SSE format: Each line is data: {json}\n\n. The final line is data: [DONE]\n\n
Stream=True: This parameter enables streaming on all OpenAI-compatible APIs
Works with all AIWave models: DeepSeek, GLM, Kimi, Qwen — same interface
Backpressure: The server sends data as fast as the model generates. If the client reads slower, the connection buffer handles it
Timeout: Set 30-60s for long generations
When to Stream
Chat UIs and chatbots
IDE autocomplete and inline suggestions
Any UI where users see output in real-time
Skip streaming for batch processing, background jobs, and API-to-API calls where latency doesn't matter.
All models on AIWave support streaming via the standard stream: true parameter. One API key, same OpenAI-compatible format. The $1 free credit covers thousands of streaming requests to test.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
----------|----------|
| First token | Wait for full generation | ~200ms |
| UX | Loading spinner | Text appears progressively |
| Timeout risk | Higher (long generation) | Lower |
| Complexity | One request | Connection management |
For chat applications and IDE tools, streaming is expected behavior.
Server Implementation (FastAPI)
Client Implementation
Key Details
data: {json}\n\n. The final line isdata: [DONE]\n\nWhen to Stream
Skip streaming for batch processing, background jobs, and API-to-API calls where latency doesn't matter.
All models on AIWave support streaming via the standard
stream: trueparameter. One API key, same OpenAI-compatible format. The $1 free credit covers thousands of streaming requests to test.AIWave - 48 models, one key. $1 free.
Resources
All reactions