v29

latestOpenAPI 3.1.2raw.githubusercontent.com2026-08-014117755.2 KB
Chats

Create Chat

Creates a new chat from a prompt. The request blocks until the model response is complete and returns the chat.

post/chats

Request body

messagestring required

The prompt or instruction to send to the model.

systemPromptstring

System-level context for the chat, such as frameworks or development environment details.

mcpServerIdsstring[]

MCP server IDs to enable. When omitted, uses default enabled servers.

privacy'public' | 'private' | 'team' | 'team-edit' | 'unlisted'

Visibility setting for the new chat.

titlestring

Title for the new chat.

metadataobject

Arbitrary key-value data to attach to the chat.

Response

A chat response that also reports the usage.