Enter opens the highlighted result. Esc closes.

Gemma 3 4B vs GPT-4o-mini (2024-07-18)

Gemma 3 4B costs 8.0x less per output token than GPT-4o-mini (2024-07-18) ($0.075 vs $0.60 per million). Updated October 22, 2026; 24 benchmarks have a result for both.

Gemma 3 4BGoogle
Coding
No data
Overall
22.6
Output $/M
$0.075
11
GPT-4o-mini (2024-07-18)OpenAI
Coding
No data
Overall
No data
Output $/M
$0.60
13
vs boards won of 24 shared

Gemma 3 4B or GPT-4o-mini (2024-07-18): which to pick

Neither model has a coding score yet, so the two cannot be ranked on coding.

Pick Gemma 3 4B for output tokens 8.0x cheaper ($0.075 vs $0.60 per million) and a larger context window (131K against 128K tokens).

Shared results
24
Gemma 3 4B only
18
GPT-4o-mini (2024-07-18) only
22
Like-for-like categories
5 of 9

Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
Gemma 3 4B not benchmarked, GPT-4o-mini (2024-07-18) not benchmarked.
Widest category
Coding, 6.8 points apart on average over 2 shared benchmarks.
Widest single gap
GPQA Diamond (Epoch AI run): Gemma 3 4B 23.2% against GPT-4o-mini (2024-07-18) 37.7%, 14.5 points apart on a 0 to 100 scale.
Output price
Gemma 3 4B $0.075 against GPT-4o-mini (2024-07-18) $0.60 per million output tokens, 8.0x apart.
Context window
Gemma 3 4B takes 131K tokens, GPT-4o-mini (2024-07-18) 128K.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryGemma 3 4BBarsGPT-4o-mini (2024-07-18)Ties
Coding02
Reasoning04
Math12
Knowledge40
General65
All shared boards1113
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
Coding benchmarks for Gemma 3 4B and GPT-4o-mini (2024-07-18)
BenchmarkGemma 3 4BGPT-4o-mini (2024-07-18)Leader
Aider polyglotNot measured3.6%Only GPT-4o-mini (2024-07-18) measured
AA Coding Index2.7Not measuredOnly Gemma 3 4B measured
LiveCodeBench (Artificial Analysis run)11.2%Not measuredOnly Gemma 3 4B measured
Terminal-Bench Hard (Artificial Analysis run)0.8%Not measuredOnly Gemma 3 4B measured
WeirdMLNot measured11.8%Only GPT-4o-mini (2024-07-18) measured
LMArena Text: coding12301290GPT-4o-mini (2024-07-18)
LMArena Text: software and IT12691291GPT-4o-mini (2024-07-18)
SciCode0.0%Not measuredOnly Gemma 3 4B measured
Neither model has a result on the other 35 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
Intelligence benchmarks for Gemma 3 4B and GPT-4o-mini (2024-07-18)
BenchmarkGemma 3 4BGPT-4o-mini (2024-07-18)Leader
AA Intelligence Index4.8Not measuredOnly Gemma 3 4B measured
Epoch Capabilities Index115.9Not measuredOnly Gemma 3 4B measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index3 boards, none shared
Agentic work benchmarks for Gemma 3 4B and GPT-4o-mini (2024-07-18)
BenchmarkGemma 3 4BGPT-4o-mini (2024-07-18)Leader
τ²-Bench Telecom5.0%Not measuredOnly Gemma 3 4B measured
BALROGNot measured17.4%Only GPT-4o-mini (2024-07-18) measured
Berkeley Function Calling Leaderboard (BFCL)19.6%Not measuredOnly Gemma 3 4B measured
Neither model has a result on the other 39 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index04
Reasoning benchmarks for Gemma 3 4B and GPT-4o-mini (2024-07-18)
BenchmarkGemma 3 4BGPT-4o-mini (2024-07-18)Leader
GPQA Diamond (Artificial Analysis run)29.1%Not measuredOnly Gemma 3 4B measured
Humanity's Last Exam (Artificial Analysis run)5.3%Not measuredOnly Gemma 3 4B measured
GPQA Diamond (Epoch AI run)23.2%37.7%GPT-4o-mini (2024-07-18)
SimpleBenchNot measured10.7%Only GPT-4o-mini (2024-07-18) measured
Chess puzzlesNot measured3.0%Only GPT-4o-mini (2024-07-18) measured
Mystery game puzzlesNot measured12.0%Only GPT-4o-mini (2024-07-18) measured
VPCTNot measured34.0%Only GPT-4o-mini (2024-07-18) measured
LMArena Text: hard prompts12531267GPT-4o-mini (2024-07-18)
LMArena Text: expert12231234GPT-4o-mini (2024-07-18)
LMArena Text: hard prompts in English12531278GPT-4o-mini (2024-07-18)
Kagi LLM Benchmark25.2%Not measuredOnly Gemma 3 4B measured
Neither model has a result on the other 12 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index12
Math benchmarks for Gemma 3 4B and GPT-4o-mini (2024-07-18)
BenchmarkGemma 3 4BGPT-4o-mini (2024-07-18)Leader
AA Math Index12.7Not measuredOnly Gemma 3 4B measured
AIME 2025 (Artificial Analysis run)12.7%Not measuredOnly Gemma 3 4B measured
OTIS Mock AIME7.5%6.9%Gemma 3 4B
FrontierMath, tiers 1 to 3Not measured0.7%Only GPT-4o-mini (2024-07-18) measured
MATH level 5Not measured52.6%Only GPT-4o-mini (2024-07-18) measured
LMArena Text: math12391267GPT-4o-mini (2024-07-18)
LMArena Text: mathematical work12561271GPT-4o-mini (2024-07-18)
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for Gemma 3 4B and GPT-4o-mini (2024-07-18)
BenchmarkGemma 3 4BGPT-4o-mini (2024-07-18)Leader
MMLU Pro (Artificial Analysis run)41.7%Not measuredOnly Gemma 3 4B measured
SimpleQA VerifiedNot measured8.3%Only GPT-4o-mini (2024-07-18) measured
MMLUNot measured76.7%Only GPT-4o-mini (2024-07-18) measured
GeoBenchNot measured64.0%Only GPT-4o-mini (2024-07-18) measured
LMArena Text: science13061286Gemma 3 4B
LMArena Text: medicine and healthcare13421282Gemma 3 4B
LMArena Text: legal and government13271305Gemma 3 4B
LMArena Text: business and finance13111265Gemma 3 4B
Neither model has a result on the other 12 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for Gemma 3 4B and GPT-4o-mini (2024-07-18)
BenchmarkGemma 3 4BGPT-4o-mini (2024-07-18)Leader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index65
General benchmarks for Gemma 3 4B and GPT-4o-mini (2024-07-18)
BenchmarkGemma 3 4BGPT-4o-mini (2024-07-18)Leader
IFBench28.3%Not measuredOnly Gemma 3 4B measured
Long context reasoning (AA-LCR)6.7%Not measuredOnly Gemma 3 4B measured
DTBench50.9%Not measuredOnly Gemma 3 4B measured
LMCA2.8%Not measuredOnly Gemma 3 4B measured
Creative writing (Lech Mazur)Not measured67.2%Only GPT-4o-mini (2024-07-18) measured
LMArena Text12911286Gemma 3 4B
LMArena Text: instruction following12391258GPT-4o-mini (2024-07-18)
LMArena Text: creative writing12701268Gemma 3 4B
LMArena VisionNot measured1066Only GPT-4o-mini (2024-07-18) measured
LMArena Text: English13001301GPT-4o-mini (2024-07-18)
LMArena Text: non-English12731266Gemma 3 4B
LMArena Text: ChineseNot measured1265Only GPT-4o-mini (2024-07-18) measured
LMArena Text: German12811272Gemma 3 4B
LMArena Text: JapaneseNot measured1216Only GPT-4o-mini (2024-07-18) measured
LMArena Text: KoreanNot measured1195Only GPT-4o-mini (2024-07-18) measured
LMArena Text: FrenchNot measured1297Only GPT-4o-mini (2024-07-18) measured
LMArena Text: SpanishNot measured1276Only GPT-4o-mini (2024-07-18) measured
LMArena Text: Russian12941275Gemma 3 4B
LMArena Text: PolishNot measured1244Only GPT-4o-mini (2024-07-18) measured
LMArena Text: multi-turn12551285GPT-4o-mini (2024-07-18)
LMArena Text: longer queries12731289GPT-4o-mini (2024-07-18)
LMArena Text: writing and language12881282Gemma 3 4B
LMArena Text: entertainment and media12331253GPT-4o-mini (2024-07-18)
LMArena Vision: EnglishNot measured1072Only GPT-4o-mini (2024-07-18) measured
LMArena Vision: ChineseNot measured1033Only GPT-4o-mini (2024-07-18) measured
Neither model has a result on the other 23 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemma 3 4B and GPT-4o-mini (2024-07-18)
BenchmarkGemma 3 4BGPT-4o-mini (2024-07-18)Leader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

