Model comparison

Gemma 3 4B vs GPT-5.2 Codex

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

Last verified . 0 shared benchmarks.

Gemma 3 4B Google

27.9

Rank #320 Confirmed

GPT-5.2 Codex OpenAI

42.2

Rank #107 Reported

Summary

  • The widest gap is in agentic & tool use, where GPT-5.2 Codex leads 40.7 to 20.7.
  • Gemma 3 4B is cheaper at $0.04 / $0.08 per million input/output tokens, against $1.75 / $14 for GPT-5.2 Codex.
  • GPT-5.2 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.2 Codex specifications
Gemma 3 4BGPT-5.2 Codex
ProviderGoogleOpenAI
Noometry Index27.942.2
Released2025-03-122025-12-18
WeightsOpenProprietary
Context window131K400K
Max output4K128K
Input $ / M tokens$0.04$1.75
Output $ / M tokens$0.08$14
Results tracked225

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

Category by category

Coding GPT-5.2 Codex leads

Gemma 3 4B: 35.3 (#214), GPT-5.2 Codex: 45.4 (#66)

Coding benchmarks
BenchmarkGemma 3 4BGPT-5.2 Codex
SWE-bench Verified (bash only)—72.8%
LMArena WebDev—1339
SWE-bench Multilingual—66.3%
LMArena Coding1230—
ALE-Bench—1,300

Agentic & Tool Use GPT-5.2 Codex leads

Gemma 3 4B: 20.7 (#134), GPT-5.2 Codex: 40.7 (#20)

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

Reasoning Not comparable

Gemma 3 4B: 12.7 (#330), GPT-5.2 Codex: —

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

Math Not comparable

Gemma 3 4B: 15.8 (#286), GPT-5.2 Codex: —

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

Knowledge Not comparable

Gemma 3 4B: 11.8 (#294), GPT-5.2 Codex: —

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

Multilingual Not comparable

Gemma 3 4B: 42.7 (#189), GPT-5.2 Codex: —

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

Instruction Following Not comparable

Gemma 3 4B: 65.4 (#219), GPT-5.2 Codex: —

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

Long Context Not comparable

Gemma 3 4B: 38.6 (#189), GPT-5.2 Codex: —

Long Context benchmarks
BenchmarkGemma 3 4BGPT-5.2 Codex
LMArena Longer Query1274—

Writing & Preference Not comparable

Gemma 3 4B: 42.2 (#234), GPT-5.2 Codex: —

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

Frequently asked questions

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

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

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

Gemma 3 4B is cheaper. It lists at $0.04 per million input tokens and $0.08 per million output tokens; GPT-5.2 Codex lists at $1.75 and $14.

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

GPT-5.2 Codex scores higher on coding benchmarks: 45.4 versus 35.3 in the Noometry coding category.

Which has the bigger context window?

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

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

0 benchmarks have published results for both models. Gemma 3 4B has 22 scored results on Noometry and GPT-5.2 Codex has 5.

Related comparisons

Go deeper