Qwenqwen4-max
阿里通义新一代旗舰模型:多模态、混合专家架构,100 万上下文
$0.9/ 100万输入 tokens-40%$1.5官方价
- 1M 上下文
- 输出最多 128K
- 支持看图
- 模态
- 文本
- 端点
- /v1/chat/completions
- 模型 ID
- qwen4-max
- 供应商
- Qwen
Qwen4-Max API 概览
文档化的端点
请求发到 /v1/chat/completions,这是 Qwen 的原生格式;/v1/responses、/v1/messages 会被转换成它。
模型提供方
Qwen4-Max 的模型提供方是 Qwen,请求使用模型 ID qwen4-max。
输出与限制
1,000,000 token 上下文,其中提示最多 983,616;输出最多 131,072 token;输入文本和图片,输出文本。
Qwen4-Max API 价格
下面每一项计费维度,Qwen4-Max 都比官方标价低 40%。
| 计费项 | ArgoLink 价格 | 官方价 | 节省 |
|---|---|---|---|
| 输入 tokens | $0.9 / 100万 tokens | -40% | |
| 缓存输入 tokens | $0.045 / 100万 tokens | -40% | |
| 缓存写入 tokens | $1.125 / 100万 tokens | -40% | |
| 输出 tokens | $2.7 / 100万 tokens | -40% |
推理 token 按输出 token 计费。
Qwen4-Max API 参考
快速开始
在控制台创建 API Key,然后使用本页显示的 Base URL、端点和请求体发送请求。
curl -sS https://argolink.io/v1/chat/completions \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-max",
"messages": [{"role": "user", "content": "Explain what this model is good at in one sentence."}],
"stream": false
}'
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["ARGOLINK_API_KEY"],
base_url="https://argolink.io/v1",
)
response = client.chat.completions.create(
model="qwen4-max",
messages=[{"role": "user", "content": "Explain what this model is good at in one sentence."}],
)
print(response.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.ARGOLINK_API_KEY,
baseURL: "https://argolink.io/v1",
});
const response = await client.chat.completions.create({
model: "qwen4-max",
messages: [{ role: "user", content: "Explain what this model is good at in one sentence." }],
});
console.log(response.choices[0].message.content);
协议
Chat Completions
推荐:模型的原生格式
Qwen 的原生格式:每个字段都原样送到模型。
curl https://argolink.io/v1/chat/completions \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-max",
"messages": [{"role": "user", "content": "用三条要点比较乐观锁和悲观锁。"}]
}'
curl https://argolink.io/v1/chat/completions \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-max",
"messages": [{
"role": "user",
"content": [
{"type": "text", "text": "这张图表说明了什么?"},
{"type": "image_url", "image_url": {"url": "https://example.com/chart.png"}}
]
}]
}'
| 字段 | 取值 |
|---|---|
messages | system、user、assistant、tool 消息;用户消息可带 image_url 内容块(公网 HTTPS 地址或 data URL) |
reasoning_effort | 不支持,不要传 |
max_completion_tokens | 最多 131,072 |
stream | 传 true 以 SSE 流式返回 |
service_tier | 不支持,不要传 |
默认开启思考;传 enable_thinking: false 可以关掉。max_tokens 要留足:思考也计入其中,上限太小时可能还没输出答案就结束了。
Responses和Anthropic Messages
转换为 Chat Completions
Codex、Claude Code 等发送这两种格式的客户端也能调用:网关会把请求转换为 Chat Completions。
curl https://argolink.io/v1/responses \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-max",
"input": "用三条要点比较乐观锁和悲观锁。"
}'
curl https://argolink.io/v1/messages \
-H "x-api-key: $ARGOLINK_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-max",
"max_tokens": 4000,
"messages": [{"role": "user", "content": "用三条要点比较乐观锁和悲观锁。"}]
}'
| 字段 | 取值 |
|---|---|
input | 文本和 input_image 内容块;input_file 会被丢弃 |
messages | 文本、工具和 base64 图片块;图片链接会被丢弃 |
两种转换都会丢弃 web search 等服务端工具。
Qwen4-Max 完整请求参数
| 参数 | 类型 | 要求 | 作用 |
|---|---|---|---|
model | string | 必填 | 本页对应的模型标识:qwen4-max。 |
messages | array | 必填 | system、user、assistant、tool 消息。用户消息可带 image_url 内容块(公网 HTTPS 地址或 data URL)。 |
reasoning_effort | string | 不支持 | 本模型不接受推理强度,不要传。 |
max_completion_tokens | integer | 可选 | 限制回答长度:最多 131,072。也接受 max_tokens。 |
tools · tool_choice | array · string or object | 可选 | 函数工具定义与选择方式。 |
stream | boolean | 可选 | 传 true 时流式返回,文本在每个数据块的 choices[].delta 里。 |
service_tier | string | 不支持 | 本模型没有更快的档位,不要传。 |
Qwen4-Max API 与同类模型对比
| 模型 | 模型 ID | 供应商 | 价格 | 适用场景 |
|---|---|---|---|---|
| Qwen4-Max | qwen4-max | Qwen | $0.9 / 100万输入 tokens | 阿里通义新一代旗舰模型:多模态、混合专家架构,100 万上下文 |
| GPT-6 Astra | gpt-6-astra | OpenAI | $2.3 / 100万输入 tokens | OpenAI 能力最强的模型,专为最难的端到端任务打造 |
| Claude Opus 5 | claude-opus-5 | Anthropic | $1.75 / 100万输入 tokens | 面向复杂的智能体编程与企业工作 |
| Claude Fable 5.1 | claude-fable-5-1 | Anthropic | $3.5 / 100万输入 tokens | Anthropic 面向高难度推理和长程智能体任务的模型 |
同一供应商的其他模型
同模态的其他模型
Qwen4-Max API 常见问题
如何调用 Qwen4-Max?
在控制台创建 API Key,POST https://argolink.io/v1/chat/completions,model 填 qwen4-max,API Key 放在 Authorization 请求头里作为 Bearer Token。/v1/responses、/v1/messages 也能用,网关会把它们转换为 Chat Completions。
Qwen4-Max 如何计费?
输入每百万 token $0.9,输出每百万 token $2.7,比官方价低 40%。缓存命中的输入每百万 token $0.045。推理 token 按输出 token 计费。
Qwen4-Max 的上下文和输出上限是多少?
1,000,000 token 上下文,其中提示最多 983,616;输出最多 131,072 token;输入文本和图片,输出文本。
如何控制 Qwen4-Max 的推理?
它不接受推理强度参数。默认开启思考;传 enable_thinking: false 可以关掉。
Qwen4-Max 能看图吗?
能:用 image_url 内容块(公网 HTTPS 地址或 data URL),发到 /v1/chat/completions。走 Anthropic Messages 时只有 base64 图片会转过去。