Skip to main content
POST
Chat completions
Generate chat completions with optional search augmentation.

Example Request

Body

application/json

Input for POST /chat/completions

model
string
required

LLM engine to use

messages
object[]
required
Minimum array length: 1

Optional search-control block for chat

stream
boolean

If true, SSE stream; else aggregate JSON

user_context
object

Opaque dict preserved across turns

Response

Chat response

Universal response wrapper

data
object
required

Endpoint-specific payload

request_id
string

Echo of client-supplied ID or server-assigned UUID

meta
object

Metadata block attached to every response