Enter opens the highlighted result. Esc closes.

Gemma 3 4B vs GLM 4.7 Flash

Updated October 21, 2026. 31 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

Gemma 3 4BGoogle
Coding
No data
Overall
4.8
Output $/M
$0.075
0
GLM 4.7 FlashZ.ai
Coding
No data
Overall
14.9
Output $/M
$0.40
31
vs boards won of 31 shared

Decision reading

Neither model has a coding score yet, so the two cannot be ranked on coding.

Gemma 3 4B has the edge where output tokens cost 5.3x less, and where what matters is Terminal-Bench Hard (Artificial Analysis run) or LMArena Text: coding, where it leads.

Shared results
31
Gemma 3 4B only
8
GLM 4.7 Flash only
12
Like-for-like categories
7 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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 Flash not benchmarked.
Widest category
Agentic work, 93.9 points apart on average over 1 shared benchmark.
Widest single gap
τ²-Bench Telecom: Gemma 3 4B 5.0% against GLM 4.7 Flash 98.8%, 93.9 points apart on a 0 to 100 scale.
Output price
Gemma 3 4B $0.075 against GLM 4.7 Flash $0.40 per million output tokens, 5.3x apart.
Context window
Gemma 3 4B takes 131K tokens, GLM 4.7 Flash 200K.

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.7 FlashTies
Coding03
Intelligence01
Agentic work01
Reasoning06
Math03
Knowledge04
General013
All shared boards031
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
Coding benchmarks for Gemma 3 4B and GLM 4.7 Flash
BenchmarkGemma 3 4BGLM 4.7 FlashLeader
AA Coding Index2.7Not measuredOnly Gemma 3 4B measured
LiveCodeBench (Artificial Analysis run)11.2%Not measuredOnly Gemma 3 4B measured
Terminal-Bench Hard (Artificial Analysis run)0.8%22.0%GLM 4.7 Flash
LMArena Text: coding12301382GLM 4.7 Flash
LMArena Text: software and IT12691389GLM 4.7 Flash
Neither model has a result on the other 33 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Gemma 3 4B and GLM 4.7 Flash
BenchmarkGemma 3 4BGLM 4.7 FlashLeader
AA Intelligence Index4.814.9GLM 4.7 Flash
Epoch Capabilities Index115.9Not measuredOnly Gemma 3 4B measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for Gemma 3 4B and GLM 4.7 Flash
BenchmarkGemma 3 4BGLM 4.7 FlashLeader
τ²-Bench Telecom5.0%98.8%GLM 4.7 Flash
Neither model has a result on the other 38 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index06
Reasoning benchmarks for Gemma 3 4B and GLM 4.7 Flash
BenchmarkGemma 3 4BGLM 4.7 FlashLeader
GPQA Diamond (Artificial Analysis run)29.1%58.1%GLM 4.7 Flash
Humanity's Last Exam (Artificial Analysis run)5.3%7.6%GLM 4.7 Flash
GPQA Diamond (Epoch AI run)23.2%60.5%GLM 4.7 Flash
LMArena Text: hard prompts12531356GLM 4.7 Flash
LMArena Text: expert12231357GLM 4.7 Flash
LMArena Text: hard prompts in English12531369GLM 4.7 Flash
Neither model has a result on the other 15 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index03
Math benchmarks for Gemma 3 4B and GLM 4.7 Flash
BenchmarkGemma 3 4BGLM 4.7 FlashLeader
AA Math Index12.7Not measuredOnly Gemma 3 4B measured
AIME 2025 (Artificial Analysis run)12.7%Not measuredOnly Gemma 3 4B measured
OTIS Mock AIME7.5%58.3%GLM 4.7 Flash
LMArena Text: math12391355GLM 4.7 Flash
LMArena Text: mathematical work12561369GLM 4.7 Flash
Neither model has a result on the other 8 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index04
Knowledge benchmarks for Gemma 3 4B and GLM 4.7 Flash
BenchmarkGemma 3 4BGLM 4.7 FlashLeader
MMLU Pro (Artificial Analysis run)41.7%Not measuredOnly Gemma 3 4B measured
LMArena Text: science13061358GLM 4.7 Flash
LMArena Text: medicine and healthcare13421343GLM 4.7 Flash
LMArena Text: legal and government13271357GLM 4.7 Flash
LMArena Text: business and finance13111343GLM 4.7 Flash
Neither model has a result on the other 12 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
Web design benchmarks for Gemma 3 4B and GLM 4.7 Flash
BenchmarkGemma 3 4BGLM 4.7 FlashLeader
Design Arena: websitesNot measured1194Only GLM 4.7 Flash measured
Design Arena: UI componentsNot measured1208Only GLM 4.7 Flash measured
Design Arena: game devNot measured1135Only GLM 4.7 Flash measured
Design Arena: data vizNot measured1123Only GLM 4.7 Flash measured
Design Arena: 3DNot measured1121Only GLM 4.7 Flash measured
Design Arena: all code categoriesNot measured1178Only GLM 4.7 Flash measured
Design Arena: SVGNot measured1038Only GLM 4.7 Flash measured
Neither model has a result on the other 2 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index013
General benchmarks for Gemma 3 4B and GLM 4.7 Flash
BenchmarkGemma 3 4BGLM 4.7 FlashLeader
IFBench28.3%60.8%GLM 4.7 Flash
Long context reasoning (AA-LCR)6.7%41.7%GLM 4.7 Flash
DTBench50.9%Not measuredOnly Gemma 3 4B measured
LMCA2.8%Not measuredOnly Gemma 3 4B measured
LMArena Text12911351GLM 4.7 Flash
LMArena Text: instruction following12391327GLM 4.7 Flash
LMArena Text: creative writing12701296GLM 4.7 Flash
LMArena Text: English13001373GLM 4.7 Flash
LMArena Text: non-English12731330GLM 4.7 Flash
LMArena Text: ChineseNot measured1403Only GLM 4.7 Flash measured
LMArena Text: German12811336GLM 4.7 Flash
LMArena Text: KoreanNot measured1283Only GLM 4.7 Flash measured
LMArena Text: FrenchNot measured1332Only GLM 4.7 Flash measured
LMArena Text: SpanishNot measured1350Only GLM 4.7 Flash measured
LMArena Text: Russian12941333GLM 4.7 Flash
LMArena Text: PolishNot measured1291Only GLM 4.7 Flash measured
LMArena Text: multi-turn12551342GLM 4.7 Flash
LMArena Text: longer queries12731345GLM 4.7 Flash
LMArena Text: writing and language12881320GLM 4.7 Flash
LMArena Text: entertainment and media12331304GLM 4.7 Flash
Neither model has a result on the other 26 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 Flash
BenchmarkGemma 3 4BGLM 4.7 FlashLeader
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 Flash$0.0003Fits 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 Flash$0.0045Fits 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 Flash$0.017Exceeds 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 Flash
SpecificationGoogle Gemma 3 4BZ.ai GLM 4.7 Flash
MakerGoogleZ.ai
WeightsOpen weightsOpen weights
ReleasedMarch 13, 2025January 19, 2026
Context window131K200K
Input $/Mtok$0.045$0.0653
Output $/Mtok$0.075$0.40
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Neither model has a coding score yet, so the two cannot be ranked on coding. Gemma 3 4B has the edge where output tokens cost 5.3x less, and where what matters is Terminal-Bench Hard (Artificial Analysis run) or LMArena Text: coding, where it leads.

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

Gemma 3 4B costs $0.045 per million input tokens and $0.075 per million output tokens; GLM 4.7 Flash costs $0.0653 and $0.40. Cost per solved task is known for neither of them.

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

GLM 4.7 Flash, with 200K tokens against 131K.

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

31 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.7 Flash's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next