Enter opens the highlighted result. Esc closes.

Gemma 3 4B vs GLM 4.7

GLM 4.7 leads Gemma 3 4B on the Artificial Analysis Intelligence Index, 22.2 to 4.8, and Gemma 3 4B costs 29.3x less per output token ($0.075 vs $2.20 per million). Updated October 22, 2026; 37 benchmarks have a result for both.

Gemma 3 4BGoogle
Coding
No data
Overall
22.6
Output $/M
$0.075
0
GLM 4.7Z.ai
Coding
55.1
Overall
56.9
Output $/M
$2.20
37
vs boards won of 37 shared

Gemma 3 4B or GLM 4.7: which to pick

Only GLM 4.7 has a coding score, 55.1 on the Vibe Coding Index; Gemma 3 4B has none, 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).

Shared results
37
Gemma 3 4B only
5
GLM 4.7 only
44
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.

At a glance

Coding index
Gemma 3 4B not benchmarked, GLM 4.7 55.1 from 2 benchmarks.
Widest category
Agentic work, 90.9 points apart on average over 1 shared benchmark.
Widest single gap
τ²-Bench Telecom: Gemma 3 4B 5.0% against GLM 4.7 95.9%, 90.9 points apart on a 0 to 100 scale.
Output price
Gemma 3 4B $0.075 against GLM 4.7 $2.20 per million output tokens, 29.3x apart.
Context window
Gemma 3 4B takes 131K tokens, GLM 4.7 205K.

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
CategoryGemma 3 4BBarsGLM 4.7Ties
Coding05
Intelligence02
Agentic work01
Reasoning06
Math05
Knowledge05
General013
All shared boards037
CodingLike-for-likeSix of these boards feed the Vibe Coding Index05
Coding benchmarks for Gemma 3 4B and GLM 4.7
BenchmarkGemma 3 4BGLM 4.7Leader
LMArena WebDevNot measured1435Only GLM 4.7 measured
AA Coding Index2.745.3GLM 4.7
LiveCodeBench (Vals AI)Not measured82.2%Only GLM 4.7 measured
SWE-bench Verified (Vals AI)Not measured69.4%Only GLM 4.7 measured
LiveCodeBench (Artificial Analysis run)11.2%89.4%GLM 4.7
Terminal-Bench Hard (Artificial Analysis run)0.8%31.8%GLM 4.7
Terminal-BenchNot measured33.4%Only GLM 4.7 measured
ALE-BenchNot measured399.5Only GLM 4.7 measured
LMArena Text: coding12301454GLM 4.7
LMArena Text: software and IT12691453GLM 4.7
LMArena WebDev: ReactNot measured1420Only GLM 4.7 measured
LMArena WebDev: HTMLNot measured1447Only GLM 4.7 measured
SciCode0.0%Not measuredOnly Gemma 3 4B measured
Neither model has a result on the other 26 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Gemma 3 4B and GLM 4.7
BenchmarkGemma 3 4BGLM 4.7Leader
AA Intelligence Index4.822.2GLM 4.7
Epoch Capabilities Index115.9143.6GLM 4.7
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for Gemma 3 4B and GLM 4.7
BenchmarkGemma 3 4BGLM 4.7Leader
Design Arena: agents building full-stack appsNot measured1050Only GLM 4.7 measured
Design Arena: agents building mobile appsNot measured1105Only GLM 4.7 measured
Design Arena: agents building Android appsNot measured1112Only GLM 4.7 measured
Design Arena: agents building Godot gamesNot measured1058Only GLM 4.7 measured
τ²-Bench Telecom5.0%95.9%GLM 4.7
Vending-Bench 2Not measured$2,377Only GLM 4.7 measured
Berkeley Function Calling Leaderboard (BFCL)19.6%Not measuredOnly Gemma 3 4B measured
BrowseComp-PlusNot measured64.7%Only GLM 4.7 measured
Neither model has a result on the other 33 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index06
Reasoning benchmarks for Gemma 3 4B and GLM 4.7
BenchmarkGemma 3 4BGLM 4.7Leader
GPQA DiamondNot measured80.0%Only GLM 4.7 measured
GPQA Diamond (Artificial Analysis run)29.1%85.9%GLM 4.7
Humanity's Last Exam (Artificial Analysis run)5.3%27.4%GLM 4.7
GPQA Diamond (Epoch AI run)23.2%83.3%GLM 4.7
SimpleBenchNot measured47.7%Only GLM 4.7 measured
Chess puzzlesNot measured21.0%Only GLM 4.7 measured
LMArena Text: hard prompts12531443GLM 4.7
LMArena Text: expert12231424GLM 4.7
LMArena Text: hard prompts in English12531452GLM 4.7
Kagi LLM Benchmark25.2%Not measuredOnly Gemma 3 4B measured
Neither model has a result on the other 12 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index05
Math benchmarks for Gemma 3 4B and GLM 4.7
BenchmarkGemma 3 4BGLM 4.7Leader
AIMENot measured93.3%Only GLM 4.7 measured
MGSM (Vals AI)Not measured88.2%Only GLM 4.7 measured
AA Math Index12.795.0GLM 4.7
AIME 2025 (Artificial Analysis run)12.7%95.0%GLM 4.7
OTIS Mock AIME7.5%83.3%GLM 4.7
ProofBenchNot measured6.0%Only GLM 4.7 measured
LMArena Text: math12391424GLM 4.7
LMArena Text: mathematical work12561411GLM 4.7
Neither model has a result on the other 5 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
Knowledge benchmarks for Gemma 3 4B and GLM 4.7
BenchmarkGemma 3 4BGLM 4.7Leader
MMLU ProNot measured82.7%Only GLM 4.7 measured
LegalBench (Vals AI)Not measured83.4%Only GLM 4.7 measured
CaseLaw (Vals AI)Not measured54.9%Only GLM 4.7 measured
CorpFin (Vals AI)Not measured46.4%Only GLM 4.7 measured
TaxEval (Vals AI)Not measured68.8%Only GLM 4.7 measured
MedQA (Vals AI)Not measured93.7%Only GLM 4.7 measured
MedCode (Vals AI)Not measured32.8%Only GLM 4.7 measured
MMLU Pro (Artificial Analysis run)41.7%85.6%GLM 4.7
SimpleQA VerifiedNot measured32.2%Only GLM 4.7 measured
LMArena Text: science13061457GLM 4.7
LMArena Text: medicine and healthcare13421469GLM 4.7
LMArena Text: legal and government13271444GLM 4.7
LMArena Text: business and finance13111429GLM 4.7
Neither model has a result on the other 5 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for Gemma 3 4B and GLM 4.7
BenchmarkGemma 3 4BGLM 4.7Leader
Design Arena: websitesNot measured1225Only GLM 4.7 measured
Design Arena: UI componentsNot measured1196Only GLM 4.7 measured
Design Arena: game devNot measured1188Only GLM 4.7 measured
Design Arena: data vizNot measured1195Only GLM 4.7 measured
Design Arena: 3DNot measured1190Only GLM 4.7 measured
Design Arena: all code categoriesNot measured1216Only GLM 4.7 measured
Design Arena: SVGNot measured1142Only GLM 4.7 measured
Design Arena: ASCII artNot measured1165Only GLM 4.7 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index013
General benchmarks for Gemma 3 4B and GLM 4.7
BenchmarkGemma 3 4BGLM 4.7Leader
MedScribe (Vals AI)Not measured68.6%Only GLM 4.7 measured
IFBench28.3%67.9%GLM 4.7
Long context reasoning (AA-LCR)6.7%71.0%GLM 4.7
DTBench50.9%Not measuredOnly Gemma 3 4B measured
LMCA2.8%Not measuredOnly Gemma 3 4B measured
CL-benchNot measured15.9%Only GLM 4.7 measured
CL-bench LifeNot measured10.9%Only GLM 4.7 measured
LMArena Text12911435GLM 4.7
LMArena Text: instruction following12391412GLM 4.7
LMArena Text: creative writing12701401GLM 4.7
LMArena Text: English13001453GLM 4.7
LMArena Text: non-English12731417GLM 4.7
LMArena Text: ChineseNot measured1495Only GLM 4.7 measured
LMArena Text: German12811426GLM 4.7
LMArena Text: JapaneseNot measured1439Only GLM 4.7 measured
LMArena Text: KoreanNot measured1399Only GLM 4.7 measured
LMArena Text: FrenchNot measured1432Only GLM 4.7 measured
LMArena Text: SpanishNot measured1434Only GLM 4.7 measured
LMArena Text: Russian12941423GLM 4.7
LMArena Text: PolishNot measured1435Only GLM 4.7 measured
LMArena Text: multi-turn12551446GLM 4.7
LMArena Text: longer queries12731432GLM 4.7
LMArena Text: writing and language12881411GLM 4.7
LMArena Text: entertainment and media12331400GLM 4.7
Neither model has a result on the other 22 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemma 3 4B and GLM 4.7
BenchmarkGemma 3 4BGLM 4.7Leader
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$0.0001Fits in one request
GLM 4.7$0.0017Fits in one request

