Create a chat completion
Generates a model response for a conversation. Supports streaming (stream: true, server-sent events) and non-streaming responses. When streaming, each frame is a data: line holding one JSON completion chunk, the chunk carrying usage has an empty choices array, and the stream ends with the literal data: [DONE]. OpenAI-compatible: the supported fields are documented here, and the wider OpenAI SDK parameter set is accepted so that existing OpenAI code runs unmodified.
Headers
Bearer authentication
Groups related requests into one session. Required when using planner_mode, which uses it to resume a paused plan.
Request body
Response
A chat completion object, or an SSE stream of completion chunks when stream is true.
Changes
No recorded changes to this endpoint across all 1 revision of this API.