Create chat completion
Runs model inference using the OpenAI Chat Completions schema. Request parameters including streaming, vision, tools, structured outputs, and reasoning controls are forwarded natively.
Authorizations
CerasAI workspace API key (Authorization: Bearer $CERASAI_API_KEY).
Body
application/jsonExact case-sensitive Model ID from GET /v1/models.
Example: "deepseek-ai/DeepSeek-V4.1-Flash-1017"
Available options: system, user, assistant, tool
Enable Server-Sent Events (SSE) streaming.
Required range: 0 <= x <= 2
Example: 0.7
Required range: 0 <= x <= 1
Example: 1
Required range: x >= 1
Example: 2048
Controls reasoning effort on models that support it (e.g. 'none', 'low', 'high', 'max').
Function/tool definitions forwarded natively to the model.
Response
Inference response succeeded (JSON or text/event-stream when stream=true).
Example: "chat.completion"
Example: "deepseek-ai/DeepSeek-V4.1-Flash-1017"
Available options: system, user, assistant, tool

