Reference · 04
Chat Completions
The primary inference endpoint for text and multimodal models.
HTTP
POST https://api.decksdigital.ai/v1/chat/completions| Parameter | Type | Description |
|---|---|---|
| model | string | Model identifier, for example deepseek/deepseek-v4-pro |
| messages | array | Ordered conversation messages |
| temperature | number | Sampling temperature |
| max_tokens | integer | Maximum output tokens |
| stream | boolean | Stream partial responses |
| tools | array | Tool definitions, where the model supports them |
JSON
{
"id": "cmpl_example",
"model": "deepseek/deepseek-v4-pro",
"choices": [
{ "index": 0, "message": { "role": "assistant", "content": "..." } }
],
"usage": { "input_tokens": 812, "output_tokens": 214, "total_tokens": 1026 }
}