Chat Completions
Chat Completions
Creates a model response for the given chat conversation.
post/chat/completions
Request body
Example request
{
"model": "deepseek-ai/DeepSeek-V2.5",
"messages": [
{
"role": "user",
"content": "SiliconCloud推出分层速率方案与免费模型RPM提升10倍,对于整个大模型应用领域带来哪些改变?"
}
],
"max_tokens": 512,
"temperature": 0.7,
"top_p": 0.7,
"top_k": 50,
"frequency_penalty": 0.5,
"n": 1,
"response_format": {
"type": "json_object"
}
}Response
200
Example response
{
"choices": [
{
"message": {
"role": "assistant"
}
}
]
}