GLM 5.4 vs Qwen3.8 27B
GLM 5.4 leads Qwen3.8 27B on coding, 72.7 to 69.7 on the Vibe Coding Index, and Qwen3.8 27B costs 1.7x less per output token ($2.55 vs $4.40 per million). Updated December 3, 2026; 10 benchmarks have a result for both.
GLM 5.4 or Qwen3.8 27B: which to pick
Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 69.7 for Qwen3.8 27B, though on 2 benchmarks against 4.
Pick Qwen3.8 27B for output tokens 1.7x cheaper ($2.55 vs $4.40 per million) and work measured by LiveBench data analysis, where it leads.
- Shared results
- 10
- GLM 5.4 only
- 0
- Qwen3.8 27B only
- 82
- Like-for-like categories
- 5 of 9
Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.
Which one for your work
Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.
Coding
Vibe Coding Index, six public coding benchmarks
GLM 5.4
GLM 5.4 scores 72.7 against 69.7.
2 and 4 benchmarks behind the scores
Intelligence
AA Intelligence Index
No call
Only Qwen3.8 27B has a AA Intelligence Index result, 20.0.
Directional only
Reasoning
GPQA Diamond
No call
Only Qwen3.8 27B has a GPQA Diamond result, 88.9%.
Directional only
Knowledge
MMLU Pro
No call
Only Qwen3.8 27B has a MMLU Pro result, 84.3%.
Directional only
Long documents
Listed context window
GLM 5.4
GLM 5.4 takes 1.05M tokens against 1.02M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Qwen3.8 27B
GLM 5.4 $0.0036, Qwen3.8 27B $0.0017 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only Qwen3.8 27B has the number, $1.26.
Directional only
At a glance
- Coding index
- GLM 5.4 72.7 from 2 benchmarks, Qwen3.8 27B 69.7 from 4 benchmarks.
- Widest category
- Agentic work, 30.1 points apart on average over 3 shared benchmarks.
- Widest single gap
- LiveBench browser: GLM 5.4 64.5% against Qwen3.8 27B 24.2%, 40.3 points apart on a 0 to 100 scale.
- Output price
- GLM 5.4 $4.40 against Qwen3.8 27B $2.55 per million output tokens, 1.7x apart.
- Context window
- GLM 5.4 takes 1.05M tokens, Qwen3.8 27B 1.02M.
Benchmark by benchmark
First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.
| Category | GLM 5.4 | Bars | Qwen3.8 27B | Ties |
|---|---|---|---|---|
| Coding | 4 | 0 | ||
| Agentic work | 3 | 0 | ||
| Reasoning | 1 | 0 | ||
| Web design | 1 | 0 | ||
| General | 0 | 1 | ||
| All shared boards | 9 | 1 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index40
| Benchmark | GLM 5.4 | Qwen3.8 27B | Leader |
|---|---|---|---|
| LiveBench coding | 74.5% | 69.3% | GLM 5.4 |
| LMArena WebDev | 1690 | 1590 | GLM 5.4 |
| LiveCodeBench (Vals AI) | Not measured | 84.0% | Only Qwen3.8 27B measured |
| SWE-bench Verified (Vals AI) | Not measured | 86.0% | Only Qwen3.8 27B measured |
| Vibe Code Bench (Vals AI) | Not measured | 64.8% | Only Qwen3.8 27B measured |
| Code migration (Vals AI) | Not measured | 14.2% | Only Qwen3.8 27B measured |
| ProgramBench (Vals AI) | Not measured | 0.0% | Only Qwen3.8 27B measured |
| IOI (Vals AI) | Not measured | 39.1% | Only Qwen3.8 27B measured |
| Terminal-Bench 2.1 (Vals AI) | Not measured | 58.4% | Only Qwen3.8 27B measured |
| SkillsBench (Vals AI) | Not measured | 38.1% | Only Qwen3.8 27B measured |
| CyberBench (Vals AI) | Not measured | 67.8% | Only Qwen3.8 27B measured |
| SciCode | Not measured | 46.6% | Only Qwen3.8 27B measured |
| Terminal-Bench 4.0 (Artificial Analysis run) | Not measured | 5.6% | Only Qwen3.8 27B measured |
| FrontierCode 2.0 | Not measured | 14.9% | Only Qwen3.8 27B measured |
| LMArena Text: coding | Not measured | 1481 | Only Qwen3.8 27B measured |
| LMArena Text: software and IT | Not measured | 1474 | Only Qwen3.8 27B measured |
| LMArena WebDev: React | 1739 | 1595 | GLM 5.4 |
| LMArena WebDev: HTML | 1675 | 1572 | GLM 5.4 |
| LMArena WebDev: from an image | Not measured | 1574 | Only Qwen3.8 27B measured |
| GameBench 2 | Not measured | 43.4 | Only Qwen3.8 27B measured |
| Neither model has a result on the other 32 boards here | |||
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
| Benchmark | GLM 5.4 | Qwen3.8 27B | Leader |
|---|---|---|---|
| AA Intelligence Index | Not measured | 20.0 | Only Qwen3.8 27B measured |
| Epoch Capabilities Index | Not measured | 152.6 | Only Qwen3.8 27B measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | GLM 5.4 | Qwen3.8 27B | Leader |
|---|---|---|---|
| LiveBench research | 86.0% | 61.3% | GLM 5.4 |
| LiveBench browser | 64.5% | 24.2% | GLM 5.4 |
| LiveBench long agentic | 41.3% | 15.9% | GLM 5.4 |
| Finance Agent (Vals AI) | Not measured | 48.5% | Only Qwen3.8 27B measured |
| Tax Agent Bench (Vals AI) | Not measured | 30.9% | Only Qwen3.8 27B measured |
| Legal Research Bench (Vals AI) | Not measured | 36.1% | Only Qwen3.8 27B measured |
| Excel Modeling Benchmark (Vals AI) | Not measured | 59.7% | Only Qwen3.8 27B measured |
| Terminal-Bench-Science (Vals AI) | Not measured | 0.0% | Only Qwen3.8 27B measured |
| APEX-Agents | Not measured | 47.5% | Only Qwen3.8 27B measured |
| Neither model has a result on the other 35 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GLM 5.4 | Qwen3.8 27B | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 88.9% | Only Qwen3.8 27B measured |
| LiveBench reasoning | 85.2% | 80.0% | GLM 5.4 |
| MMMU Pro (Vals AI) | Not measured | 83.9% | Only Qwen3.8 27B measured |
| GPQA Diamond (Artificial Analysis run) | Not measured | 90.5% | Only Qwen3.8 27B measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 33.9% | Only Qwen3.8 27B measured |
| HLE-Diamond (Artificial Analysis run) | Not measured | 15.3% | Only Qwen3.8 27B measured |
| CritPt v2, hard subset (Artificial Analysis run) | Not measured | 4.0% | Only Qwen3.8 27B measured |
| ARC-AGI | Not measured | 87.5% | Only Qwen3.8 27B measured |
| ARC-AGI-2 | Not measured | 42.4% | Only Qwen3.8 27B measured |
| SimpleBench | Not measured | 60.2% | Only Qwen3.8 27B measured |
| LMArena Text: hard prompts | Not measured | 1458 | Only Qwen3.8 27B measured |
| LMArena Text: expert | Not measured | 1478 | Only Qwen3.8 27B measured |
| LMArena Text: hard prompts in English | Not measured | 1464 | Only Qwen3.8 27B measured |
| LMArena Vision: diagrams | Not measured | 1282 | Only Qwen3.8 27B measured |
| LMArena Vision: homework | Not measured | 1290 | Only Qwen3.8 27B measured |
| Neither model has a result on the other 11 boards here | |||
MathDirectional onlyPublic boards, shown as published, kept out of the index3 boards, none shared
| Benchmark | GLM 5.4 | Qwen3.8 27B | Leader |
|---|---|---|---|
| ProofBench | Not measured | 16.0% | Only Qwen3.8 27B measured |
| LMArena Text: math | Not measured | 1458 | Only Qwen3.8 27B measured |
| LMArena Text: mathematical work | Not measured | 1461 | Only Qwen3.8 27B measured |
| Neither model has a result on the other 11 boards here | |||
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index11 boards, none shared
| Benchmark | GLM 5.4 | Qwen3.8 27B | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 84.3% | Only Qwen3.8 27B measured |
| LegalBench (Vals AI) | Not measured | 82.4% | Only Qwen3.8 27B measured |
| TaxEval (Vals AI) | Not measured | 70.8% | Only Qwen3.8 27B measured |
| MortgageTax (Vals AI) | Not measured | 64.9% | Only Qwen3.8 27B measured |
| MedCode (Vals AI) | Not measured | 28.7% | Only Qwen3.8 27B measured |
| AA-Omniscience | Not measured | -6.4 | Only Qwen3.8 27B measured |
| GeoBench | Not measured | 38.0% | Only Qwen3.8 27B measured |
| LMArena Text: science | Not measured | 1465 | Only Qwen3.8 27B measured |
| LMArena Text: medicine and healthcare | Not measured | 1439 | Only Qwen3.8 27B measured |
| LMArena Text: legal and government | Not measured | 1447 | Only Qwen3.8 27B measured |
| LMArena Text: business and finance | Not measured | 1441 | Only Qwen3.8 27B measured |
| Neither model has a result on the other 10 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GLM 5.4 | Qwen3.8 27B | Leader |
|---|---|---|---|
| LiveBench design | 74.2% | 72.4% | GLM 5.4 |
| Neither model has a result on the other 8 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | GLM 5.4 | Qwen3.8 27B | Leader |
|---|---|---|---|
| LiveBench data analysis | 72.2% | 76.6% | Qwen3.8 27B |
| MedScribe (Vals AI) | Not measured | 83.8% | Only Qwen3.8 27B measured |
| Long context reasoning (AA-LCR) | Not measured | 82.0% | Only Qwen3.8 27B measured |
| GDPval-AA | Not measured | 1427 | Only Qwen3.8 27B measured |
| DTBench | Not measured | 88.0% | Only Qwen3.8 27B measured |
| LMCA | Not measured | 41.4% | Only Qwen3.8 27B measured |
| Surface Evolver Bench | Not measured | 45.0% | Only Qwen3.8 27B measured |
| Furniture assembly | Not measured | 15.0% | Only Qwen3.8 27B measured |
| LMArena Text | Not measured | 1438 | Only Qwen3.8 27B measured |
| LMArena Text: instruction following | Not measured | 1434 | Only Qwen3.8 27B measured |
| LMArena Text: creative writing | Not measured | 1379 | Only Qwen3.8 27B measured |
| LMArena Vision | Not measured | 1274 | Only Qwen3.8 27B measured |
| LMArena Text: English | Not measured | 1448 | Only Qwen3.8 27B measured |
| LMArena Text: non-English | Not measured | 1425 | Only Qwen3.8 27B measured |
| LMArena Text: Chinese | Not measured | 1491 | Only Qwen3.8 27B measured |
| LMArena Text: German | Not measured | 1439 | Only Qwen3.8 27B measured |
| LMArena Text: Japanese | Not measured | 1389 | Only Qwen3.8 27B measured |
| LMArena Text: Korean | Not measured | 1400 | Only Qwen3.8 27B measured |
| LMArena Text: French | Not measured | 1465 | Only Qwen3.8 27B measured |
| LMArena Text: Spanish | Not measured | 1445 | Only Qwen3.8 27B measured |
| LMArena Text: Russian | Not measured | 1411 | Only Qwen3.8 27B measured |
| LMArena Text: Polish | Not measured | 1448 | Only Qwen3.8 27B measured |
| LMArena Text: multi-turn | Not measured | 1439 | Only Qwen3.8 27B measured |
| LMArena Text: longer queries | Not measured | 1446 | Only Qwen3.8 27B measured |
| LMArena Text: writing and language | Not measured | 1401 | Only Qwen3.8 27B measured |
| LMArena Text: entertainment and media | Not measured | 1390 | Only Qwen3.8 27B measured |
| LMArena Vision: English | Not measured | 1277 | Only Qwen3.8 27B measured |
| LMArena Vision: Chinese | Not measured | 1326 | Only Qwen3.8 27B measured |
| LMArena Vision: reading text | Not measured | 1282 | Only Qwen3.8 27B measured |
| LMArena Vision: humor | Not measured | 1238 | Only Qwen3.8 27B measured |
| LMArena Vision: creative writing | Not measured | 1240 | Only Qwen3.8 27B measured |
| Neither model has a result on the other 18 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 5.4 | Qwen3.8 27B | Leader |
|---|---|---|---|
| Neither model has a result on 5 boards here | |||
What each workload costs
Three fixed token mixes at each model's listed price, so per-token rates become a bill.
Chat turn
1K input + 500 output tokens
Qwen3.8 27B costs less
Repository review
50K input + 3K output tokens
Qwen3.8 27B costs less
Agent loop
200K input + 10K output tokens
Qwen3.8 27B costs less
Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.
Specification differences
The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.
| Specification | Z.ai GLM 5.4 | Qwen3.8 27B |
|---|---|---|
| Maker | Z.ai | Qwen |
| Weights | Open weights | Open weights |
| Released | December 2, 2026 | August 14, 2026 |
| Context window | 1.05M | 1.02M |
| Input $/Mtok | $1.40 | $0.425 |
| Output $/Mtok | $4.40 | $2.55 |
| Coding index | 72.7 | 69.7 |
| Independent measurements behind it | 2 | 4 |
| Cost per solved task | Not computable | $1.26 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 5.4 better than Qwen3.8 27B for coding?
Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 69.7 for Qwen3.8 27B, though on 2 benchmarks against 4. Pick Qwen3.8 27B for output tokens 1.7x cheaper ($2.55 vs $4.40 per million) and work measured by LiveBench data analysis, where it leads.
Which is cheaper, GLM 5.4 or Qwen3.8 27B?
GLM 5.4 costs $1.40 per million input tokens and $4.40 per million output tokens; Qwen3.8 27B costs $0.425 and $2.55. Cost per solved task is known for Qwen3.8 27B only.
Which has the bigger context window, GLM 5.4 or Qwen3.8 27B?
GLM 5.4, with 1.05M tokens against 1.02M.
How many benchmarks is the GLM 5.4 vs Qwen3.8 27B comparison based on?
10 benchmarks have a result for both models as of December 3, 2026. GLM 5.4's coding index rests on 2 independent benchmarks and Qwen3.8 27B's on 4. Where only one model has a result, the page says so instead of naming a winner.