Model comparison

Codestral vs Gemma 4 31B IT

Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 30.6 on the Noometry Index.

Last verified . 2 shared benchmarks.

Codestral Mistral AI

30.6

Rank #290 Reported

Gemma 4 31B IT Google

43.5

Rank #90 Confirmed

Summary

  • They share 2 benchmarks with published results for both. Codestral scores higher in 0 categories and Gemma 4 31B IT in 2 categories; 2 gaps are clear of the uncertainty.
  • The widest gap is in coding, where Gemma 4 31B IT leads 42.3 to 27.3.
  • The biggest single-benchmark swing is Kagi LLM Benchmark: 32.5% for Codestral and 63.5% for Gemma 4 31B IT.
  • Gemma 4 31B IT is cheaper at $0.09 / $0.34 per million input/output tokens, against $0.30 / $0.90 for Codestral.
  • Gemma 4 31B IT accepts more context: 262K tokens versus 256K.
  • Gemma 4 31B IT has downloadable open weights; the other is API-only.

Side by side

Codestral and Gemma 4 31B IT specifications
CodestralGemma 4 31B IT
ProviderMistral AIGoogle
Noometry Index30.643.5
Released2024-05-292026-04-02
WeightsProprietaryOpen
Context window256K262K
Max output8K33K
Input $ / M tokens$0.30$0.09
Output $ / M tokens$0.90$0.34
Results tracked735

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

Category by category

Coding Gemma 4 31B IT leads

Codestral: 27.3 (#321), Gemma 4 31B IT: 42.3 (#108)

Coding benchmarks
BenchmarkCodestralGemma 4 31B IT
ALE-Bench137.78925.5
Aider Polyglot11.1%—
LMArena WebDev—1366
SciCode—43.4%
WeirdML—52.3%
BigCodeBench Instruct41.8%—
LMArena Coding—1459
BigCodeBench Complete52.5%—
HumanEval+73.8%—
MBPP+61.9%—

Reasoning Gemma 4 31B IT leads

Codestral: 19.8 (#251), Gemma 4 31B IT: 27.2 (#122)

Reasoning benchmarks
BenchmarkCodestralGemma 4 31B IT
Kagi LLM Benchmark32.5%63.5%
NYT Connections (extended)—70.6%
CritPt—1.4%
Chess Puzzles—5%
Thematic Generalization—53%
LMArena Hard Prompts—1448
DTBench—82.7%
LMCA—39.3%
Surface Evolver Bench—30.6%
Epoch Capabilities Index—142.74

Math Not comparable

Codestral: —, Gemma 4 31B IT: 43.2 (#81)

Math benchmarks
BenchmarkCodestralGemma 4 31B IT
OTIS Mock AIME 2024-2025—73.3%
LMArena Math—1465

Knowledge Not comparable

Codestral: —, Gemma 4 31B IT: 37.9 (#151)

Knowledge benchmarks
BenchmarkCodestralGemma 4 31B IT
GPQA Diamond—75.8%
SimpleQA Verified—10.4%
Vectara Hallucination Rate—7.4%
LMArena Expert—1465

Multimodal Not comparable

Codestral: —, Gemma 4 31B IT: 41.6 (#34)

Multimodal benchmarks
BenchmarkCodestralGemma 4 31B IT
LMArena Vision—1277
LMArena Document—1425

Multilingual Not comparable

Codestral: —, Gemma 4 31B IT: 53.8 (#57)

Multilingual benchmarks
BenchmarkCodestralGemma 4 31B IT
LMArena Non-English—1431
LMArena Chinese—1476
LMArena French—1435
LMArena Russian—1460
LMArena Spanish—1444

Instruction Following Not comparable

Codestral: —, Gemma 4 31B IT: 75.5 (#61)

Instruction Following benchmarks
BenchmarkCodestralGemma 4 31B IT
LMArena Instruction Following—1433

Long Context Not comparable

Codestral: —, Gemma 4 31B IT: 44.2 (#71)

Long Context benchmarks
BenchmarkCodestralGemma 4 31B IT
LMArena Longer Query—1446

Writing & Preference Not comparable

Codestral: —, Gemma 4 31B IT: 60.5 (#96)

Writing & Preference benchmarks
BenchmarkCodestralGemma 4 31B IT
LMArena Text—1443
LMArena Creative Writing—1415
EQ-Bench Creative Writing—1368
EQ-Bench 4—1120
LMArena Multi-Turn—1452

Frequently asked questions

Is Codestral better than Gemma 4 31B IT?

Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 30.6 on the Noometry Index.

Which is cheaper, Codestral or Gemma 4 31B IT?

Gemma 4 31B IT is cheaper. It lists at $0.09 per million input tokens and $0.34 per million output tokens; Codestral lists at $0.30 and $0.90.

Is Codestral or Gemma 4 31B IT better for coding?

Gemma 4 31B IT scores higher on coding benchmarks: 42.3 versus 27.3 in the Noometry coding category.

Which has the bigger context window?

Gemma 4 31B IT does, with 262K tokens against 256K.

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

2 benchmarks have published results for both models. Codestral has 7 scored results on Noometry and Gemma 4 31B IT has 35.

Related comparisons

Go deeper