Chat Completions
POST /v1/chat/completions — the base OpenAI chat format.
POST /v1/chat/completions is the OpenAI Chat Completions format. Most SDKs
and tools speak it, and providers support it more often than any other.
Request
curl https://llmbox.cc/v1/chat/completions \
-H "Authorization: Bearer $LLMBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.6-sol",
"messages": [
{"role": "system", "content": "Answer briefly."},
{"role": "user", "content": "How many planets are in the Solar System?"}
],
"max_tokens": 200
}'
Response
json
{
"id": "req_...",
"object": "chat.completion",
"created": 1790000000,
"model": "openai/gpt-5.6-sol",
"choices": [
{
"index": 0,
"message": {"role": "assistant", "content": "Eight."},
"finish_reason": "stop"
}
],
"usage": {"prompt_tokens": 24, "completion_tokens": 2, "total_tokens": 26}
}
Specifics
- Streaming —
"stream": true. Usage arrives in the last chunk only when requested:"stream_options": {"include_usage": true}. See Streaming. - Effort level —
"reasoning_effort": "high"(reasoning.effortis an alias). Allowed values are listed in the model catalog; if omitted, the model's default level applies. The price may depend on the level, see Request parameters. - Image input — via
image_urlmessage parts (a link or adata:URL). The request body limit is 25 MiB. - Tools — only your own functions (
function,custom); the provider's built-in tools are stripped. - Not supported: audio input and output and files by
file_id— such a request gets400 unsupported_parameter.
The full parameter list is in Request parameters.