Gemma 3 4B vs GLM 4.5
GLM 4.5 leads Gemma 3 4B on the Artificial Analysis Intelligence Index, 12.8 to 4.8, and Gemma 3 4B costs 29.3x less per output token ($0.075 vs $2.20 per million). Updated October 21, 2026; 34 benchmarks have a result for both.
Gemma 3 4B or GLM 4.5: which to pick
Neither model has a coding score yet, so the two cannot be ranked on coding.
Pick Gemma 3 4B for output tokens 29.3x cheaper ($0.075 vs $2.20 per million) and work measured by LiveCodeBench (Artificial Analysis run) or Terminal-Bench Hard (Artificial Analysis run), where it leads.
- Shared results
- 34
- Gemma 3 4B only
- 8
- GLM 4.5 only
- 27
- Like-for-like categories
- 7 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
No call
Neither has a coding score yet.
One side not measured
Intelligence
AA Intelligence Index
GLM 4.5
GLM 4.5 leads, 12.8 against 4.8.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only GLM 4.5 has a GPQA Diamond result, 72.2%.
Directional only
Math
AIME
No call
Only GLM 4.5 has a AIME result, 86.7%.
Directional only
Knowledge
MMLU Pro
No call
Only GLM 4.5 has a MMLU Pro result, 81.2%.
Directional only
Web design
Design Arena: websites
No call
Only GLM 4.5 has a Design Arena: websites result, 1170.
Directional only
Long documents
Listed context window
No call
Both take 131K tokens.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 3 4B
Gemma 3 4B $0.0001, GLM 4.5 $0.0017 per turn.
List prices
At a glance
- Coding index
- Gemma 3 4B not benchmarked, GLM 4.5 not benchmarked.
- Widest category
- Math, 45.6 points apart on average over 4 shared benchmarks.
- Widest single gap
- LiveCodeBench (Artificial Analysis run): Gemma 3 4B 11.2% against GLM 4.5 73.8%, 62.6 points apart on a 0 to 100 scale.
- Output price
- Gemma 3 4B $0.075 against GLM 4.5 $2.20 per million output tokens, 29.3x apart.
- Context window
- Both take 131K tokens.
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 | Gemma 3 4B | Bars | GLM 4.5 | Ties |
|---|---|---|---|---|
| Coding | 0 | 4 | ||
| Intelligence | 0 | 1 | ||
| Agentic work | 0 | 1 | ||
| Reasoning | 0 | 6 | ||
| Math | 0 | 4 | ||
| Knowledge | 0 | 5 | ||
| General | 0 | 13 | ||
| All shared boards | 0 | 34 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index04
| Benchmark | Gemma 3 4B | GLM 4.5 | Leader |
|---|---|---|---|
| SWE-bench Verified | Not measured | 64.2% | Only GLM 4.5 measured |
| AA Coding Index | 2.7 | Not measured | Only Gemma 3 4B measured |
| LiveCodeBench (Vals AI) | Not measured | 67.5% | Only GLM 4.5 measured |
| LiveCodeBench (Artificial Analysis run) | 11.2% | 73.8% | GLM 4.5 |
| Terminal-Bench Hard (Artificial Analysis run) | 0.8% | 22.0% | GLM 4.5 |
| WeirdML | Not measured | 40.6% | Only GLM 4.5 measured |
| ALE-Bench | Not measured | 344.8 | Only GLM 4.5 measured |
| LMArena Text: coding | 1230 | 1434 | GLM 4.5 |
| LMArena Text: software and IT | 1269 | 1440 | GLM 4.5 |
| SciCode | 0.0% | Not measured | Only Gemma 3 4B measured |
| Neither model has a result on the other 29 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Gemma 3 4B | GLM 4.5 | Leader |
|---|---|---|---|
| AA Intelligence Index | 4.8 | 12.8 | GLM 4.5 |
| Epoch Capabilities Index | 115.9 | Not measured | Only Gemma 3 4B measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Gemma 3 4B | GLM 4.5 | Leader |
|---|---|---|---|
| τ²-Bench Telecom | 5.0% | 43.0% | GLM 4.5 |
| Berkeley Function Calling Leaderboard (BFCL) | 19.6% | Not measured | Only Gemma 3 4B measured |
| Neither model has a result on the other 39 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index06
| Benchmark | Gemma 3 4B | GLM 4.5 | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 72.2% | Only GLM 4.5 measured |
| GPQA Diamond (Artificial Analysis run) | 29.1% | 78.2% | GLM 4.5 |
| Humanity's Last Exam (Artificial Analysis run) | 5.3% | 13.0% | GLM 4.5 |
| GPQA Diamond (Epoch AI run) | 23.2% | Not measured | Only Gemma 3 4B measured |
| LMArena Text: hard prompts | 1253 | 1429 | GLM 4.5 |
| LMArena Text: expert | 1223 | 1433 | GLM 4.5 |
| LMArena Text: hard prompts in English | 1253 | 1429 | GLM 4.5 |
| Kagi LLM Benchmark | 25.2% | 57.9% | GLM 4.5 |
| Neither model has a result on the other 14 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | Gemma 3 4B | GLM 4.5 | Leader |
|---|---|---|---|
| AIME | Not measured | 86.7% | Only GLM 4.5 measured |
| MATH 500 (Vals AI) | Not measured | 94.0% | Only GLM 4.5 measured |
| MGSM (Vals AI) | Not measured | 90.8% | Only GLM 4.5 measured |
| AA Math Index | 12.7 | 73.7 | GLM 4.5 |
| AIME 2025 (Artificial Analysis run) | 12.7% | 73.7% | GLM 4.5 |
| OTIS Mock AIME | 7.5% | Not measured | Only Gemma 3 4B measured |
| LMArena Text: math | 1239 | 1427 | GLM 4.5 |
| LMArena Text: mathematical work | 1256 | 1430 | GLM 4.5 |
| Neither model has a result on the other 5 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
| Benchmark | Gemma 3 4B | GLM 4.5 | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 81.2% | Only GLM 4.5 measured |
| LegalBench (Vals AI) | Not measured | 75.6% | Only GLM 4.5 measured |
| CorpFin (Vals AI) | Not measured | 61.0% | Only GLM 4.5 measured |
| TaxEval (Vals AI) | Not measured | 72.4% | Only GLM 4.5 measured |
| MedQA (Vals AI) | Not measured | 90.0% | Only GLM 4.5 measured |
| MMLU Pro (Artificial Analysis run) | 41.7% | 83.5% | GLM 4.5 |
| LMArena Text: science | 1306 | 1444 | GLM 4.5 |
| LMArena Text: medicine and healthcare | 1342 | 1455 | GLM 4.5 |
| LMArena Text: legal and government | 1327 | 1438 | GLM 4.5 |
| LMArena Text: business and finance | 1311 | 1420 | GLM 4.5 |
| Neither model has a result on the other 8 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
| Benchmark | Gemma 3 4B | GLM 4.5 | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1170 | Only GLM 4.5 measured |
| Design Arena: UI components | Not measured | 1144 | Only GLM 4.5 measured |
| Design Arena: game dev | Not measured | 1145 | Only GLM 4.5 measured |
| Design Arena: data viz | Not measured | 1159 | Only GLM 4.5 measured |
| Design Arena: 3D | Not measured | 1170 | Only GLM 4.5 measured |
| Design Arena: all code categories | Not measured | 1165 | Only GLM 4.5 measured |
| Design Arena: SVG | Not measured | 1096 | Only GLM 4.5 measured |
| Neither model has a result on the other 2 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index013
| Benchmark | Gemma 3 4B | GLM 4.5 | Leader |
|---|---|---|---|
| IFBench | 28.3% | 44.1% | GLM 4.5 |
| Long context reasoning (AA-LCR) | 6.7% | 52.7% | GLM 4.5 |
| DTBench | 50.9% | Not measured | Only Gemma 3 4B measured |
| LMCA | 2.8% | Not measured | Only Gemma 3 4B measured |
| Creative writing (Lech Mazur) | Not measured | 73.4% | Only GLM 4.5 measured |
| LMArena Text | 1291 | 1430 | GLM 4.5 |
| LMArena Text: instruction following | 1239 | 1404 | GLM 4.5 |
| LMArena Text: creative writing | 1270 | 1395 | GLM 4.5 |
| LMArena Text: English | 1300 | 1437 | GLM 4.5 |
| LMArena Text: non-English | 1273 | 1417 | GLM 4.5 |
| LMArena Text: Chinese | Not measured | 1465 | Only GLM 4.5 measured |
| LMArena Text: German | 1281 | 1407 | GLM 4.5 |
| LMArena Text: Japanese | Not measured | 1415 | Only GLM 4.5 measured |
| LMArena Text: Korean | Not measured | 1380 | Only GLM 4.5 measured |
| LMArena Text: French | Not measured | 1418 | Only GLM 4.5 measured |
| LMArena Text: Spanish | Not measured | 1454 | Only GLM 4.5 measured |
| LMArena Text: Russian | 1294 | 1413 | GLM 4.5 |
| LMArena Text: Polish | Not measured | 1422 | Only GLM 4.5 measured |
| LMArena Text: multi-turn | 1255 | 1415 | GLM 4.5 |
| LMArena Text: longer queries | 1273 | 1412 | GLM 4.5 |
| LMArena Text: writing and language | 1288 | 1403 | GLM 4.5 |
| LMArena Text: entertainment and media | 1233 | 1404 | GLM 4.5 |
| Neither model has a result on the other 24 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemma 3 4B | GLM 4.5 | 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
Gemma 3 4B costs less
Repository review
50K input + 3K output tokens
Gemma 3 4B costs less
Agent loop
200K input + 10K output tokens
Gemma 3 4B 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 | Google Gemma 3 4B | Z.ai GLM 4.5 |
|---|---|---|
| Maker | Z.ai | |
| Weights | Open weights | Open weights |
| Released | March 13, 2025 | July 25, 2025 |
| Context window | 131K | 131K |
| Input $/Mtok | $0.045 | $0.60 |
| Output $/Mtok | $0.075 | $2.20 |
| Coding index | Not benchmarked | Not benchmarked |
| Independent measurements behind it | 0 | 0 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemma 3 4B better than GLM 4.5 for coding?
Neither model has a coding score yet, so the two cannot be ranked on coding. Pick Gemma 3 4B for output tokens 29.3x cheaper ($0.075 vs $2.20 per million) and work measured by LiveCodeBench (Artificial Analysis run) or Terminal-Bench Hard (Artificial Analysis run), where it leads.
Which is cheaper, Gemma 3 4B or GLM 4.5?
Gemma 3 4B costs $0.045 per million input tokens and $0.075 per million output tokens; GLM 4.5 costs $0.60 and $2.20. Cost per solved task is known for neither of them.
Which has the bigger context window, Gemma 3 4B or GLM 4.5?
Neither: both take 131K tokens.
How many benchmarks is the Gemma 3 4B vs GLM 4.5 comparison based on?
34 benchmarks have a result for both models as of October 21, 2026. Gemma 3 4B's coding index rests on 0 independent benchmarks and GLM 4.5's on 0. Where only one model has a result, the page says so instead of naming a winner.