BaiLian

Qwen4 Max

Alibaba按量收費動態收費
Alias:qwen4-max

Qwen4-Max 是通义千问的旗舰多模态模型,支持文本、图像和视频输入,输出文本。适合复杂推理、编程、长文档处理和智能体任务,支持工具调用与结构化输出。

深度思考多模态长上下文编程工具调用
起始價格
查看完整計費明細
上下文
1M
最大輸入窗口
最大輸出
262.1K
單次回應最大 token 數
模態
→
發佈於
Nov 2026

Pricing by Supplier

比較同一模型在不同供應商的價格與服務表現。

供應商2
USD · 每 1M tokens效能 · Last 24 hours
供應商輸入/M輸出/M緩存讀取/M緩存寫入 (5m)/M緩存寫入 (1h)/M
official

官方接口直连

$1.4706
$4.4118
$0.073529
$1.8382
$2.9412
Alibaba

阿里巴巴百炼官方

$1.4706
$4.4118
$0.073529
$1.8382
$2.9412
刪除線金額為標準價。效能統計涵蓋最近 24 小時,實際表現隨請求變化。

左右滑動表格,查看完整價格與效能。

能力 / 支援的模態

推理視覺函數呼叫結構化輸出串流輸出
輸入
輸出

廠商與數據私隱

供應商
Alibaba (Qwen)文件
分詞器
Qwen tokenizer (tiktoken-compat)
許可證
Tongyi Qianwen License開放權重
數據保留70 日預設不會用於上游訓練

效能

基準測試

標準化評測得分。百分比越高越好,並展示排名百分位。

指標來源:Artificial Analysis 2026-09-30·Qwen4 Max

目前基準快照不包含此模型。

缺少模型或測量值不代表零分。

基準圖表保留來源中的模型選擇和推理設定。缺少模型或測量值不代表零分,基準成本或速度也不是本站的服務承諾。

About Qwen4 Max

模型能力

Qwen4-Max 可以在同一次请求中结合文字、图像和视频进行分析,例如理解界面截图、检索长文档里的信息,或从视频中提取事件。模型支持流式输出、工具调用和结构化输出,默认开启深度思考。

上下文长度为 1,000,000 Token。非思考模式最大输入为 991,808 Token,最大输出为 131,072 Token。思考模式最大输入为 983,616 Token,思考与最终回答合计最多 262,144 Token。实际输入与输出合计仍受上下文窗口限制。

计费

以下单价以人民币/百万 Token 计。普通输入 ¥10,输出(含思考)¥30,缓存命中 ¥0.5,5 分钟显式缓存创建 ¥12.5,1 小时显式缓存创建 ¥20。通过 OpenAI 兼容接口设置 1 小时显式缓存时,请明确传入 prompt_cache_options.ttl: "1h"。

来源

Use cases and prompting

使用有 Alibaba 或 official 分组权限的 ModelSell API Key,调用 POST /v1/chat/completions,将 model 设为 qwen4-max。使用 messages 提供文本或多模态内容。需要低延迟时,可在 Chat Completions 请求中传入 enable_thinking: false。流式请求设置 stream: true,并使用 stream_options.include_usage 获取用量。

也可按客户端协议调用 POST /v1/responses 或 POST /v1/messages。多模态输入格式与支持的工具由所用协议决定。

API access

API 介面文件

呼叫示例

請求POST/v1/chat/completions
請求範例
參數
參數類型預設值 / 範圍說明資訊
temperature
number
=10 ~ 2
採樣溫度;越低越穩定
top_p
number
=10 ~ 1
核採樣累積概率
max_tokens
integer>= 1回應中最大 token 數
frequency_penalty
number
=0-2 ~ 2
懲罰高頻 token 的重複出現
presence_penalty
number
=0-2 ~ 2
鼓勵引入新話題
stop
array—最多 4 個停止生成的字串
seed
integer—盡量保證可復現的採樣種子
n
integer
=1>= 1
生成的候選條數
stream
boolean
=false
透過 SSE 串流返回 token
response_format
object—強制輸出 JSON 物件或符合 Schema 的結果
tools
array—模型可呼叫的工具 / 函數聲明
tool_choice
string
autononerequired
工具選擇策略或具體工具名
logprobs
boolean
=false
返回每個 token 的對數概率
top_logprobs
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

替換 <YOUR_API_KEY> 替換為 API 金鑰頁面中的金鑰。

身份驗證

所有請求必須攜帶 Authorization: Bearer <TOKEN> 請求頭。Anthropic 格式的端點也接受 x-api-key 請求頭。

在「令牌」頁面生成 API Key,可以按模型、分組、IP、速率等維度精細化授權。

支援的參數

Generation parameters
參數類型預設值 / 範圍說明資訊
temperature
number
=10 ~ 2
採樣溫度;越低越穩定
top_p
number
=10 ~ 1
核採樣累積概率
max_tokens
integer>= 1回應中最大 token 數
frequency_penalty
number
=0-2 ~ 2
懲罰高頻 token 的重複出現
presence_penalty
number
=0-2 ~ 2
鼓勵引入新話題
stop
array—最多 4 個停止生成的字串
seed
integer—盡量保證可復現的採樣種子
n
integer
=1>= 1
生成的候選條數
stream
boolean
=false
透過 SSE 串流返回 token
response_format
object—強制輸出 JSON 物件或符合 Schema 的結果
tools
array—模型可呼叫的工具 / 函數聲明
tool_choice
string
autononerequired
工具選擇策略或具體工具名
logprobs
boolean
=false
返回每個 token 的對數概率
top_logprobs
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

速率限制

供應商RPMTPMRPD
Alibaba無限制無限制無限制
official無限制無限制無限制

無限制

Frequently asked questions about qwen4-max

What is qwen4-max?

Qwen4-Max 是通义千问的旗舰多模态模型,支持文本、图像和视频输入,输出文本。适合复杂推理、编程、长文档处理和智能体任务,支持工具调用与结构化输出。

How do I call qwen4-max?

Create an API key with access to qwen4-max, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.

How is qwen4-max priced?

Pricing depends on the selected provider group and the model billing unit. The current input, output, request, or media prices are shown on this page before sign-up.

What is the context window of qwen4-max?

The model catalog lists a context window of 1000000 tokens. Check the selected endpoint for request limits.

What is the maximum output of qwen4-max?

The model catalog lists a maximum output of 262144 tokens. Your request settings may set a lower limit.

How should I evaluate qwen4-max for my project?

Start with the use cases and prompting guidance on this page, then evaluate the model with representative inputs from your project.