Skip to main content
Use this endpoint with the OpenAI SDK or any client that supports the Chat Completions wire format.

Request

Body parameters

Each message has a role and content:

Response

finish_reason is commonly:

Streaming

Set stream: true. The response uses text/event-stream and ends with data: [DONE].
Tool-call arguments may span multiple chunks. Concatenate deltas by choice and tool-call index before parsing the JSON arguments.

Errors

Errors use the OpenAI-compatible envelope:
See Errors and retries for status codes and retry guidance.
Last modified on September 9, 2026