Streaming switches
Claude streaming
OpenAI Responses streaming
Gemini streaming
Troubleshooting
- Test non-streaming first if a third-party app fails to read streamed events.
- Confirm the app supports the same provider streaming format.
- Confirm your API key is available as
APIXO_API_KEY. - Retry transient
429,502, and504errors with backoff.
Production streaming best practices
- Buffer management: Ensure your HTTP client and reverse proxy (such as Nginx or Cloudflare) disable response buffering so SSE events arrive with minimal latency.
- Client disconnection handling: Implement disconnection handlers (
AbortControllerin JavaScript or the client’s cancellation mechanism) to stop reading the response and release local stream resources when end users disconnect. - Backpressure handling: Consume and render stream chunks asynchronously to prevent blocking the UI event loop during high-throughput token bursts.