curl --request POST \
--url https://api.scitix.ai/model-api/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "deepseek-ai/deepseek-v4.1-flash-1017",
"messages": [
{
"role": "user",
"content": "Reply with only the result of 1+1."
}
],
"max_completion_tokens": 128
}
'{
"id": "chatcmpl-191f63cf2de94c4c80f62e41d5824241",
"object": "chat.completion",
"created": 1794334629,
"model": "deepseek-ai/deepseek-v4.1-flash-1017",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "2"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 40,
"completion_tokens": 26,
"total_tokens": 66
}
}Create a chat completion
Generate a reply from the specified model and messages. By default, the API returns a complete response. SSE streaming is also supported.
Before making a request, confirm that the model supports this protocol and the parameters you need.
curl --request POST \
--url https://api.scitix.ai/model-api/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "deepseek-ai/deepseek-v4.1-flash-1017",
"messages": [
{
"role": "user",
"content": "Reply with only the result of 1+1."
}
],
"max_completion_tokens": 128
}
'{
"id": "chatcmpl-191f63cf2de94c4c80f62e41d5824241",
"object": "chat.completion",
"created": 1794334629,
"model": "deepseek-ai/deepseek-v4.1-flash-1017",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "2"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 40,
"completion_tokens": 26,
"total_tokens": 66
}
}Authorizations
Body
Chat generation request body. model and messages are required. Configure other parameters for your task and the capabilities of the selected model.
Total token budget for this generation, including reasoning tokens and visible output tokens. Must be at least 1; the model determines the maximum.
A small budget can result in empty or truncated output, especially with reasoning models. Use finish_reason and usage to adjust the budget.
This is the recommended parameter. Existing requests can continue to use max_tokens for compatibility. If both are provided, this parameter takes precedence.
x >= 11024
Controls tool selection.
none: Generate a reply without calling tools.auto: Let the model choose whether to reply or call tools.required: Require a tool call.- A function object: Require a specific function, such as
{"type":"function","function":{"name":"get_weather"}}.
Provide the corresponding function definitions in tools when using tool calls.
none, auto, required Response
Request successful. Non-streaming responses return JSON. Streaming responses return text/event-stream, with each data chunk prefixed by data:. The data: [DONE] marker ends the stream. The examples below illustrate the format; content, usage, and optional fields depend on the actual response.
Non-streaming chat completion response.

