概述
Qwen3.8-Max 是阿里巴巴通义千问 Qwen3.8 系列的旗舰模型,也是千问迄今规模最大、能力最强的模型。它采用稀疏 MoE 与混合注意力结构,总参数 2.4 万亿、每次推理激活 950 亿,支持 1M token 上下文与思考模式,原生具备视觉理解能力,可输入图像与视频。模型面向自主编程、长周期智能体任务与复杂真实业务,发布时在 Vision Arena 排名第二、Text Arena 第五。适合作为复杂代码工程、多工具智能体编排以及长文档与图表分析的主力模型。
2.4T 旗舰规模
2.4 万亿参数稀疏 MoE 结合混合注意力,每次推理仅激活 950 亿参数。
长程自主编程
面向自主编程与长周期执行,官方内部测试中自主推进一个软件工程项目长达 16 天。
视觉理解领先
原生视觉能力,发布时位列 Vision Arena 第二、Text Arena 第五、Frontend Code Arena 第四。
百万上下文
1M token 上下文窗口,单次最多输出 131,072 token,可直接读入百页文档与长视频。
功能
深度思考支持思考模式,思考链最长 262,144 token✓
视觉理解支持图像与视频输入✓
工具调用✓
结构化输出✓
上下文缓存命中缓存按缓存价计费✓
流式输出✓
前缀补全✓
微调✕
定价
输入¥12/M tokens
输出¥36/M tokens
输入(缓存命中)¥1.5/M tokens
速率限制与上下文
上下文窗口1M
最大输出128K
RPM(请求 / 分钟)300
TPM(token / 分钟)5M
API 参考
POST
https://api.tokenfab.cn/v1/chat/completions请求示例
curl https://api.tokenfab.cn/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKENFAB_API_KEY" \
-d '{
"model": "qwen3.8-max",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Write a modern poem about autumn."}
]
}'from openai import OpenAI
client = OpenAI(
api_key="your-api-key",
base_url="https://api.tokenfab.cn/v1"
)
response = client.chat.completions.create(
model="qwen3.8-max",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Write a modern poem about autumn."}
]
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.TOKENFAB_API_KEY,
baseURL: "https://api.tokenfab.cn/v1"
});
const response = await client.chat.completions.create({
model: "qwen3.8-max",
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: "Write a modern poem about autumn." }
]
});
console.log(response.choices[0].message.content);响应示例
{
"id": "chatcmpl-q3m7x2p8",
"object": "chat.completion",
"created": 1784950000,
"model": "qwen3.8-max",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "I am Qwen3.8-Max, the flagship of the Qwen3.8 series: a 2.4-trillion-parameter MoE model with a million-token context and thinking mode, built for autonomous coding, long-horizon agent tasks and visual understanding."
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 16,
"completion_tokens": 48,
"total_tokens": 64
}
}请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | ✓ | 模型 ID,如 qwen3.8-max |
messages | array | ✓ | 对话消息列表,含 role 和 content |
temperature | float | — | 采样温度,0–2,默认 0.7 |
top_p | float | — | 核采样,0–1,默认 0.9 |
max_tokens | int | — | 最大输出 Token 数 |
stream | bool | — | 是否流式输出,默认 false |
tools | array | — | 工具定义列表,用于 Function Calling |
tool_choice | string | — | 工具调用策略,auto / none / 指定函数 |