模型介绍
通义千问 Max 是阿里云 DashScope 平台的旗舰模型。在中文理解、金融法律专业领域表现突出。Function Calling 支持完善,适合企业级 Agent 开发。阿里云生态集成方便。
API 接入信息
| 项目 | 详情 |
|---|
| API Endpoint | https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions |
| 鉴权方式 | Bearer Token(DashScope API Key) |
| 默认模型 | qwen-max |
| MCP / Function Calling | ✅ 完整支持 |
价格
| 类型 | 价格 |
|---|
| 输入(Input) | ¥20.00 / 1M tokens |
| 输出(Output) | ¥60.00 / 1M tokens |
| 企业版价格有优惠 |
关键参数
| 参数名 | 类型 | 默认值 | 说明 |
|---|
| model | string | qwen-max | qwen-max / qwen-plus / qwen-turbo |
| temperature | float | 0.7 | 0-2 |
| enable_search | boolean | false | 是否启用联网搜索增强 |
| tools | array | [] | Function Calling |
curl 调用示例
curl https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-d '{
"model": "qwen-max",
"messages": [
{"role": "user", "content": "帮我写一份商业计划书大纲"}
]
}'
Python 调用示例
from openai import OpenAI
client = OpenAI(
api_key="sk-xxx",
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1"
)
response = client.chat.completions.create(
model="qwen-max",
messages=[{"role": "user", "content": "帮我写一份商业计划书大纲"}]
)
print(response.choices[0].message.content)
优势场景
- 中文理解最强
- 阿里云生态集成
- 金融法律领域专业
- 企业级 SLA 保障
最适合的场景
企业级应用 / 金融法律场景 / 阿里云用户