Qwen4-Max Tested: 43% Fewer Tokens at Low Effort, No Answer at xhigh
Contents
- What does Qwen4-Max offer?
- Does Qwen4-Max use fewer tokens than Qwen3.8-Max?
- Why does Qwen4-Max at xhigh return nothing?
- What must an agent store when thinking summaries are on?
- Do you need Qwen4-Max’s explicit cache?
- Which Qwen4-Max settings should you start with?
- FAQ
- Does max_tokens reserve room for the answer on Qwen4-Max?
- Is Qwen4-Max cheaper than Qwen3.8-Max?
- Do I need to turn on prompt caching for Qwen4-Max?
Qwen4-Max at reasoning_effort: "low" used 43% fewer tokens than Qwen3.8-Max at its default xhigh on our 72-order reconciliation task, and still returned the exact answer. The task ran as an agent: the model calls tools in a loop until it submits a result. reasoning_effort is the request parameter that sets how much the model thinks before answering. At its highest level, xhigh, Qwen4-Max used 11% more tokens than Qwen3.8-Max, and with an 8,192-token output cap (max_tokens) it spent the whole cap on thinking and returned nothing. We also tested two API features: encrypted thinking history, and the new explicit-cache options, which cost more than the default cache in nearly every test.
TL;DR
- Qwen4-Max at
lowused 43% fewer tokens than Qwen3.8-Max at its defaultxhigh; Qwen4-Max atxhighused 11% more tokens (26% more output). - Qwen4-Max at
xhighwith an 8,192-token cap passed 0/2 runs; both spent all 8,192 output tokens on thinking. - Qwen4-Max returns encrypted thinking history that streaming clients can drop, because it arrives in a chunk with no text.
- Qwen4-Max’s default prompt cache hit on 27 of 27 repeat requests, down to a 1,254-token prompt, so the paid explicit cache mostly added write fees.
What does Qwen4-Max offer?
Alibaba released Qwen4-Max on November 16, 2026, and says it finishes professional work with fewer tokens than Qwen3.8-Max. The headline numbers come from Work360, Alibaba’s own industry-task evaluation, whose tasks are not public (release, Work360 results).
| Qwen4-Max | Qwen3.8-Max | |
|---|---|---|
| Work360 score | 52.69 | 47.74 |
| Work360 tokens at High / Xhigh | 35% / 24% fewer | Baseline |
| Work360 average task cost | 58% lower | Baseline |
| Published price per 1M input / output tokens (Singapore) | $1.50 / $4.50 | $2 / $6 |
| Effort levels | low, high, xhigh; default high; medium runs as high | low, medium, xhigh; default xhigh; high runs as xhigh |
Qwen4-Max also has a one-million-token context window, accepts image and video input, can return a readable thinking summary with the full thinking encrypted, and supports an explicit cache with automatic or manual breakpoints (Qwen4-Max model page, Qwen3.8-Max model page).
Both published prices dropped 25%, so part of the 58% cost reduction comes from price alone. The effort names also shifted (effort mappings). Code that sent high to Qwen3.8-Max was getting its maximum level; the same string on Qwen4-Max selects the default.
Does Qwen4-Max use fewer tokens than Qwen3.8-Max?
At low and high, Qwen4-Max used fewer tokens than Qwen3.8-Max at its default xhigh on our task; at xhigh, it used more.
The task gave an agent five files describing 72 synthetic orders. It had to apply the latest valid price revision, skip voided orders and future-dated changes, count each settled refund once, ignore pending refunds, flag orders with no exchange rate, and submit exact totals in integer cents plus the IDs of unresolved orders and applied corrections. Its tools could read a file, do arithmetic, and submit JSON. A run was accepted only if the JSON matched an independently computed answer exactly.
We ran the tests between November 18 and 24. Each configuration ran twice in a fresh workspace, and each run’s request carried a unique random string (a salt) so that no two runs sent an identical prompt. We report raw token counts (input plus output, summed over both runs) and a same-price cost: every run re-priced at Qwen3.8-Max’s $2 / $6 per million tokens with all input counted as uncached. The same-price cost removes the 25% price cut and differences in cache hits. Output costs three times as much as input, so it weights output tokens more heavily than a raw count does.
| Configuration | Accepted | Total tokens | Tokens vs Qwen3.8-Max xhigh | Same-price cost vs Qwen3.8-Max xhigh |
|---|---|---|---|---|
Qwen4-Max low, 8,192 cap | 2/2 | 57,034 | 43% fewer | 46% less |
Qwen4-Max high, 8,192 cap | 2/2 | 85,338 | 15% fewer | 14% less |
Qwen4-Max xhigh, 16,384 cap | 2/2 | 111,861 | 11% more | 16% more |
Qwen4-Max xhigh, 8,192 cap | 0/2 | 35,992 | No answers | No answers |
Qwen3.8-Max xhigh, 8,192 cap | 2/2 | 100,632 | Baseline | Baseline |
Qwen4-Max at low was billed $0.09108 for its two runs, or $0.046 per accepted answer, and matched the reference exactly both times, which makes it the most efficient setting we tested. At xhigh, Qwen4-Max needed a 16,384 cap to finish, while Qwen3.8-Max ran with 8,192. In that comparison, Qwen4-Max’s actual bill was 13% lower than Qwen3.8-Max’s ($0.19095 against $0.22021), but it used 11% more tokens (26% more output tokens) and cost 16% more at the same price. That saving comes entirely from the price cut.
We did not run Qwen3.8-Max at low; the comparison is against its default, which is what code that sets no effort level gets. Per the docs, that code moves to Qwen4-Max’s default high, which used 15% fewer tokens here. This is two runs of one task, so treat the gaps as directional: on this task, the saving depended on the effort level.
Why does Qwen4-Max at xhigh return nothing?
Qwen4-Max counts thinking tokens against the same max_tokens cap as the answer, and at xhigh it put most of its thinking into a single call. With an 8,192 cap, both runs read the five files, then returned a response with 8,192 reasoning tokens (the API’s name for thinking tokens) out of 8,192, empty content, no tool call, and finish_reason: "length". finish_reason is the response field that says why generation stopped, and length means it hit the cap. The HTTP request succeeded, so a client that only checks the status code sees a normal turn.
With a 16,384 cap, Qwen4-Max’s largest call produced 12,943 output tokens in one run and 10,619 in the other, nearly all of it thinking, and both runs passed. Qwen3.8-Max at xhigh spread the same work across three to five calls. Its largest calls were 8,138 and 6,908 tokens, so it fit under 8,192, though with only 54 tokens to spare in its first run. The cap that worked for Qwen3.8-Max at xhigh was not enough for Qwen4-Max at xhigh on this task. After we lowered the effort or raised the cap to 16,384, both runs returned an answer.

