Skip to main content

Create a chat completion for a stored chat

POST 

/chats/:chatId/completions

Runs a completion using the AI provider and settings stored in the chat. Pass stream: true for SSE streaming. A system message in messages overrides the chat's stored system message for this call only. Messages may use documentId instead of content.

Request

Responses

Chat completion result (JSON or SSE stream)