Model comparison

Gemma 4 31B IT vs GPT-5.1-Codex

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

Last verified . 2 shared benchmarks.

Gemma 4 31B IT Google

43.2

Rank #85 Confirmed

GPT-5.1-Codex OpenAI

38.2

Rank #178 Reported

Summary

  • They share 2 benchmarks with published results for both. Gemma 4 31B IT scores higher in 2 categories and GPT-5.1-Codex in 0 categories; one gap is clear of the uncertainty.
  • The widest gap is in math, where Gemma 4 31B IT leads 41.3 to 29.3.
  • Gemma 4 31B IT is cheaper at $0.09 / $0.34 per million input/output tokens, against $1.25 / $10 for GPT-5.1-Codex.
  • GPT-5.1-Codex accepts more context: 400K tokens versus 262K.
  • Gemma 4 31B IT has downloadable open weights; the other is API-only.

Side by side

Gemma 4 31B IT and GPT-5.1-Codex specifications
Gemma 4 31B ITGPT-5.1-Codex
ProviderGoogleOpenAI
Noometry Index43.238.2
Released2026-04-022025-11-12
WeightsOpenProprietary
Context window262K400K
Max output33K128K
Input $ / M tokens$0.09$1.25
Output $ / M tokens$0.34$10
Results tracked356

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

Category by category

Coding Too close to call

Gemma 4 31B IT: 41.9 (#98), GPT-5.1-Codex: 41.7 (#107)

Coding benchmarks
BenchmarkGemma 4 31B ITGPT-5.1-Codex
LMArena WebDev13641337
ALE-Bench925.51,245
SWE-bench Verified (bash only)—66%
SciCode43.4%—
WeirdML52.3%—
LMArena Coding1459—

Agentic & Tool Use Not comparable

Gemma 4 31B IT: —, GPT-5.1-Codex: 37.8 (#32)

Agentic & Tool Use benchmarks
BenchmarkGemma 4 31B ITGPT-5.1-Codex
Terminal-Bench—60.4%
METR Time Horizons—70.8%

Reasoning Not comparable

Gemma 4 31B IT: 26.4 (#119), GPT-5.1-Codex: —

Reasoning benchmarks
BenchmarkGemma 4 31B ITGPT-5.1-Codex
Kagi LLM Benchmark63.5%—
NYT Connections (extended)70.6%—
CritPt1.4%—
Chess Puzzles5%—
Thematic Generalization53%—
LMArena Hard Prompts1448—
DTBench82.7%—
LMCA39.3%—
Surface Evolver Bench30.6%—
Epoch Capabilities Index142.74—

Math Gemma 4 31B IT leads

Gemma 4 31B IT: 41.3 (#72), GPT-5.1-Codex: 29.3 (#218)

Math benchmarks
BenchmarkGemma 4 31B ITGPT-5.1-Codex
OTIS Mock AIME 2024-202573.3%—
ProofBench—9%
LMArena Math1464—

Knowledge Not comparable

Gemma 4 31B IT: 37.9 (#141), GPT-5.1-Codex: —

Knowledge benchmarks
BenchmarkGemma 4 31B ITGPT-5.1-Codex
GPQA Diamond75.8%—
SimpleQA Verified10.4%—
Vectara Hallucination Rate7.4%—
LMArena Expert1465—

Multimodal Not comparable

Gemma 4 31B IT: 41.0 (#32), GPT-5.1-Codex: —

Multimodal benchmarks
BenchmarkGemma 4 31B ITGPT-5.1-Codex
LMArena Vision1278—
LMArena Document1425—

Multilingual Not comparable

Gemma 4 31B IT: 54.0 (#52), GPT-5.1-Codex: —

Multilingual benchmarks
BenchmarkGemma 4 31B ITGPT-5.1-Codex
LMArena Non-English1431—
LMArena Chinese1478—
LMArena French1436—
LMArena Russian1462—
LMArena Spanish1443—

Instruction Following Not comparable

Gemma 4 31B IT: 75.6 (#58), GPT-5.1-Codex: —

Instruction Following benchmarks
BenchmarkGemma 4 31B ITGPT-5.1-Codex
LMArena Instruction Following1433—

Long Context Not comparable

Gemma 4 31B IT: 44.2 (#67), GPT-5.1-Codex: —

Long Context benchmarks
BenchmarkGemma 4 31B ITGPT-5.1-Codex
LMArena Longer Query1446—

Writing & Preference Not comparable

Gemma 4 31B IT: 60.7 (#92), GPT-5.1-Codex: —

Writing & Preference benchmarks
BenchmarkGemma 4 31B ITGPT-5.1-Codex
LMArena Text1443—
LMArena Creative Writing1416—
EQ-Bench Creative Writing1368—
EQ-Bench 41120—
LMArena Multi-Turn1452—

Frequently asked questions

Is Gemma 4 31B IT better than GPT-5.1-Codex?

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

Which is cheaper, Gemma 4 31B IT or GPT-5.1-Codex?

Gemma 4 31B IT is cheaper. It lists at $0.09 per million input tokens and $0.34 per million output tokens; GPT-5.1-Codex lists at $1.25 and $10.

Is Gemma 4 31B IT or GPT-5.1-Codex better for coding?

They score almost the same on coding (41.9 vs 41.7); test both on your own repository before choosing.

Which has the bigger context window?

GPT-5.1-Codex does, with 400K tokens against 262K.

How many benchmarks do Gemma 4 31B IT and GPT-5.1-Codex share?

2 benchmarks have published results for both models. Gemma 4 31B IT has 35 scored results on Noometry and GPT-5.1-Codex has 6.

Related comparisons

Go deeper