Recommended endpoints
Minimal request
cURL example
Python example
Node.js example
Best practices
- Render incrementally from streamed chunks
- Consider
responsesstreaming if you will later add tools or structured output - Handle reconnection and chunk assembly on the server
