Skip to main content

Minimal request

cURL example

Python example

Node.js example

Best practices

  • Render incrementally from streamed chunks
  • Consider responses streaming if you will later add tools or structured output
  • Handle reconnection and chunk assembly on the server