GLM-5.4 vs Qwen 4 Max: 42 vs 43, but $5.08 vs $3.27 a Task
OpenLux TeamPublished
GLM-5.4 and Qwen 4 Max are as close as two flagships get on one index. Artificial Analysis scores Zhipu's model 42 and Alibaba's 43 on Intelligence Index v5.0.2, ranks 53 and 51 out of 98, read on 4 December 2026. Their list prices are close too, $1.40/$4.40 against $1.50/$4.50 per million tokens. Yet running the index cost $5.08 per task on GLM-5.4 and $3.27 on Qwen 4 Max, 1.55 times as much for the model with the lower price tag. The output bill does not explain it; the cache line does, and that decides which one is cheaper for your workload.
Both are on OpenLux: see the glm-5.4 and qwen4-max model pages. Prices below were read at about 18:00 Beijing time on 4 December. Compiled by the OpenLux Team from public sources read the same day.
Two closed flagships, two weeks apart
Alibaba released Qwen 4 Max on 16 November. The Model Studio page gives a 1,000,000-token context, a maximum output of 131,072 tokens in non-thinking mode and 262,144 with thinking on, and text, image and video input. Thinking is on by default but can be switched off with enable_thinking, and reasoning_effort defaults to high. Artificial Analysis ran it at xhigh.
Zhipu opened the GLM-5.4 API on 2 December. The Z.ai model page lists a 1M context, 128K maximum output, and video, image, text and file input. Thinking is always on: thinking.type accepts only enabled, and Z.ai recommends reasoning_effort: max, which is what Artificial Analysis used. Neither vendor publishes a parameter count for its API model, and neither offers open weights for it.
Why the cheaper rate card costs more per task
Start with output, the usual suspect. Artificial Analysis reports 123 million output tokens for GLM-5.4 and 127 million for Qwen 4 Max over the index. At list, that is $541.20 against $571.50, so Qwen actually spends $30 more on output. Input volumes are also similar, 10.4 billion tokens against 9.9 billion.
The difference is the cache. Agent tasks resend the same long context on every turn, so most of those billions of input tokens are cache reads. Z.ai charges $0.26 per million for GLM-5.4 cache hits, an 81% discount. Alibaba charges $0.075 for Qwen 4 Max, a 95% discount and 3.47 times cheaper. Artificial Analysis does not publish its cache-hit share, so we cannot reproduce the $5.08 exactly, but with output roughly equal, the cache rate is the only line large enough to produce a 1.55-times gap.
The lesson for your own estimate: if your workload is multi-turn agents or long-document chat with a stable prefix, Qwen 4 Max is the cheaper model despite its higher sticker price. If each request is fresh, GLM-5.4's slightly lower input and output rates win.
Where the one-point gap splits apart
The single index point hides large differences in both directions. Qwen 4 Max leads on knowledge: 44.9% against 36.9% on HLE-Diamond, and 43.70% against 26.03% on AA-Omniscience accuracy, a 17.67-point gap in how often it knows the answer. It is also ahead on AutomationBench-AA, 72.6% to 69.4%, on GDP.pdf, 26.2% to 21.6%, and on the AA-Briefcase Elo, 1685 to 1652.
GLM-5.4 leads on reasoning and restraint. It scores 52.0% against 43.0% on the CritPt v2 hard subset, and 88.06% against 71.58% on the Omniscience non-hallucination rate, meaning it gives a wrong answer much less often when it does not know. Its accuracy is lower because it declines more.
On coding and terminal work they are within noise: 28.2 against 26.5 on FrontierCode-AA 2.0, 47.5 against 46.5 on Terminal-Bench 4.1 in Qwen's favour, and 24.8 against 23.3 on Terminal-Bench-Science.
What a month costs at list and on OpenLux
For a month of 100 million input and 20 million output tokens with no caching, GLM-5.4 costs $140 plus $88, or $228, and Qwen 4 Max $150 plus $90, or $240, 5.3% more. With 80% of input served from cache, the order flips: GLM-5.4 is $136.80 and Qwen 4 Max $126.
| Item | GLM-5.4 | Qwen 4 Max |
|---|---|---|
| List input / cache read / output per 1M | $1.40 / $0.26 / $4.40 | $1.50 / $0.075 / $4.50 |
| AA Intelligence Index v5.0.2 | 42 | 43 |
| AA cost per index task | $5.08 | $3.27 |
| Context / max output | 1M / 128K | 1M / 262,144 with thinking |
| Thinking can be turned off | No | Yes |
| Month, 100M in + 20M out, list | $228 | $240 |
| Same month, 80% cached, list | $136.80 | $126 |
| OpenLux, same month uncached | $68.40 (Self-Deployed-1), $114 (Self-Deployed-2) | $120 (Self-Deployed-2), $180 (Alibaba-2) |
| OpenLux API format | OpenAI and Anthropic | OpenAI |
On OpenLux, both models are in Self-Deployed-2 (ratio 0.5, "Moderate price with good availability"), where GLM-5.4 is $0.70 and $2.20 and Qwen 4 Max $0.75 and $2.25. GLM-5.4 is also in Self-Deployed-1 (0.3, "Attractive discount, suitable for general Q&A") at $0.42 and $1.32, which has no Qwen counterpart; Qwen 4 Max is also in Alibaba-2 (0.75, "higher quota. Upgraded multimodal analysis") at $1.125 and $3.375. The cache logic still holds inside OpenLux: with 80% cached, the month is $68.40 for GLM-5.4 and $63 for Qwen 4 Max in Self-Deployed-2, while GLM-5.4 in Self-Deployed-1 comes to $41.04. How groups bill is explained in OpenLux billing.
Where GLM-5.4 is the better pick
GLM-5.4 is the safer model when a wrong answer is expensive. A 16.48-point lead on the non-hallucination rate is the largest gap in GLM's favour in the whole comparison, and it matters for support assistants, internal search and anything a customer reads unreviewed. Its 9-point CritPt lead points the same way for multi-step technical reasoning.
It is also faster to its first answer. Artificial Analysis measures 32.66 seconds to the first answer token on GLM-5.4 and 51.55 seconds on Qwen 4 Max, both including thinking time, and 15.1 minutes per index task against 19.2. On OpenLux, GLM-5.4 speaks the Anthropic Messages format as well as the OpenAI one, so it works with coding tools that need Anthropic-style requests; qwen4-max is OpenAI format only. More on the GLM side in GLM-5.4 API Pricing and GLM-5.4 vs GLM-5.3.
Where Qwen 4 Max is the better pick
Qwen 4 Max knows more. The HLE-Diamond and Omniscience accuracy leads mean it answers more questions correctly, which suits research assistants and analysis where coverage matters and a human checks the output. It also leads on the business-workflow tests, AutomationBench-AA and GDP.pdf.
Its controls are more flexible. You can turn thinking off for simple calls, choose low, high or xhigh effort, and get up to 262,144 output tokens with thinking on, twice GLM-5.4's limit. Its cache price makes it the cheaper model for long, repeated contexts. We compared it with MiniMax M4 in MiniMax M4 vs Qwen 4 Max and with Claude Opus 5.5 in this Traditional Chinese comparison.
The setting that breaks both estimates
Neither model is cheap if you leave its reasoning at the top setting. Artificial Analysis counts 123 and 127 million output tokens for the index, against a 69.6 million median across models, so both think roughly twice as long as a typical model. For GLM-5.4 you cannot switch thinking off; for Qwen 4 Max you can, and on short classification or extraction calls that removes most of the output bill.
Set max_tokens on every call to both. Then look at how much of your input is repeated: that one ratio tells you which of the two cache rates, $0.26 or $0.075, will dominate your bill.
Running both against your own prompts
Index scores are averages over someone else's tasks. Before you choose, send 50 to 100 of your real prompts to both models and compare three numbers from each response's usage object: prompt tokens, cached prompt tokens and completion tokens. Those three, multiplied by the rates in the table above, give you your own cost per task instead of Artificial Analysis's.
On OpenLux both models use the OpenAI-compatible endpoint at https://api.openlux.ai/v1, so the test is one loop with two model names:
for m in glm-5.4 qwen4-max; do
curl -sS https://api.openlux.ai/v1/chat/completions \
-H "Authorization: Bearer $OPENLUX_API_KEY" \
-H "content-type: application/json" \
-d "{\"model\": \"$m\", \"max_tokens\": 8000,
\"messages\": [{\"role\": \"user\", \"content\": \"Summarise the attached contract clause by clause: ...\"}]}" \
| python3 -c "import sys,json; print('$m', json.load(sys.stdin)['usage'])"
done
Keep the same token in the same group, Self-Deployed-2, for both models so the ratio is identical and the comparison is only about token counts. For Qwen 4 Max, Alibaba documents an enable_thinking switch; if you plan to rely on it, run the set a second time with it set to false and confirm from the completion tokens that it took effect, because on short tasks thinking is most of the output. For GLM-5.4 there is no such switch, so max_tokens is your only control. Also score the answers, not just the bill: the Omniscience gap means GLM-5.4 will decline some questions that Qwen 4 Max answers, and whether that is a feature or a bug depends on your product.
How to choose
Pick Qwen 4 Max if your traffic is multi-turn or reuses long prompts, if you need the widest knowledge, or if you want to switch thinking off for simple calls. Its 95% cache discount outweighs its slightly higher token rates.
Pick GLM-5.4 if hallucinations are your main risk, if you need the Anthropic format, or if your requests are mostly one-off and uncached, where its lower rates and the Self-Deployed-1 price of $68.40 a month on OpenLux make it the cheaper option.
Both run on the same OpenLux key and Base URL, so you can send identical prompts to glm-5.4 and qwen4-max in Self-Deployed-2 and compare real token counts before committing.
To test both on one key, create an OpenLux account.