Qwen 4 vs GLM 5.4: Price, Open Weights and Coding
Dec 5, 2026

Qwen 4 vs GLM 5.4: Price, Open Weights and Coding

Qwen 4 vs GLM 5.4 compared: Qwen4-Max and Qwen4-35B-A3B against Z.ai GLM 5.4 on price, Artificial Analysis scores, context, vision, open weights and coding fit.

Quick answer: Qwen4-Max and GLM 5.4 are near-equals on price and independent scores. Qwen4-Max costs $1.50 / $4.50 per million input / output tokens and scores 43 on the Artificial Analysis Intelligence Index. GLM 5.4 costs $1.40 / $4.40 and scores 42. The two scores were measured at different reasoning efforts and index versions, so treat them as a tie. Both have a 1M context and accept image and video input. Neither has open weights. The real difference is the rest of each family. Qwen 4 has an open-weight model (Qwen4-35B-A3B, Apache-2.0, $0.06 / $0.36) that runs on one consumer GPU. GLM 5.4 is built around what Z.ai calls "Generalized Coding," with a looped architecture that spends extra compute per token on reasoning-heavy work.

People comparing Chinese frontier models usually line up two spec sheets and stop. That misses the more useful question: what do you get beyond the flagship? Here is what each family offers, where each is weaker, and which to pick for common workloads.

Sources: Qwen facts come from Qwen's official announcement, the Hugging Face model card and QwenCloud pricing. GLM 5.4 facts come from Z.ai's docs and pricing, as summarized in our What is GLM 5.4 guide. Independent scores come from Artificial Analysis. Checked December 5, 2026. glm5.app offers all three models in its chat. We present the numbers as published and have not run our own head-to-head eval.

Qwen 4 vs GLM 5.4 at a glance

Qwen4-MaxQwen4-35B-A3BGLM 5.4
DeveloperAlibaba QwenAlibaba QwenZ.ai (Zhipu AI)
ReleasedNov 16, 2026Dec 3–4, 2026Nov 23, 2026
ArchitectureSparse MoE, 2.4T backbone, 71B activeMoE, 35B total, ~3B activeLoop Transformer, ~750B, 28 layers × 2 passes
Context1M1M1M
Max output128K (256K thinking)128K (256K thinking)128K
InputText, image, videoText, image, videoText, image, video, file
API price / 1M (in / out)$1.50 / $4.50$0.06 / $0.36$1.40 / $4.40
Cached input / 1M$0.075$0.003$0.26
AA Intelligence Index432542
Open weightsNoYes, Apache-2.0No
Reasoning controlThinking on/off; effort levelsxhigh / high / low / offlow / high / max (default max)

Price: close on list, apart on cache

On list price, GLM 5.4 is about 7% cheaper per token than Qwen4-Max ($1.40 vs $1.50 input, $4.40 vs $4.50 output). Cached input changes the math. Qwen4-Max charges $0.075 for cached input against GLM 5.4's $0.26. In agent loops that resend the same repository context every turn, Qwen4-Max can come out cheaper per task, even at a higher list price.

Output length matters too. Artificial Analysis flags Qwen4-Max as "very verbose" (127M tokens on its Index vs a 71.1M median). Z.ai itself warns GLM 5.4 can fall into "marathon thinking" on hard problems. Both bill reasoning as output, so lower effort on routine calls helps either way.

Cost example (30K input, 5K output, no cache):

ModelPer turn
Qwen4-35B-A3B~$0.004
GLM 5.4~$0.064
Qwen4-Max~$0.068

Scores: a statistical tie at the top

Artificial Analysis puts Qwen4-Max at 43 (default xhigh effort) and GLM 5.4 at 42 (max effort, index v5.0.2). A one-point gap measured under different settings is not a meaningful lead. Neither vendor has published a head-to-head on the same benchmarks:

  • Qwen's own charts compare Qwen4-Max mainly with Qwen3.8-Max, and report Work360 at 52.69 vs 47.74.
  • Z.ai has not published an official GLM 5.4 benchmark table, as we noted in our GLM 5.4 explainer.

Speed differs more than score. Artificial Analysis measured Qwen4-Max at 92 tokens/s with about 61 seconds to the first answer token at default effort. Z.ai quotes GLM 5.4 at up to 200 tokens/s off-peak and 70–80 at peak on its own service.

Where each one wins

Qwen 4 wins when:

  • You want an open-weight option. Qwen4-35B-A3B is the strongest small open model on Artificial Analysis (#1 of 17 in the 4B–40B class) and runs on a 24GB GPU. GLM 5.4 has no weights or release date.
  • You run high-volume, cache-heavy agents. Qwen4-Max's $0.075 cached input is about 3.5× cheaper than GLM 5.4's.
  • You need the cheapest capable hosted model. At $0.06 / $0.36, Qwen4-35B-A3B is in a different price class.

GLM 5.4 wins when:

  • Coding is the main job. GLM 5.4 is designed around "Generalized Coding." Its looped layers spend more compute per token on reasoning-heavy work such as large codebases, 3D modeling and security tasks.
  • You need file input. Z.ai lists file input alongside text, image and video.
  • You already use Z.ai tooling. GLM 5.4 works in Z.ai Chat, ZCode and partner coding tools such as Trae and Qoder.
  • Speed off-peak matters. Z.ai quotes up to 200 tokens/s on its own service.

Which to pick

Your situationPick
Local or self-hosted deploymentQwen4-35B-A3B
Cheapest hosted calls at volumeQwen4-35B-A3B
Long agent loops with a big repeated contextQwen4-Max (cheap cache) or test both
Coding agent on large, hard codebasesGLM 5.4, then compare with Qwen4-Max
Image, video and file analysis in one callGLM 5.4 (adds file input)
You need weights for complianceQwen4-35B-A3B

Test both on the same prompt

You don't need two cloud accounts to compare them. All three models are in the glm5.app model picker:

Paste the same prompt into each, ideally a task from your real work that you already know the answer to, and compare correctness, length and time to answer. For code, GLM 5.4 is also on the glm5.app OpenAI-compatible API as glm-5.4.

FAQ

Is Qwen 4 better than GLM 5.4? At the flagship level they are roughly tied: Artificial Analysis gives Qwen4-Max 43 and GLM 5.4 42, measured at different settings. Qwen 4's advantage is its open-weight 35B model. GLM 5.4's focus is coding.

Which is cheaper, Qwen4-Max or GLM 5.4? GLM 5.4 has a slightly lower list price ($1.40 / $4.40 vs $1.50 / $4.50). Qwen4-Max has much cheaper cached input ($0.075 vs $0.26).

Does GLM 5.4 have open weights like Qwen 4? No. GLM 5.4 has no released weights. In the Qwen 4 family, only Qwen4-35B-A3B has open weights. Qwen4-Max does not.

Do both support 1M context and vision? Yes. All three models have a 1M-token context and accept image and video input. GLM 5.4 also accepts files.

Verdict

Qwen 4 vs GLM 5.4 is close at the top. Pick on cache economics, coding focus and whether you need weights, not on a one-point index gap. If you need an open model, Qwen4-35B-A3B decides it. For hosted coding work, run your own prompts on GLM 5.4 and Qwen 4 Max side by side before you commit.

Sources

Checked December 5, 2026. Prices and scores change; check the vendors' pages.

Start Using GLM 5 Today

Try GLM 5 free — reasoning, coding, agents, and image generation in one platform.