Model comparison

Gemma 4 31B IT vs Grok 4.7

Grok 4.7 is the stronger model overall, scoring 53.1 to 43.5 on the Noometry Index. Gemma 4 31B IT costs 20× less per token, which makes it the better buy when Grok 4.7's lead doesn't matter for your workload.

Last verified . 27 shared benchmarks.

Gemma 4 31B IT Google

43.5

Rank #90 Confirmed

Grok 4.7 xAI

53.1

Rank #37 Confirmed

Summary

  • They share 27 benchmarks with published results for both. Gemma 4 31B IT scores higher in 4 categories and Grok 4.7 in 5 categories; 9 gaps are clear of the uncertainty.
  • The widest gap is in knowledge, where Grok 4.7 leads 62.8 to 37.9.
  • The biggest single-benchmark swing is SimpleQA Verified: 10.4% for Gemma 4 31B IT and 56% for Grok 4.7.
  • Gemma 4 31B IT is cheaper at $0.09 / $0.34 per million input/output tokens, against $2 / $6 for Grok 4.7.
  • Grok 4.7 accepts more context: 500K tokens versus 262K.
  • Gemma 4 31B IT has downloadable open weights; the other is API-only.

Side by side

Gemma 4 31B IT and Grok 4.7 specifications
Gemma 4 31B ITGrok 4.7
ProviderGooglexAI
Noometry Index43.553.1
Released2026-04-022026-09-21
WeightsOpenProprietary
Context window262K500K
Max output33K500K
Input $ / M tokens$0.09$2
Output $ / M tokens$0.34$6
Results tracked3539

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding Grok 4.7 leads

Gemma 4 31B IT: 42.3 (#108), Grok 4.7: 58.0 (#18)

Coding benchmarks
BenchmarkGemma 4 31B ITGrok 4.7
LMArena WebDev13661639
SciCode43.4%57.8%
LMArena Coding14591427
FrontierCode—47.6%
CursorBench—46.3%
FrontierSWE—29.5%
WeirdML52.3%—
ALE-Bench925.5—

Agentic & Tool Use Not comparable

Gemma 4 31B IT: —, Grok 4.7: 36.7 (#37)

Agentic & Tool Use benchmarks
BenchmarkGemma 4 31B ITGrok 4.7
APEX-Agents—54.6%
GDP.pdf—22.8%
Vending-Bench 2—10,537

Reasoning Grok 4.7 leads

Gemma 4 31B IT: 27.2 (#122), Grok 4.7: 49.1 (#40)

Reasoning benchmarks
BenchmarkGemma 4 31B ITGrok 4.7
NYT Connections (extended)70.6%76.8%
CritPt1.4%18%
Chess Puzzles5%38%
LMArena Hard Prompts14481413
DTBench82.7%96%
LMCA39.3%49.4%
Epoch Capabilities Index142.74153.53
Kagi LLM Benchmark63.5%—
Thematic Generalization53%—
Mystery Game Puzzles—29%
Surface Evolver Bench30.6%—

Math Grok 4.7 leads

Gemma 4 31B IT: 43.2 (#81), Grok 4.7: 57.8 (#39)

Math benchmarks
BenchmarkGemma 4 31B ITGrok 4.7
OTIS Mock AIME 2024-202573.3%98.1%
LMArena Math14651407
FrontierMath (Tiers 1-3)—53%
FrontierMath Tier 4—17.1%
ProofBench—34%

Knowledge Grok 4.7 leads

Gemma 4 31B IT: 37.9 (#151), Grok 4.7: 62.8 (#22)

Knowledge benchmarks
BenchmarkGemma 4 31B ITGrok 4.7
GPQA Diamond75.8%92.7%
SimpleQA Verified10.4%56%
LMArena Expert14651422
Vectara Hallucination Rate7.4%—

Multimodal Gemma 4 31B IT leads

Gemma 4 31B IT: 41.6 (#34), Grok 4.7: 35.5 (#87)

Multimodal benchmarks
BenchmarkGemma 4 31B ITGrok 4.7
LMArena Vision12771228
Blueprint-Bench 2—32.5%
Furniture Assembly—20.8%
LMArena Document1425—

Multilingual Gemma 4 31B IT leads

Gemma 4 31B IT: 53.8 (#57), Grok 4.7: 50.8 (#116)

Multilingual benchmarks
BenchmarkGemma 4 31B ITGrok 4.7
LMArena Non-English14311389
LMArena Chinese14761455
LMArena French14351455
LMArena Russian14601397
LMArena Spanish14441400

Instruction Following Gemma 4 31B IT leads

Gemma 4 31B IT: 75.5 (#61), Grok 4.7: 74.1 (#105)

Instruction Following benchmarks
BenchmarkGemma 4 31B ITGrok 4.7
LMArena Instruction Following14331404

Long Context Gemma 4 31B IT leads

Gemma 4 31B IT: 44.2 (#71), Grok 4.7: 43.1 (#104)

Long Context benchmarks
BenchmarkGemma 4 31B ITGrok 4.7
LMArena Longer Query14461413

Writing & Preference Grok 4.7 leads

Gemma 4 31B IT: 60.5 (#96), Grok 4.7: 70.0 (#24)

Writing & Preference benchmarks
BenchmarkGemma 4 31B ITGrok 4.7
LMArena Text14431399
LMArena Creative Writing14151391
EQ-Bench Creative Writing13682007
LMArena Multi-Turn14521393
EQ-Bench 41120—

Frequently asked questions

Is Gemma 4 31B IT better than Grok 4.7?

Grok 4.7 is the stronger model overall, scoring 53.1 to 43.5 on the Noometry Index. Gemma 4 31B IT costs 20× less per token, which makes it the better buy when Grok 4.7's lead doesn't matter for your workload.

Which is cheaper, Gemma 4 31B IT or Grok 4.7?

Gemma 4 31B IT is cheaper. It lists at $0.09 per million input tokens and $0.34 per million output tokens; Grok 4.7 lists at $2 and $6.

Is Gemma 4 31B IT or Grok 4.7 better for coding?

Grok 4.7 scores higher on coding benchmarks: 58.0 versus 42.3 in the Noometry coding category.

Which has the bigger context window?

Grok 4.7 does, with 500K tokens against 262K.

How many benchmarks do Gemma 4 31B IT and Grok 4.7 share?

27 benchmarks have published results for both models. Gemma 4 31B IT has 35 scored results on Noometry and Grok 4.7 has 39.

Related comparisons

Go deeper