v5

latestOpenAPI 3.1.12026-07-31392595.5 KB
Chats

Start a new chat and stream the reply

post/v1/chats

Request body

messagestring required
model'auto' | 'anthropic/claude-opus-5' | 'anthropic/claude-opus-4.8' | 'anthropic/claude-sonnet-5' | 'anthropic/claude-sonnet-4.6' | 'anthropic/claude-haiku-4.5' | 'openai/gpt-5.4' | 'openai/gpt-5.5'
enableThinkingboolean
thinkingLevel'off' | 'low' | 'medium' | 'high'
timezonestring

Response

Streaming UI message stream (newline-delimited JSON chunks). Read the X-Chat-Id response header for the chat id, or take it from the start chunk's messageMetadata.chatId.