Authorization: Bearer ********************{
"model": "qwen-max",
"messages": [
{
"role": "system",
"content": "你是一个乐于解答各种问题的助手,你的任务是为用户提供专业、准确、有见地的建议。"
},
{
"role": "user",
"content": "你好,请介绍一下自己"
}
],
"max_tokens": 4096,
"temperature": 0.7
}curl --location --request POST 'https://api.mixrouter.com/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "qwen-max",
"messages": [
{
"role": "system",
"content": "你是一个乐于解答各种问题的助手,你的任务是为用户提供专业、准确、有见地的建议。"
},
{
"role": "user",
"content": "你好,请介绍一下自己"
}
],
"max_tokens": 4096,
"temperature": 0.7
}'{
"choices": [
{
"message": {
"content": "你好!我是来自阿里云的超大规模语言模型,我叫通义千问。我是阿里云自主研发的超大规模语言模型,也能够回答问题、创作文字,还能表达观点、撰写代码。\n\n如果您有任何问题或需要帮助,请随时告诉我,我会尽力提供支持。",
"role": "assistant"
},
"finish_reason": "stop",
"index": 0,
"logprobs": null
}
],
"object": "chat.completion",
"usage": {
"prompt_tokens": 42,
"completion_tokens": 59,
"total_tokens": 101,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"created": 1767060209,
"system_fingerprint": null,
"model": "qwen-max",
"id": "chatcmpl-9654fc2e-f6ce-931b-a5bc-bcea421a40db"
}