Enter opens the highlighted result. Esc closes.

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.4Z.ai
Coding
72.7
Overall
No data
Output $/M
$4.40
9
Qwen3.8 27BQwen
Coding
69.7
Overall
51.7
Output $/M
$2.55
1
vs boards won of 10 shared

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.

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.

Boards won, where both have a result
CategoryGLM 5.4BarsQwen3.8 27BTies
Coding40
Agentic work30
Reasoning10
Web design10
General01
All shared boards91
CodingLike-for-likeSix of these boards feed the Vibe Coding Index40
Coding benchmarks for GLM 5.4 and Qwen3.8 27B
BenchmarkGLM 5.4Qwen3.8 27BLeader
LiveBench coding74.5%69.3%GLM 5.4
LMArena WebDev16901590GLM 5.4
LiveCodeBench (Vals AI)Not measured84.0%Only Qwen3.8 27B measured
SWE-bench Verified (Vals AI)Not measured86.0%Only Qwen3.8 27B measured
Vibe Code Bench (Vals AI)Not measured64.8%Only Qwen3.8 27B measured
Code migration (Vals AI)Not measured14.2%Only Qwen3.8 27B measured
ProgramBench (Vals AI)Not measured0.0%Only Qwen3.8 27B measured
IOI (Vals AI)Not measured39.1%Only Qwen3.8 27B measured
Terminal-Bench 2.1 (Vals AI)Not measured58.4%Only Qwen3.8 27B measured
SkillsBench (Vals AI)Not measured38.1%Only Qwen3.8 27B measured
CyberBench (Vals AI)Not measured67.8%Only Qwen3.8 27B measured
SciCodeNot measured46.6%Only Qwen3.8 27B measured
Terminal-Bench 4.0 (Artificial Analysis run)Not measured5.6%Only Qwen3.8 27B measured
FrontierCode 2.0Not measured14.9%Only Qwen3.8 27B measured
LMArena Text: codingNot measured1481Only Qwen3.8 27B measured
LMArena Text: software and ITNot measured1474Only Qwen3.8 27B measured
LMArena WebDev: React17391595GLM 5.4
LMArena WebDev: HTML16751572GLM 5.4
LMArena WebDev: from an imageNot measured1574Only Qwen3.8 27B measured
GameBench 2Not measured43.4Only 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
Intelligence benchmarks for GLM 5.4 and Qwen3.8 27B
BenchmarkGLM 5.4Qwen3.8 27BLeader
AA Intelligence IndexNot measured20.0Only Qwen3.8 27B measured
Epoch Capabilities IndexNot measured152.6Only Qwen3.8 27B measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
Agentic work benchmarks for GLM 5.4 and Qwen3.8 27B
BenchmarkGLM 5.4Qwen3.8 27BLeader
LiveBench research86.0%61.3%GLM 5.4
LiveBench browser64.5%24.2%GLM 5.4
LiveBench long agentic41.3%15.9%GLM 5.4
Finance Agent (Vals AI)Not measured48.5%Only Qwen3.8 27B measured
Tax Agent Bench (Vals AI)Not measured30.9%Only Qwen3.8 27B measured
Legal Research Bench (Vals AI)Not measured36.1%Only Qwen3.8 27B measured
Excel Modeling Benchmark (Vals AI)Not measured59.7%Only Qwen3.8 27B measured
Terminal-Bench-Science (Vals AI)Not measured0.0%Only Qwen3.8 27B measured
APEX-AgentsNot measured47.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
Reasoning benchmarks for GLM 5.4 and Qwen3.8 27B
BenchmarkGLM 5.4Qwen3.8 27BLeader
GPQA DiamondNot measured88.9%Only Qwen3.8 27B measured
LiveBench reasoning85.2%80.0%GLM 5.4
MMMU Pro (Vals AI)Not measured83.9%Only Qwen3.8 27B measured
GPQA Diamond (Artificial Analysis run)Not measured90.5%Only Qwen3.8 27B measured
Humanity's Last Exam (Artificial Analysis run)Not measured33.9%Only Qwen3.8 27B measured
HLE-Diamond (Artificial Analysis run)Not measured15.3%Only Qwen3.8 27B measured
CritPt v2, hard subset (Artificial Analysis run)Not measured4.0%Only Qwen3.8 27B measured
ARC-AGINot measured87.5%Only Qwen3.8 27B measured
ARC-AGI-2Not measured42.4%Only Qwen3.8 27B measured
SimpleBenchNot measured60.2%Only Qwen3.8 27B measured
LMArena Text: hard promptsNot measured1458Only Qwen3.8 27B measured
LMArena Text: expertNot measured1478Only Qwen3.8 27B measured
LMArena Text: hard prompts in EnglishNot measured1464Only Qwen3.8 27B measured
LMArena Vision: diagramsNot measured1282Only Qwen3.8 27B measured
LMArena Vision: homeworkNot measured1290Only 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
Math benchmarks for GLM 5.4 and Qwen3.8 27B
BenchmarkGLM 5.4Qwen3.8 27BLeader
ProofBenchNot measured16.0%Only Qwen3.8 27B measured
LMArena Text: mathNot measured1458Only Qwen3.8 27B measured
LMArena Text: mathematical workNot measured1461Only 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
Knowledge benchmarks for GLM 5.4 and Qwen3.8 27B
BenchmarkGLM 5.4Qwen3.8 27BLeader
MMLU ProNot measured84.3%Only Qwen3.8 27B measured
LegalBench (Vals AI)Not measured82.4%Only Qwen3.8 27B measured
TaxEval (Vals AI)Not measured70.8%Only Qwen3.8 27B measured
MortgageTax (Vals AI)Not measured64.9%Only Qwen3.8 27B measured
MedCode (Vals AI)Not measured28.7%Only Qwen3.8 27B measured
AA-OmniscienceNot measured-6.4Only Qwen3.8 27B measured
GeoBenchNot measured38.0%Only Qwen3.8 27B measured
LMArena Text: scienceNot measured1465Only Qwen3.8 27B measured
LMArena Text: medicine and healthcareNot measured1439Only Qwen3.8 27B measured
LMArena Text: legal and governmentNot measured1447Only Qwen3.8 27B measured
LMArena Text: business and financeNot measured1441Only 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
Web design benchmarks for GLM 5.4 and Qwen3.8 27B
BenchmarkGLM 5.4Qwen3.8 27BLeader
LiveBench design74.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
General benchmarks for GLM 5.4 and Qwen3.8 27B
BenchmarkGLM 5.4Qwen3.8 27BLeader
LiveBench data analysis72.2%76.6%Qwen3.8 27B
MedScribe (Vals AI)Not measured83.8%Only Qwen3.8 27B measured
Long context reasoning (AA-LCR)Not measured82.0%Only Qwen3.8 27B measured
GDPval-AANot measured1427Only Qwen3.8 27B measured
DTBenchNot measured88.0%Only Qwen3.8 27B measured
LMCANot measured41.4%Only Qwen3.8 27B measured
Surface Evolver BenchNot measured45.0%Only Qwen3.8 27B measured
Furniture assemblyNot measured15.0%Only Qwen3.8 27B measured
LMArena TextNot measured1438Only Qwen3.8 27B measured
LMArena Text: instruction followingNot measured1434Only Qwen3.8 27B measured
LMArena Text: creative writingNot measured1379Only Qwen3.8 27B measured
LMArena VisionNot measured1274Only Qwen3.8 27B measured
LMArena Text: EnglishNot measured1448Only Qwen3.8 27B measured
LMArena Text: non-EnglishNot measured1425Only Qwen3.8 27B measured
LMArena Text: ChineseNot measured1491Only Qwen3.8 27B measured
LMArena Text: GermanNot measured1439Only Qwen3.8 27B measured
LMArena Text: JapaneseNot measured1389Only Qwen3.8 27B measured
LMArena Text: KoreanNot measured1400Only Qwen3.8 27B measured
LMArena Text: FrenchNot measured1465Only Qwen3.8 27B measured
LMArena Text: SpanishNot measured1445Only Qwen3.8 27B measured
LMArena Text: RussianNot measured1411Only Qwen3.8 27B measured
LMArena Text: PolishNot measured1448Only Qwen3.8 27B measured
LMArena Text: multi-turnNot measured1439Only Qwen3.8 27B measured
LMArena Text: longer queriesNot measured1446Only Qwen3.8 27B measured
LMArena Text: writing and languageNot measured1401Only Qwen3.8 27B measured
LMArena Text: entertainment and mediaNot measured1390Only Qwen3.8 27B measured
LMArena Vision: EnglishNot measured1277Only Qwen3.8 27B measured
LMArena Vision: ChineseNot measured1326Only Qwen3.8 27B measured
LMArena Vision: reading textNot measured1282Only Qwen3.8 27B measured
LMArena Vision: humorNot measured1238Only Qwen3.8 27B measured
LMArena Vision: creative writingNot measured1240Only 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
Image generation benchmarks for GLM 5.4 and Qwen3.8 27B
BenchmarkGLM 5.4Qwen3.8 27BLeader
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

GLM 5.4$0.0036Fits in one request
Qwen3.8 27B$0.0017Fits in one request

Qwen3.8 27B costs less

Repository review

50K input + 3K output tokens

GLM 5.4$0.083Fits in one request
Qwen3.8 27B$0.029Fits in one request

Qwen3.8 27B costs less

Agent loop

200K input + 10K output tokens

GLM 5.4$0.324Fits in one request
Qwen3.8 27B$0.111Fits in one request

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.

Specifications of GLM 5.4 and Qwen3.8 27B
SpecificationZ.ai GLM 5.4Qwen3.8 27B
MakerZ.aiQwen
WeightsOpen weightsOpen weights
ReleasedDecember 2, 2026August 14, 2026
Context window1.05M1.02M
Input $/Mtok$1.40$0.425
Output $/Mtok$4.40$2.55
Coding index72.769.7
Independent measurements behind it24
Cost per solved taskNot computable$1.26
SourceOpenRouter listingOpenRouter 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.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/glm-5-4-vs-qwen3-8-27b" title="GLM 5.4 vs Qwen3.8 27B, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/glm-5-4-vs-qwen3-8-27b">LLMBenchmark.ai, GLM 5.4 vs Qwen3.8 27B</a></p>