Enter opens the highlighted result. Esc closes.

Gemma 3 12B vs Grok 4.7

Grok 4.7 leads Gemma 3 12B on the Artificial Analysis Intelligence Index, 46.4 to 3.8, and Gemma 3 12B costs 36.9x less per output token ($0.1625 vs $6.00 per million). Updated October 21, 2026; 31 benchmarks have a result for both.

Gemma 3 12BGoogle
Coding
No data
Overall
28.0
Output $/M
$0.1625
1
Grok 4.7xAI
Coding
66.7
Overall
66.6
Output $/M
$6.00
30
vs boards won of 31 shared

Gemma 3 12B or Grok 4.7: which to pick

Only Grok 4.7 has a coding score, 66.7 on the Vibe Coding Index; Gemma 3 12B has none, so the two cannot be ranked on coding.

Pick Gemma 3 12B for output tokens 36.9x cheaper ($0.1625 vs $6.00 per million) and work measured by LMArena Text: German, where it leads.

Shared results
31
Gemma 3 12B only
12
Grok 4.7 only
68
Like-for-like categories
6 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 12B not benchmarked, Grok 4.7 66.7 from 5 benchmarks.
Widest category
Intelligence, 40.6 points apart on average over 2 shared benchmarks.
Widest single gap
OTIS Mock AIME: Gemma 3 12B 16.7% against Grok 4.7 98.1%, 81.4 points apart on a 0 to 100 scale.
Output price
Gemma 3 12B $0.1625 against Grok 4.7 $6.00 per million output tokens, 36.9x apart.
Context window
Gemma 3 12B takes 131K tokens, Grok 4.7 500K.

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 12BBarsGrok 4.7Ties
Coding03
Intelligence02
Reasoning05
Math03
Knowledge04
General113
All shared boards130
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
Coding benchmarks for Gemma 3 12B and Grok 4.7
BenchmarkGemma 3 12BGrok 4.7Leader
LiveBench codingNot measured84.5%Only Grok 4.7 measured
LMArena WebDevNot measured1637Only Grok 4.7 measured
AA Coding Index5.8Not measuredOnly Gemma 3 12B measured
Terminal-Bench 4 (Vals AI)Not measured28.8%Only Grok 4.7 measured
Vibe Code Bench (Vals AI)Not measured86.2%Only Grok 4.7 measured
Code migration (Vals AI)Not measured44.8%Only Grok 4.7 measured
ProgramBench (Vals AI)Not measured0.5%Only Grok 4.7 measured
IOI (Vals AI)Not measured57.7%Only Grok 4.7 measured
Terminal-Bench 2.1 (Vals AI)Not measured73.4%Only Grok 4.7 measured
SWE-bench Multimodal (Vals AI)Not measured42.9%Only Grok 4.7 measured
CyberBench (Vals AI)Not measured69.5%Only Grok 4.7 measured
LiveCodeBench (Artificial Analysis run)13.7%Not measuredOnly Gemma 3 12B measured
SciCode16.4%57.8%Grok 4.7
Terminal-Bench Hard (Artificial Analysis run)0.8%Not measuredOnly Gemma 3 12B measured
FrontierCodeNot measured47.6%Only Grok 4.7 measured
FrontierSWENot measured29.5%Only Grok 4.7 measured
LMArena Text: coding12811432Grok 4.7
LMArena Text: software and IT13131421Grok 4.7
LMArena WebDev: ReactNot measured1663Only Grok 4.7 measured
LMArena WebDev: HTMLNot measured1627Only Grok 4.7 measured
LMArena WebDev: from an imageNot measured1586Only Grok 4.7 measured
SciCode0.0%Not measuredOnly Gemma 3 12B measured
Neither model has a result on the other 17 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Gemma 3 12B and Grok 4.7
BenchmarkGemma 3 12BGrok 4.7Leader
AA Intelligence Index3.846.4Grok 4.7
Epoch Capabilities Index123.5154.4Grok 4.7
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index18 boards, none shared
Agentic work benchmarks for Gemma 3 12B and Grok 4.7
BenchmarkGemma 3 12BGrok 4.7Leader
AA Agentic Index0.1Not measuredOnly Gemma 3 12B measured
LiveBench researchNot measured86.4%Only Grok 4.7 measured
LiveBench browserNot measured60.0%Only Grok 4.7 measured
LiveBench long agenticNot measured50.1%Only Grok 4.7 measured
SREBench (Vals AI)Not measured3.8%Only Grok 4.7 measured
Finance Agent (Vals AI)Not measured52.3%Only Grok 4.7 measured
Tax Agent Bench (Vals AI)Not measured34.2%Only Grok 4.7 measured
Legal Research Bench (Vals AI)Not measured47.1%Only Grok 4.7 measured
Harvey's Legal Agent Benchmark (Vals AI)Not measured18.3%Only Grok 4.7 measured
Excel Modeling Benchmark (Vals AI)Not measured67.0%Only Grok 4.7 measured
BioMysteryBench (Vals AI)Not measured69.3%Only Grok 4.7 measured
Terminal-Bench-Science (Vals AI)Not measured10.0%Only Grok 4.7 measured
Vals Science IndexNot measured34.8%Only Grok 4.7 measured
Robo-bench (Vals AI)Not measured0.2%Only Grok 4.7 measured
τ²-Bench Telecom10.8%Not measuredOnly Gemma 3 12B measured
APEX-AgentsNot measured54.6%Only Grok 4.7 measured
Vending-Bench 2Not measured$10,537Only Grok 4.7 measured
Berkeley Function Calling Leaderboard (BFCL)30.4%Not measuredOnly Gemma 3 12B measured
Neither model has a result on the other 23 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index05
Reasoning benchmarks for Gemma 3 12B and Grok 4.7
BenchmarkGemma 3 12BGrok 4.7Leader
LiveBench reasoningNot measured82.7%Only Grok 4.7 measured
MysteryMechanism (Vals AI)Not measured25.2%Only Grok 4.7 measured
GPQA Diamond (Artificial Analysis run)34.9%Not measuredOnly Gemma 3 12B measured
Humanity's Last Exam (Artificial Analysis run)4.2%43.1%Grok 4.7
GPQA Diamond (Epoch AI run)39.5%92.7%Grok 4.7
ARC-AGINot measured90.2%Only Grok 4.7 measured
ARC-AGI-2Not measured61.4%Only Grok 4.7 measured
Chess puzzlesNot measured41.0%Only Grok 4.7 measured
Mystery game puzzlesNot measured29.0%Only Grok 4.7 measured
LMArena Text: hard prompts13091415Grok 4.7
LMArena Text: expert12481439Grok 4.7
LMArena Text: hard prompts in English13181427Grok 4.7
LMArena Vision: diagramsNot measured1254Only Grok 4.7 measured
LMArena Vision: homeworkNot measured1309Only Grok 4.7 measured
Neither model has a result on the other 8 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index03
Math benchmarks for Gemma 3 12B and Grok 4.7
BenchmarkGemma 3 12BGrok 4.7Leader
AA Math Index18.3Not measuredOnly Gemma 3 12B measured
AIME 2025 (Artificial Analysis run)18.3%Not measuredOnly Gemma 3 12B measured
OTIS Mock AIME16.7%98.1%Grok 4.7
FrontierMath, tiers 1 to 3Not measured53.0%Only Grok 4.7 measured
FrontierMath, tier 4Not measured17.1%Only Grok 4.7 measured
ProofBenchNot measured26.0%Only Grok 4.7 measured
LMArena Text: math13071414Grok 4.7
LMArena Text: mathematical work13361435Grok 4.7
Neither model has a result on the other 5 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index04
Knowledge benchmarks for Gemma 3 12B and Grok 4.7
BenchmarkGemma 3 12BGrok 4.7Leader
LegalBench (Vals AI)Not measured84.4%Only Grok 4.7 measured
MedCode (Vals AI)Not measured49.5%Only Grok 4.7 measured
MMLU Pro (Artificial Analysis run)59.5%Not measuredOnly Gemma 3 12B measured
SimpleQA VerifiedNot measured56.0%Only Grok 4.7 measured
LMArena Text: science13661419Grok 4.7
LMArena Text: medicine and healthcare13341395Grok 4.7
LMArena Text: legal and government13811423Grok 4.7
LMArena Text: business and finance13761389Grok 4.7
Neither model has a result on the other 10 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
Web design benchmarks for Gemma 3 12B and Grok 4.7
BenchmarkGemma 3 12BGrok 4.7Leader
Design Arena: websitesNot measured1254Only Grok 4.7 measured
Design Arena: UI componentsNot measured1275Only Grok 4.7 measured
Design Arena: game devNot measured1313Only Grok 4.7 measured
Design Arena: data vizNot measured1235Only Grok 4.7 measured
Design Arena: 3DNot measured1270Only Grok 4.7 measured
Design Arena: all code categoriesNot measured1271Only Grok 4.7 measured
LiveBench designNot measured78.0%Only Grok 4.7 measured
Neither model has a result on the other 2 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index113
General benchmarks for Gemma 3 12B and Grok 4.7
BenchmarkGemma 3 12BGrok 4.7Leader
Vals IndexNot measured58.6%Only Grok 4.7 measured
LiveBench data analysisNot measured76.9%Only Grok 4.7 measured
Public Benefits Bench (Vals AI)Not measured65.6%Only Grok 4.7 measured
SAGE (Vals AI)Not measured40.8%Only Grok 4.7 measured
MedScribe (Vals AI)Not measured89.4%Only Grok 4.7 measured
IFBench36.7%Not measuredOnly Gemma 3 12B measured
Long context reasoning (AA-LCR)8.3%80.0%Grok 4.7
DTBench48.8%96.0%Grok 4.7
LMCA4.5%49.4%Grok 4.7
Furniture assemblyNot measured20.8%Only Grok 4.7 measured
LMArena Text13341399Grok 4.7
LMArena Text: instruction following12991406Grok 4.7
LMArena Text: creative writing13311381Grok 4.7
LMArena VisionNot measured1231Only Grok 4.7 measured
LMArena Text: English13491411Grok 4.7
LMArena Text: non-English13181386Grok 4.7
LMArena Text: ChineseNot measured1449Only Grok 4.7 measured
LMArena Text: German13701366Gemma 3 12B
LMArena Text: JapaneseNot measured1359Only Grok 4.7 measured
LMArena Text: KoreanNot measured1383Only Grok 4.7 measured
LMArena Text: FrenchNot measured1431Only Grok 4.7 measured
LMArena Text: SpanishNot measured1406Only Grok 4.7 measured
LMArena Text: Russian13351399Grok 4.7
LMArena Text: PolishNot measured1420Only Grok 4.7 measured
LMArena Text: multi-turn13341394Grok 4.7
LMArena Text: longer queries13171416Grok 4.7
LMArena Text: writing and language13071394Grok 4.7
LMArena Text: entertainment and media12971376Grok 4.7
LMArena Vision: EnglishNot measured1229Only Grok 4.7 measured
LMArena Vision: ChineseNot measured1250Only Grok 4.7 measured
LMArena Vision: reading textNot measured1241Only Grok 4.7 measured
LMArena Vision: creative writingNot measured1217Only Grok 4.7 measured
Neither model has a result on the other 14 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemma 3 12B and Grok 4.7
BenchmarkGemma 3 12BGrok 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 12B$0.0002Fits in one request
Grok 4.7$0.0050Fits in one request

