Model comparison

Gemma 3 4B vs GPT-5-Codex

GPT-5-Codex is the stronger model overall, scoring 37.9 to 28.1 on the Noometry Index. Gemma 3 4B costs 69× less per token, which makes it the better buy when GPT-5-Codex's lead doesn't matter for your workload.

Last verified . 1 shared benchmarks.

Gemma 3 4B Google

28.1

Rank #326 Confirmed

GPT-5-Codex OpenAI

37.9

Rank #192 Reported

Summary

  • They share 1 benchmark with published results for both. Gemma 3 4B scores higher in 0 categories and GPT-5-Codex in 3 categories; 3 gaps are clear of the uncertainty.
  • The widest gap is in reasoning, where GPT-5-Codex leads 30.9 to 13.2.
  • The biggest single-benchmark swing is Kagi LLM Benchmark: 25.2% for Gemma 3 4B and 70.3% for GPT-5-Codex.
  • Gemma 3 4B is cheaper at $0.04 / $0.08 per million input/output tokens, against $1.25 / $10 for GPT-5-Codex.
  • GPT-5-Codex accepts more context: 400K tokens versus 131K.
  • Gemma 3 4B has downloadable open weights; the other is API-only.

Side by side

Gemma 3 4B and GPT-5-Codex specifications
Gemma 3 4BGPT-5-Codex
ProviderGoogleOpenAI
Noometry Index28.137.9
Released2025-03-122025-09-15
WeightsOpenProprietary
Context window131K400K
Max output4K128K
Input $ / M tokens$0.04$1.25
Output $ / M tokens$0.08$10
Results tracked223

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

Category by category

Coding GPT-5-Codex leads

Gemma 3 4B: 35.9 (#215), GPT-5-Codex: 42.4 (#103)

Coding benchmarks
BenchmarkGemma 3 4BGPT-5-Codex
WeirdML—54.5%
LMArena Coding1230—

Agentic & Tool Use GPT-5-Codex leads

Gemma 3 4B: 20.9 (#142), GPT-5-Codex: 31.0 (#72)

Agentic & Tool Use benchmarks
BenchmarkGemma 3 4BGPT-5-Codex
Terminal-Bench—44.3%
Berkeley Function Calling Leaderboard19.6%—

Reasoning GPT-5-Codex leads

Gemma 3 4B: 13.2 (#335), GPT-5-Codex: 30.9 (#83)

Reasoning benchmarks
BenchmarkGemma 3 4BGPT-5-Codex
Kagi LLM Benchmark25.2%70.3%
Chess Puzzles0%—
LMArena Hard Prompts1253—
DTBench50.9%—
LMCA2.8%—
Epoch Capabilities Index116.02—

Math Not comparable

Gemma 3 4B: 16.8 (#292), GPT-5-Codex: —

Math benchmarks
BenchmarkGemma 3 4BGPT-5-Codex
OTIS Mock AIME 2024-20257.5%—
LMArena Math1239—

Knowledge Not comparable

Gemma 3 4B: 11.8 (#299), GPT-5-Codex: —

Knowledge benchmarks
BenchmarkGemma 3 4BGPT-5-Codex
GPQA Diamond23.2%—
Vectara Hallucination Rate6.4%—
LMArena Expert1223—

Multilingual Not comparable

Gemma 3 4B: 42.5 (#194), GPT-5-Codex: —

Multilingual benchmarks
BenchmarkGemma 3 4BGPT-5-Codex
LMArena Non-English1273—
LMArena German1281—
LMArena Russian1294—

Instruction Following Not comparable

Gemma 3 4B: 65.2 (#225), GPT-5-Codex: —

Instruction Following benchmarks
BenchmarkGemma 3 4BGPT-5-Codex
LMArena Instruction Following1239—

Long Context Not comparable

Gemma 3 4B: 38.7 (#194), GPT-5-Codex: —

Long Context benchmarks
BenchmarkGemma 3 4BGPT-5-Codex
LMArena Longer Query1273—

Writing & Preference Not comparable

Gemma 3 4B: 42.0 (#239), GPT-5-Codex: —

Writing & Preference benchmarks
BenchmarkGemma 3 4BGPT-5-Codex
LMArena Text1291—
LMArena Creative Writing1271—
EQ-Bench Creative Writing1068—
LMArena Multi-Turn1255—

Frequently asked questions

Is Gemma 3 4B better than GPT-5-Codex?

GPT-5-Codex is the stronger model overall, scoring 37.9 to 28.1 on the Noometry Index. Gemma 3 4B costs 69× less per token, which makes it the better buy when GPT-5-Codex's lead doesn't matter for your workload.

Which is cheaper, Gemma 3 4B or GPT-5-Codex?

Gemma 3 4B is cheaper. It lists at $0.04 per million input tokens and $0.08 per million output tokens; GPT-5-Codex lists at $1.25 and $10.

Is Gemma 3 4B or GPT-5-Codex better for coding?

GPT-5-Codex scores higher on coding benchmarks: 42.4 versus 35.9 in the Noometry coding category.

Which has the bigger context window?

GPT-5-Codex does, with 400K tokens against 131K.

How many benchmarks do Gemma 3 4B and GPT-5-Codex share?

1 benchmark has published results for both models. Gemma 3 4B has 22 scored results on Noometry and GPT-5-Codex has 3.

Related comparisons

Go deeper