Streaming

Stream responses as Server-Sent Events (SSE) by setting stream: true. Each chunk is delivered as a data: line, allowing real-time display of generated text.

curl --no-buffer -X POST http://localhost:18645/v1/responses   -H 'Authorization: Bearer anything'   -H 'Content-Type: application/json'   -d '{
  "model": "grok-4.3",
  "stream": true,
  "input": [
    {"role": "user", "content": "Write a haiku about streaming."}
  ]
}'