Gemma 3 12B costs less

Repository review

50K input + 3K output tokens

Gemma 3 12B$0.0042Fits in one request
Grok 4.7$0.118Fits in one request

Gemma 3 12B costs less

Agent loop

200K input + 10K output tokens

Gemma 3 12B$0.017Exceeds the context window
Grok 4.7$0.460Fits in one request

Gemma 3 12B 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 12B and Grok 4.7
SpecificationGoogle Gemma 3 12BSpaceXAI Grok 4.7
MakerGooglexAI
WeightsOpen weightsNo public weights listed
ReleasedMarch 13, 2025September 21, 2026
Context window131K500K
Input $/Mtok$0.075$2.00
Output $/Mtok$0.1625$6.00
Coding indexNot benchmarked66.7
Independent measurements behind it05
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 3 12B better than Grok 4.7 for coding?

Only Grok 4.7 has a coding score, 66.7 on the Vibe Coding Index; Gemma 3 12B has none, so the two cannot be ranked on coding. Pick Gemma 3 12B for output tokens 36.9x cheaper ($0.1625 vs $6.00 per million) and work measured by LMArena Text: German, where it leads.

Which is cheaper, Gemma 3 12B or Grok 4.7?

Gemma 3 12B costs $0.075 per million input tokens and $0.1625 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for neither of them.

Which has the bigger context window, Gemma 3 12B or Grok 4.7?

Grok 4.7, with 500K tokens against 131K.

How many benchmarks is the Gemma 3 12B vs Grok 4.7 comparison based on?

31 benchmarks have a result for both models as of October 21, 2026. Gemma 3 12B's coding index rests on 0 independent benchmarks and Grok 4.7's on 5. Where only one model has a result, the page says so instead of naming a winner.

Compare next