Request
Send a POST request with your prompt and options. Setstream: true
to receive Server‑Sent Events (SSE), or omit stream
for a single JSON response (default).
Request Body
- model string — Model identifier (e.g.,
small-1
). - messages array — Conversation history; at least one user message is required.
- system string (optional) — System prompt defining assistant behavior.
- stream boolean (optional) — Set
true
for SSE streaming; omit to get a single JSON response (defaultfalse
).
Responses
stream = true (SSE)
Non‑streaming (default, JSON)
Body
application/json
The model to use for chat completion
Example:
"small-1"
Array of message objects that make up the conversation
The system prompt that defines the AI's behavior
Whether to return a streaming response
Response
Chat completion response
Structured chat completion result