Enter opens the highlighted result. Esc closes.

Gemma 3 4B vs GPT-4.1 Mini

GPT-4.1 Mini leads Gemma 3 4B on the Artificial Analysis Intelligence Index, 10.2 to 4.8, and Gemma 3 4B costs 21.3x less per output token ($0.075 vs $1.60 per million). Updated October 21, 2026; 41 benchmarks have a result for both.

Gemma 3 4BGoogle
Coding
No data
Overall
22.6
Output $/M
$0.075
2
GPT-4.1 MiniOpenAI
Coding
No data
Overall
31.9
Output $/M
$1.60
39
vs boards won of 41 shared

Gemma 3 4B or GPT-4.1 Mini: 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 21.3x cheaper ($0.075 vs $1.60 per million) and work measured by AA Coding Index or LiveCodeBench (Artificial Analysis run), where it leads.

Shared results
41
Gemma 3 4B only
1
GPT-4.1 Mini only
45
Like-for-like categories
7 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-4.1 Mini not benchmarked.
Widest category
Agentic work, 39.4 points apart on average over 2 shared benchmarks.
Widest single gap
τ²-Bench Telecom: Gemma 3 4B 5.0% against GPT-4.1 Mini 52.9%, 48.0 points apart on a 0 to 100 scale.
Output price
Gemma 3 4B $0.075 against GPT-4.1 Mini $1.60 per million output tokens, 21.3x apart.
Context window
Gemma 3 4B takes 131K tokens, GPT-4.1 Mini 1.05M.

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-4.1 MiniTies
Coding05
Intelligence02
Agentic work02
Reasoning16
Math05
Knowledge14
General015
All shared boards239
CodingLike-for-likeSix of these boards feed the Vibe Coding Index05
Coding benchmarks for Gemma 3 4B and GPT-4.1 Mini
BenchmarkGemma 3 4BGPT-4.1 MiniLeader
Aider polyglotNot measured32.4%Only GPT-4.1 Mini measured
SWE-bench VerifiedNot measured23.9%Only GPT-4.1 Mini measured
AA Coding Index2.720.2GPT-4.1 Mini
LiveCodeBench (Vals AI)Not measured58.2%Only GPT-4.1 Mini measured
LiveCodeBench (Artificial Analysis run)11.2%48.3%GPT-4.1 Mini
Terminal-Bench Hard (Artificial Analysis run)0.8%7.6%GPT-4.1 Mini
WeirdMLNot measured37.6%Only GPT-4.1 Mini measured
LMArena Text: coding12301367GPT-4.1 Mini
LMArena Text: software and IT12691360GPT-4.1 Mini
SciCode0.0%Not measuredOnly Gemma 3 4B measured
Neither model has a result on the other 29 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Gemma 3 4B and GPT-4.1 Mini
BenchmarkGemma 3 4BGPT-4.1 MiniLeader
AA Intelligence Index4.810.2GPT-4.1 Mini
Epoch Capabilities Index115.9134.9GPT-4.1 Mini
Agentic workLike-for-likePublic boards, shown as published, kept out of the index02
Agentic work benchmarks for Gemma 3 4B and GPT-4.1 Mini
BenchmarkGemma 3 4BGPT-4.1 MiniLeader
τ²-Bench Telecom5.0%52.9%GPT-4.1 Mini
Berkeley Function Calling Leaderboard (BFCL)19.6%50.4%GPT-4.1 Mini
Neither model has a result on the other 39 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index16
Reasoning benchmarks for Gemma 3 4B and GPT-4.1 Mini
BenchmarkGemma 3 4BGPT-4.1 MiniLeader
GPQA DiamondNot measured67.9%Only GPT-4.1 Mini measured
MMMU Pro (Vals AI)Not measured70.5%Only GPT-4.1 Mini measured
GPQA Diamond (Artificial Analysis run)29.1%66.4%GPT-4.1 Mini
Humanity's Last Exam (Artificial Analysis run)5.3%5.0%Gemma 3 4B
GPQA Diamond (Epoch AI run)23.2%65.8%GPT-4.1 Mini
ARC-AGINot measured3.5%Only GPT-4.1 Mini measured
ARC-AGI-2Not measured0.0%Only GPT-4.1 Mini measured
Chess puzzlesNot measured1.0%Only GPT-4.1 Mini measured
Mystery game puzzlesNot measured7.0%Only GPT-4.1 Mini measured
LMArena Text: hard prompts12531349GPT-4.1 Mini
LMArena Text: expert12231338GPT-4.1 Mini
LMArena Text: hard prompts in English12531362GPT-4.1 Mini
LMArena Vision: diagramsNot measured1182Only GPT-4.1 Mini measured
LMArena Vision: homeworkNot measured1214Only GPT-4.1 Mini measured
Kagi LLM Benchmark25.2%48.6%GPT-4.1 Mini
Neither model has a result on the other 7 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index05
Math benchmarks for Gemma 3 4B and GPT-4.1 Mini
BenchmarkGemma 3 4BGPT-4.1 MiniLeader
AIMENot measured49.4%Only GPT-4.1 Mini measured
MATH 500 (Vals AI)Not measured88.0%Only GPT-4.1 Mini measured
MGSM (Vals AI)Not measured87.8%Only GPT-4.1 Mini measured
AA Math Index12.746.3GPT-4.1 Mini
AIME 2025 (Artificial Analysis run)12.7%46.3%GPT-4.1 Mini
OTIS Mock AIME7.5%44.7%GPT-4.1 Mini
FrontierMath, tiers 1 to 3Not measured6.7%Only GPT-4.1 Mini measured
MATH level 5Not measured87.3%Only GPT-4.1 Mini measured
LMArena Text: math12391343GPT-4.1 Mini
LMArena Text: mathematical work12561347GPT-4.1 Mini
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index14
Knowledge benchmarks for Gemma 3 4B and GPT-4.1 Mini
BenchmarkGemma 3 4BGPT-4.1 MiniLeader
MMLU ProNot measured77.2%Only GPT-4.1 Mini measured
LegalBench (Vals AI)Not measured78.0%Only GPT-4.1 Mini measured
CorpFin (Vals AI)Not measured57.9%Only GPT-4.1 Mini measured
TaxEval (Vals AI)Not measured71.9%Only GPT-4.1 Mini measured
MortgageTax (Vals AI)Not measured65.5%Only GPT-4.1 Mini measured
MedQA (Vals AI)Not measured84.6%Only GPT-4.1 Mini measured
MMLU Pro (Artificial Analysis run)41.7%78.1%GPT-4.1 Mini
SimpleQA VerifiedNot measured12.7%Only GPT-4.1 Mini measured
LMArena Text: science13061328GPT-4.1 Mini
LMArena Text: medicine and healthcare13421324Gemma 3 4B
LMArena Text: legal and government13271343GPT-4.1 Mini
LMArena Text: business and finance13111322GPT-4.1 Mini
Neither model has a result on the other 6 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Web design benchmarks for Gemma 3 4B and GPT-4.1 Mini
BenchmarkGemma 3 4BGPT-4.1 MiniLeader
Design Arena: websitesNot measured997Only GPT-4.1 Mini measured
Design Arena: UI componentsNot measured961Only GPT-4.1 Mini measured
Design Arena: game devNot measured1071Only GPT-4.1 Mini measured
Design Arena: data vizNot measured1034Only GPT-4.1 Mini measured
Design Arena: 3DNot measured837Only GPT-4.1 Mini measured
Design Arena: all code categoriesNot measured994Only GPT-4.1 Mini measured
Neither model has a result on the other 3 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index015
General benchmarks for Gemma 3 4B and GPT-4.1 Mini
BenchmarkGemma 3 4BGPT-4.1 MiniLeader
IFBench28.3%38.3%GPT-4.1 Mini
Long context reasoning (AA-LCR)6.7%44.0%GPT-4.1 Mini
DTBench50.9%68.8%GPT-4.1 Mini
LMCA2.8%21.1%GPT-4.1 Mini
Fiction.LiveBenchNot measured44.4%Only GPT-4.1 Mini measured
LMArena Text12911341GPT-4.1 Mini
LMArena Text: instruction following12391333GPT-4.1 Mini
LMArena Text: creative writing12701299GPT-4.1 Mini
LMArena VisionNot measured1181Only GPT-4.1 Mini measured
LMArena Text: English13001356GPT-4.1 Mini
LMArena Text: non-English12731318GPT-4.1 Mini
LMArena Text: ChineseNot measured1329Only GPT-4.1 Mini measured
LMArena Text: German12811350GPT-4.1 Mini
LMArena Text: JapaneseNot measured1290Only GPT-4.1 Mini measured
LMArena Text: KoreanNot measured1298Only GPT-4.1 Mini measured
LMArena Text: FrenchNot measured1358Only GPT-4.1 Mini measured
LMArena Text: SpanishNot measured1319Only GPT-4.1 Mini measured
LMArena Text: Russian12941324GPT-4.1 Mini
LMArena Text: PolishNot measured1326Only GPT-4.1 Mini measured
LMArena Text: multi-turn12551354GPT-4.1 Mini
LMArena Text: longer queries12731344GPT-4.1 Mini
LMArena Text: writing and language12881319GPT-4.1 Mini
LMArena Text: entertainment and media12331300GPT-4.1 Mini
LMArena Vision: EnglishNot measured1191Only GPT-4.1 Mini measured
LMArena Vision: ChineseNot measured1186Only GPT-4.1 Mini measured
LMArena Vision: reading textNot measured1188Only GPT-4.1 Mini measured
LMArena Vision: humorNot measured1182Only GPT-4.1 Mini measured
LMArena Vision: captioningNot measured1174Only GPT-4.1 Mini measured
LMArena Vision: recognizing thingsNot measured1187Only GPT-4.1 Mini measured
LMArena Vision: creative writingNot measured1182Only GPT-4.1 Mini measured
Neither model has a result on the other 16 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-4.1 Mini
BenchmarkGemma 3 4BGPT-4.1 MiniLeader
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-4.1 Mini$0.0012Fits in one request

