Basic call
UsePOST /v1/chat/completions with a chat-completions model, Bearer authentication, a messages array, and a reasonable max_completion_tokens limit.
Streaming
Setstream: true. In Python, iterate over stream and read nonempty chunk.choices[0].delta.content. In JavaScript, use for await and read choices[0]?.delta?.content. Native HTTP SSE ends with [DONE]; do not use a Responses response.output_text.delta event parser.