curl --request POST \
--url https://api.powertokens.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen3.6-plus",
"messages": [
{
"role": "system",
"content": "你是一个有帮助的助手。"
},
{
"role": "user",
"content": "你好,请介绍一下自己。"
}
],
"temperature": 0.7,
"max_tokens": 2000
}
'{
"id": "<string>",
"object": "chat.completion",
"created": 123,
"model": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "system",
"content": "<string>",
"tool_calls": [
{}
]
},
"finish_reason": "<string>"
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}适用于阿里渠道最终白名单中的公开对话模型:qwen3-max、qwen3.6-plus、qwen3.5-flash、qwen3-coder-plus、deepseek-v3.2。
公开字段:model、messages、stream、temperature、top_p、max_tokens、stop、seed、tools、tool_choice、enable_search、response_format。
curl --request POST \
--url https://api.powertokens.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen3.6-plus",
"messages": [
{
"role": "system",
"content": "你是一个有帮助的助手。"
},
{
"role": "user",
"content": "你好,请介绍一下自己。"
}
],
"temperature": 0.7,
"max_tokens": 2000
}
'{
"id": "<string>",
"object": "chat.completion",
"created": 123,
"model": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "system",
"content": "<string>",
"tool_calls": [
{}
]
},
"finish_reason": "<string>"
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
模型名称。仅支持当前阿里渠道最终白名单中的公开对话模型。
qwen3-max, qwen3.6-plus, qwen3.5-flash, qwen3-coder-plus, deepseek-v3.2 "qwen3.6-plus"
对话消息列表。支持文本内容和多模态内容(图像+文本)。
Show child attributes
是否使用流式输出。默认为 false。
采样温度,控制输出随机性。取值范围 [0, 2]。
0 <= x <= 2核采样概率阈值。
0 <= x <= 1生成的最大 token 数。
x >= 1停止词列表。
随机数种子,用于复现生成结果。
工具列表,用于 Function Calling。
Show child attributes
工具选择策略。可选值:auto、none、required。
是否启用搜索增强功能。仅部分模型支持。
响应格式,用于强制模型输出 JSON。
Show child attributes