Skip to main content
POST

Authorizations

X-API-Key
string
header
required

Send X-API-Key: sk_live_<your_key>. Keys are issued via POST /signup or via the dashboard. Legacy callers may also use Authorization: Bearer sk_live_<your_key>.

Body

application/json
messages
LLMMessage · object[]
required
Minimum array length: 1
response_format
LLMResponseFormat · object
model
enum<string> | null

Supported model ID, or auto for backend defaults. Fallback may use another configured model.

Available options:
null,
DeepSeek-V4-Pro,
Kimi-K2.6,
auto,
azure/gpt-5.4,
azure/gpt-5.4-mini,
claude-opus-4-6,
claude-sonnet-4-6,
deepseek/deepseek-v4-flash-0731,
gemini-3.8-flash,
qwen/qwen3.7-max,
z-ai/glm-5.2,
z-ai/glm-5.3-flash
user_id
string | null

Optional end-user attribution; the API key's organization pays.

Minimum string length: 1
session_id
string | null

Optional session for grouping usage. Does not restore conversation history.

Minimum string length: 1

Response

Consumer-defined output: text/plain for text, application/json for JSON modes.