curl --location --request POST 'https://llm-api.mmchat.xyz/v1/chat/completions' \
--header 'Authorization: Bearer METACHAT_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"messages": [
{
"content": "You are a helpful assistant",
"role": "system"
},
{
"content": "你是谁?",
"role": "user"
}
],
"model": "deepseek-chat",
"frequency_penalty": 0,
"max_tokens": 2048,
"presence_penalty": 0,
"response_format": {
"type": "text"
},
"stop": null,
"stream": false,
"stream_options": null,
"temperature": 1,
"top_p": 1,
"tools": null,
"tool_choice": "none",
"logprobs": false,
"top_logprobs": null
}'
{
"id": "e137bb42-7580-4cb8-88ba-825209cf966b",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I assist you today? 😊"
},
"logprobs": null,
"finish_reason": "stop"
}
],
"created": 1739112811,
"model": "deepseek-chat",
"system_fingerprint": "fp_3a5790e1b4",
"object": "chat.completion",
"usage": {
"prompt_tokens": 9,
"completion_tokens": 11,
"total_tokens": 20,
"prompt_tokens_details": {
"cached_tokens": 0
},
"prompt_cache_hit_tokens": 0,
"prompt_cache_miss_tokens": 9
}
}