Reference · 04

Chat Completions

The primary inference endpoint for text and multimodal models.

HTTP
POST https://api.decksdigital.ai/v1/chat/completions
ParameterTypeDescription
modelstringModel identifier, for example deepseek/deepseek-v4-pro
messagesarrayOrdered conversation messages
temperaturenumberSampling temperature
max_tokensintegerMaximum output tokens
streambooleanStream partial responses
toolsarrayTool 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 }
}