Gemma 3 4B$0.0001Fits in one request
GPT-4o-mini (2024-07-18)$0.0004Fits in one request

Gemma 3 4B costs less

Repository review

50K input + 3K output tokens

Gemma 3 4B$0.0025Fits in one request
GPT-4o-mini (2024-07-18)$0.0093Fits in one request

Gemma 3 4B costs less

Agent loop

200K input + 10K output tokens

Gemma 3 4B$0.0097Exceeds the context window
GPT-4o-mini (2024-07-18)$0.036Exceeds the context window

Gemma 3 4B costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of Gemma 3 4B and GPT-4o-mini (2024-07-18)
SpecificationGoogle Gemma 3 4BOpenAI GPT-4o-mini (2024-07-18)
MakerGoogleOpenAI
WeightsOpen weightsNo public weights listed
ReleasedMarch 13, 2025July 18, 2024
Context window131K128K
Input $/Mtok$0.045$0.15
Output $/Mtok$0.075$0.60
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 3 4B better than GPT-4o-mini (2024-07-18) for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Pick Gemma 3 4B for output tokens 8.0x cheaper ($0.075 vs $0.60 per million) and a larger context window (131K against 128K tokens).

Which is cheaper, Gemma 3 4B or GPT-4o-mini (2024-07-18)?

Gemma 3 4B costs $0.045 per million input tokens and $0.075 per million output tokens; GPT-4o-mini (2024-07-18) costs $0.15 and $0.60. Cost per solved task is known for neither of them.

Which has the bigger context window, Gemma 3 4B or GPT-4o-mini (2024-07-18)?

Gemma 3 4B, with 131K tokens against 128K.

How many benchmarks is the Gemma 3 4B vs GPT-4o-mini (2024-07-18) comparison based on?

24 benchmarks have a result for both models as of October 22, 2026. Gemma 3 4B's coding index rests on 0 independent benchmarks and GPT-4o-mini (2024-07-18)'s on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next