Chat Completions
Updated: Nov 26, 2026
See API Guide - Authentication.
See API Guide - Common Request Headers.
application/json- body
model*stringModel 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?numberSampling temperature.
0 <= value <= 21top_p?numberNucleus sampling parameter.
0 <= value <= 11n?integerNumber of completions to generate.
1 <= value1stream?booleanWhether to stream the response.
falsestream_options?Streaming response options.
stop?|array<string>Stop sequences.
max_tokens?integerMaximum number of tokens to generate.
max_completion_tokens?integerMaximum number of completion tokens.
presence_penalty?numberPresence penalty.
-2 <= value <= 20frequency_penalty?numberFrequency penalty.
-2 <= value <= 20logit_bias?Logit bias.
user?stringEnd-user identifier.
tools?array<>Tool definitions.
tool_choice?|Tool choice strategy.
response_format?Response format, such as JSON mode.
seed?integerRandom seed.
reasoning_effort?stringReasoning effort (for models that support reasoning).
"low""medium""high"modalities?array<string>Output modalities.
audio?Audio output configuration.
Successful response
application/json- response
id?stringResponse ID.
object?stringObject type.
created?integerCreation time, Unix timestamp in seconds.
model?stringID of the model actually used.
choices?array<>List of generated results.
usage?Token usage statistics.
system_fingerprint?stringBackend configuration fingerprint.
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." } ]}'{ "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"}