Gemma 3 4B costs less

Repository review

50K input + 3K output tokens

Gemma 3 4B$0.0025Fits in one request
GLM 4.7$0.037Fits in one request

Gemma 3 4B costs less

Agent loop

200K input + 10K output tokens

Gemma 3 4B$0.0097Exceeds the context window
GLM 4.7$0.142Exceeds the context window

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.

Specifications of Gemma 3 4B and GLM 4.7
SpecificationGoogle Gemma 3 4BZ.ai GLM 4.7
MakerGoogleZ.ai
WeightsOpen weightsOpen weights
ReleasedMarch 13, 2025December 22, 2025
Context window131K205K
Input $/Mtok$0.045$0.60
Output $/Mtok$0.075$2.20
Coding indexNot benchmarked55.1
Independent measurements behind it02
Cost per solved taskNot computable$0.29
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 3 4B better than GLM 4.7 for coding?

Only GLM 4.7 has a coding score, 55.1 on the Vibe Coding Index; Gemma 3 4B has none, 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).

Which is cheaper, Gemma 3 4B or GLM 4.7?

Gemma 3 4B costs $0.045 per million input tokens and $0.075 per million output tokens; GLM 4.7 costs $0.60 and $2.20. Cost per solved task is known for GLM 4.7 only.

Which has the bigger context window, Gemma 3 4B or GLM 4.7?

GLM 4.7, with 205K tokens against 131K.

How many benchmarks is the Gemma 3 4B vs GLM 4.7 comparison based on?

37 benchmarks have a result for both models as of October 22, 2026. Gemma 3 4B's coding index rests on 0 independent benchmarks and GLM 4.7's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next