Treat finish_reason: "length" without a tool call as a failed turn. The code in the next section checks for it. On a retry, lower the effort or raise max_tokens; resending the same request gives the model the same budget, and the two empty xhigh runs above still cost $0.10325. We saw the same pattern with Hy4 in our Hy4 output-budget test.
What must an agent store when thinking summaries are on?
Store the whole assistant message from Qwen4-Max, including encrypted_content, not just the readable summary. With thinking_display: "summarized", the model returns a summary of its thinking in reasoning_content for display, and the full thinking in encrypted_content, which your application cannot read. You send the encrypted field back on later turns so the model can continue from its earlier reasoning (summary and history docs).
import os
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key=os.environ["SYNTHORAI_API_KEY"],
)
response = client.chat.completions.create(
model="qwen4-max",
messages=history,
tools=tools,
reasoning_effort="low",
max_tokens=8192,
extra_body={
"enable_thinking": True,
"preserve_thinking": True,
"thinking_display": "summarized",
},
)
choice = response.choices[0]
details = response.usage.completion_tokens_details
reasoning = details.reasoning_tokens if details else None # can be missing
if choice.finish_reason == "length" and not choice.message.tool_calls:
raise RuntimeError(f"Truncated after {reasoning} reasoning tokens")
# Append the whole message so encrypted_content stays on its original turn.
history.append(choice.message.model_dump(exclude_none=True))
history is your list of messages so far, and tools is your list of function definitions. extra_body passes Qwen-specific fields through the OpenAI SDK: enable_thinking turns thinking on, preserve_thinking lets the model continue from the encrypted history you send back, and thinking_display selects the summary. The docs say to send these options on every request and to return the encrypted value unchanged. After appending the message, append each tool result as usual and persist the full history. Confirm that encrypted_content is present in what you saved, because some SDK versions drop fields they do not recognize.
In two short tool sessions (start from 713 cents, fetch an adjustment of -127 cents through a tool, return the total as JSON), replaying the full message gave the correct total of 586 in both sessions.
Streaming, where the response arrives in pieces called chunks, needs one more check. In both of our streaming tests, encrypted_content arrived in its own chunk with empty content. A stream handler that skips empty-text chunks loses it, so accumulate encrypted_content alongside content and tool_calls.
Do you need Qwen4-Max’s explicit cache?
Our tests found no cost advantage in the explicit cache on Qwen4-Max: the default cache hit on all 27 follow-up requests (requests that repeat a prefix sent earlier), and the explicit settings cost more except on the shortest prompt.
Prompt caching reuses the already-processed opening of a prompt (the prefix) at a lower price. Qwen has two kinds. The implicit cache is always on, charges nothing to store a prefix, and does not guarantee a hit. The explicit cache is one you request: you pay a write fee to store a prefix up to a breakpoint (a marker on a content block, which is one element of a message’s content array), and a read is then guaranteed until the entry expires.
Qwen3.8-Max already had both, with a manual breakpoint and a 5-minute lifetime (context cache docs). We found four differences on Qwen4-Max, two from the docs (Qwen4 cache guide) and two from our measurements:
| Qwen3.8-Max | Qwen4-Max | |
|---|---|---|
| Smallest prompt that hit the implicit cache (measured) | About 4,300 tokens | 1,254 tokens (the smallest we tried) |
| Implicit cache read price (measured) | $0.25 per 1M tokens (12.5% of input) | $0.075 per 1M (5% of input); the explicit cache reads at the same price |
| Explicit cache lifetime | 5 minutes | 5 minutes (write at 1.25x input) or 1 hour (write at 2x) |
| Automatic breakpoint | No | Yes: placed at the end of the input, meant for conversations that grow |
The measured Qwen3.8-Max figures are from our August tests. The parameter name is misleading: the automatic breakpoint is switched on with prompt_cache_options: {"mode": "implicit"}, which is an explicit-cache setting with a write fee. The ordinary implicit cache is what you get when you send no cache options.
We tested each addition against sending no cache options. Every test used a salted reference document followed by a short question, with thinking off. Totals are for two runs.
| Test | No cache options | Manual breakpoint after the document |
|---|---|---|
| 1,254-token prompt, 3 requests | $0.00567 | $0.00539 |
| 4,900-token prompt, 3 requests | $0.01643 | $0.02008 |
| 4,900-token document, 6-turn conversation | $0.02042 | $0.02402 |
| 4,900-token prompt, re-read after 8 minutes | $0.01558 | $0.03673 (5-minute), $0.03015 (1-hour) |
The implicit cache was the cheapest setting in three of the four tests because it hit every time and has no write fee. It hit at 1,254 tokens, on every turn of the conversation, and after an 8-minute gap. On the 1,254-token prompt the manual breakpoint came out 5% cheaper: the implicit cache stored 1,024 of the 1,254 tokens, and the explicit cache stored 1,238.
The automatic breakpoint did what the docs describe. In the conversation, each turn read the previous turn’s cached prefix and wrote only the roughly 31 new tokens, so its per-turn cost stayed near $0.00048 while the other two settings rose to $0.00066 by turn six. Its two-run total was $0.02315, so six short turns did not repay its first write. Outside a conversation it costs more: in a separate run with three different questions about one document, the breakpoint sat after each question, every request paid a full write, and the total was 3.3 times the no-options total.
The 1-hour lifetime also worked. After 8 minutes the 5-minute entry had expired and was written again at full price, while the 1-hour entry was read. The implicit cache also hit after the same gap, with no write fee.
The explicit cache’s advantage on Qwen4-Max is a guaranteed hit. Use it when a miss on a long prompt would cost more than the write fee, or when reuse more than 5 minutes apart has to be guaranteed:
response = client.chat.completions.create(
model="qwen4-max",
messages=[{
"role": "user",
"content": [
{
"type": "text",
"text": reference_document,
"prompt_cache_breakpoint": {"mode": "explicit"},
},
{"type": "text", "text": question},
],
}],
extra_body={"prompt_cache_options": {"mode": "explicit", "ttl": "1h"}},
)
details = response.usage.prompt_tokens_details
print(details.cache_write_tokens, details.cached_tokens, response.usage.cost)
cached_tokens is the number of prompt tokens read from cache, and it is reported for implicit hits too, so log it to measure your own hit rate before paying for writes. Both counts are already included in usage.prompt_tokens. Our 27 hits came from requests sent seconds to minutes apart on one account, which says little about busy or bursty traffic.
Which Qwen4-Max settings should you start with?
Start Qwen4-Max at low when your application can check results automatically, and change one setting at a time from there.
| Situation | Setting | What to watch |
|---|---|---|
| Internal tools with automated checks | reasoning_effort: "low"; move to high if checks fail | Accepted answers per dollar |
Tasks that need xhigh | max_tokens well above your largest observed call (16,384 left about 3,400 tokens of headroom here) | Share of turns ending in length |
| Customer-facing or financial output | Any level that passes, plus independent arithmetic checks; reject partial output and limit retries | Wrong totals, not just failures |
| Migrating from Qwen3.8-Max | Send xhigh where you sent high to keep maximum effort, and re-measure caps | Effort strings and per-call output |
| Prompts with a long fixed opening | No cache options; add a manual breakpoint only if a miss is too costly to risk | cached_tokens hit rate in production |
FAQ
Does max_tokens reserve room for the answer on Qwen4-Max?
Qwen4-Max does not reserve any of max_tokens for the answer: thinking and answer tokens count against the same cap, so thinking can use all of it. Both of our xhigh runs at 8,192 spent every token on thinking, while 16,384 left enough room.
Is Qwen4-Max cheaper than Qwen3.8-Max?
Qwen4-Max had a lower actual bill than Qwen3.8-Max in every configuration that finished our task, but only low and high used fewer tokens than Qwen3.8-Max at its default xhigh (43% and 15% fewer). At xhigh, Qwen4-Max used 11% more tokens, and the 25% price cut made up the difference.
Do I need to turn on prompt caching for Qwen4-Max?
No setting is needed: Qwen4-Max applies its implicit cache automatically, and in our tests it hit on 27 of 27 follow-up requests at 5% of the input price with no write fee. The explicit cache adds a guaranteed hit and an optional 1-hour lifetime for a write fee of 1.25x or 2x input. mode: "implicit" in prompt_cache_options selects the explicit cache with an automatic breakpoint, not the ordinary implicit cache.
Related: Qwen3.8-Max thinking controls and cost, what a prompt cache write costs, and Hy4 reasoning and output budgets.