Gemma 3 4B costs less

Repository review

50K input + 3K output tokens

Gemma 3 4B$0.0025Fits in one request
GPT-4.1 Mini$0.025Fits in one request

Gemma 3 4B costs less

Agent loop

200K input + 10K output tokens

Gemma 3 4B$0.0097Exceeds the context window
GPT-4.1 Mini$0.096Fits in one request

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-4.1 Mini
SpecificationGoogle Gemma 3 4BOpenAI GPT-4.1 Mini
MakerGoogleOpenAI
WeightsOpen weightsNo public weights listed
ReleasedMarch 13, 2025April 14, 2025
Context window131K1.05M
Input $/Mtok$0.045$0.40
Output $/Mtok$0.075$1.60
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computable$1.818
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 3 4B better than GPT-4.1 Mini for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Pick Gemma 3 4B for output tokens 21.3x cheaper ($0.075 vs $1.60 per million) and work measured by AA Coding Index or LiveCodeBench (Artificial Analysis run), where it leads.

Which is cheaper, Gemma 3 4B or GPT-4.1 Mini?

Gemma 3 4B costs $0.045 per million input tokens and $0.075 per million output tokens; GPT-4.1 Mini costs $0.40 and $1.60. Cost per solved task is known for GPT-4.1 Mini only.

Which has the bigger context window, Gemma 3 4B or GPT-4.1 Mini?

GPT-4.1 Mini, with 1.05M tokens against 131K.

How many benchmarks is the Gemma 3 4B vs GPT-4.1 Mini comparison based on?

41 benchmarks have a result for both models as of October 21, 2026. Gemma 3 4B's coding index rests on 0 independent benchmarks and GPT-4.1 Mini's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next