阿
Qwen-max
阿里
对话
text
模型 Code
qwen-max服务状态
可调用
模型介绍
千问2.5系列千亿级别超大规模语言模型,支持中文、英文等不同语言输入。随着模型的升级,qwen-max将滚动更新升级。如果希望使用固定版本,请使用历史快照版本。
模型能力
输入模态
模型体验支持
思考模式不支持
Function Calling支持
结构化输出支持
输出模态
内置工具支持
联网搜索未提供
缓存未提供
模型价格
输入2.4元/ 百万 token
输入(缓存命中)0.48元/ 百万 token
输入(Batch File)1.2元/ 百万 token
输入(Batch Chat)2.4元/ 百万 token
输出9.6元/ 百万 token
输出(Batch File)4.8元/ 百万 token
输出(Batch Chat)9.6元/ 百万 token
模型限流与上下文
- 最大输入长度
- 126K Tokens
- 上下文长度
- 32K Tokens
- 最大输出长度
- 8K Tokens
API 代码示例
import requests
url = "https://limapi.com/api/v1/chat/completions"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"model": "qwen-max",
"stream": True,
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "你好,请介绍一下你自己"}
]
}
response = requests.post(url, headers=headers, json=payload, stream=True)
for line in response.iter_lines():
if line:
print(line.decode("utf-8"))将示例中的 YOUR_API_KEY 替换为你的 API Key 即可调用。