Documentation

Chat Completions

Updated: Nov 26, 2026

Method and Path

POST
/v1/chat/completions

Authorization

See API Guide - Authentication.

Header Parameters

See API Guide - Common Request Headers.

Request Body

application/json
  1. body
model*string

Model ID, e.g. deepseek-v4-flash.

messages*array<>

List of conversation messages; each item has role and content, where role may be system / user / assistant, etc.

temperature?number

Sampling temperature.

Range0 <= value <= 2
Default1
top_p?number

Nucleus sampling parameter.

Range0 <= value <= 1
Default1
n?integer

Number of completions to generate.

Range1 <= value
Default1
stream?boolean

Whether to stream the response.

Defaultfalse
stream_options?

Streaming response options.

stop?|array<string>

Stop sequences.

max_tokens?integer

Maximum number of tokens to generate.

max_completion_tokens?integer

Maximum number of completion tokens.

presence_penalty?number

Presence penalty.

Range-2 <= value <= 2
Default0
frequency_penalty?number

Frequency penalty.

Range-2 <= value <= 2
Default0
logit_bias?

Logit bias.

user?string

End-user identifier.

tools?array<>

Tool definitions.

tool_choice?|

Tool choice strategy.

response_format?

Response format, such as JSON mode.

seed?integer

Random seed.

reasoning_effort?string

Reasoning effort (for models that support reasoning).

Value in"low""medium""high"
modalities?array<string>

Output modalities.

audio?

Audio output configuration.

Response Body

Successful response

application/json
  1. response
id?string

Response ID.

object?string

Object type.

created?integer

Creation time, Unix timestamp in seconds.

model?string

ID of the model actually used.

choices?array<>

List of generated results.

usage?

Token usage statistics.

system_fingerprint?string

Backend configuration fingerprint.

Example Request
curl -X POST 'https://api-sg.cysuo.ai/v1/chat/completions' \  -H 'Content-Type: application/json' \  -d '{  "model": "deepseek-v4-flash",  "messages": [    {      "role": "system",      "content": "You are a helpful assistant."    },    {      "role": "user",      "content": "Hello, please introduce yourself."    }  ]}'
Example Response
{  "id": "string",  "object": "string",  "created": 0,  "model": "string",  "choices": [    {      "index": 0,      "message": {        "role": "string",        "content": "string",        "name": "string",        "tool_calls": [          {            "id": "string",            "type": "string",            "function": {              "name": "string",              "arguments": "string"            }          }        ],        "tool_call_id": "string",        "reasoning_content": "string"      },      "finish_reason": "string"    }  ],  "usage": {    "prompt_tokens": 0,    "completion_tokens": 0,    "total_tokens": 0,    "prompt_tokens_details": {      "cached_tokens": 0,      "text_tokens": 0,      "audio_tokens": 0,      "image_tokens": 0    },    "completion_tokens_details": {      "text_tokens": 0,      "audio_tokens": 0,      "reasoning_tokens": 0    }  },  "system_fingerprint": "string"}