Enter opens the highlighted result. Esc closes.

Gemma 3 4B vs GPT-4.1

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

Gemma 3 4BGoogle
Coding
No data
Overall
4.8
Output $/M
$0.075
1
GPT-4.1OpenAI
Coding
No data
Overall
12.7
Output $/M
$8.00
37
vs boards won of 38 shared

Gemma 3 4B or GPT-4.1: 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 106.7x cheaper ($0.075 vs $8.00 per million) and work measured by LiveCodeBench (Artificial Analysis run) or Terminal-Bench Hard (Artificial Analysis run), where it leads.

Shared results
38
Gemma 3 4B only
1
GPT-4.1 only
49
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 not benchmarked.
Widest category
Agentic work, 42.1 points apart on average over 1 shared benchmark.
Widest single gap
Long context reasoning (AA-LCR): Gemma 3 4B 6.7% against GPT-4.1 68.3%, 61.7 points apart on a 0 to 100 scale.
Output price
Gemma 3 4B $0.075 against GPT-4.1 $8.00 per million output tokens, 106.7x apart.
Context window
Gemma 3 4B takes 131K tokens, GPT-4.1 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.1Ties
Coding04
Intelligence02
Agentic work01
Reasoning15
Math05
Knowledge05
General015
All shared boards137
CodingLike-for-likeSix of these boards feed the Vibe Coding Index04
Coding benchmarks for Gemma 3 4B and GPT-4.1
BenchmarkGemma 3 4BGPT-4.1Leader
Aider polyglotNot measured52.4%Only GPT-4.1 measured
SWE-bench VerifiedNot measured39.6%Only GPT-4.1 measured
SWE-bench MultimodalNot measured31.1%Only GPT-4.1 measured
AA Coding Index2.7Not measuredOnly Gemma 3 4B measured
LiveCodeBench (Vals AI)Not measured54.7%Only GPT-4.1 measured
LiveCodeBench (Artificial Analysis run)11.2%45.7%GPT-4.1
Terminal-Bench Hard (Artificial Analysis run)0.8%13.6%GPT-4.1
WeirdMLNot measured39.0%Only GPT-4.1 measured
ALE-BenchNot measured558.1Only GPT-4.1 measured
LMArena Text: coding12301390GPT-4.1
LMArena Text: software and IT12691391GPT-4.1
Neither model has a result on the other 27 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Gemma 3 4B and GPT-4.1
BenchmarkGemma 3 4BGPT-4.1Leader
AA Intelligence Index4.812.7GPT-4.1
Epoch Capabilities Index115.9136.7GPT-4.1
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for Gemma 3 4B and GPT-4.1
BenchmarkGemma 3 4BGPT-4.1Leader
τ²-Bench Telecom5.0%47.1%GPT-4.1
Neither model has a result on the other 38 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index15
Reasoning benchmarks for Gemma 3 4B and GPT-4.1
BenchmarkGemma 3 4BGPT-4.1Leader
GPQA DiamondNot measured65.4%Only GPT-4.1 measured
MMMU Pro (Vals AI)Not measured72.4%Only GPT-4.1 measured
GPQA Diamond (Artificial Analysis run)29.1%66.6%GPT-4.1
Humanity's Last Exam (Artificial Analysis run)5.3%4.2%Gemma 3 4B
GPQA Diamond (Epoch AI run)23.2%66.9%GPT-4.1
ARC-AGINot measured5.5%Only GPT-4.1 measured
ARC-AGI-2Not measured0.4%Only GPT-4.1 measured
SimpleBenchNot measured27.0%Only GPT-4.1 measured
Chess puzzlesNot measured3.0%Only GPT-4.1 measured
LMArena Text: hard prompts12531384GPT-4.1
LMArena Text: expert12231364GPT-4.1
LMArena Text: hard prompts in English12531393GPT-4.1
LMArena Vision: diagramsNot measured1215Only GPT-4.1 measured
LMArena Vision: homeworkNot measured1248Only GPT-4.1 measured
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
BenchmarkGemma 3 4BGPT-4.1Leader
AIMENot measured39.6%Only GPT-4.1 measured
MATH 500 (Vals AI)Not measured87.2%Only GPT-4.1 measured
MGSM (Vals AI)Not measured87.7%Only GPT-4.1 measured
AA Math Index12.734.7GPT-4.1
AIME 2025 (Artificial Analysis run)12.7%34.7%GPT-4.1
OTIS Mock AIME7.5%38.3%GPT-4.1
FrontierMath, tiers 1 to 3Not measured6.0%Only GPT-4.1 measured
MATH level 5Not measured83.0%Only GPT-4.1 measured
LMArena Text: math12391369GPT-4.1
LMArena Text: mathematical work12561360GPT-4.1
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
Knowledge benchmarks for Gemma 3 4B and GPT-4.1
BenchmarkGemma 3 4BGPT-4.1Leader
MMLU ProNot measured80.5%Only GPT-4.1 measured
LegalBench (Vals AI)Not measured83.1%Only GPT-4.1 measured
CaseLaw (Vals AI)Not measured69.9%Only GPT-4.1 measured
CorpFin (Vals AI)Not measured63.0%Only GPT-4.1 measured
TaxEval (Vals AI)Not measured75.1%Only GPT-4.1 measured
MortgageTax (Vals AI)Not measured65.9%Only GPT-4.1 measured
MedQA (Vals AI)Not measured91.2%Only GPT-4.1 measured
MMLU Pro (Artificial Analysis run)41.7%80.6%GPT-4.1
SimpleQA VerifiedNot measured31.1%Only GPT-4.1 measured
GeoBenchNot measured72.0%Only GPT-4.1 measured
LMArena Text: science13061382GPT-4.1
LMArena Text: medicine and healthcare13421379GPT-4.1
LMArena Text: legal and government13271399GPT-4.1
LMArena Text: business and finance13111369GPT-4.1
Neither model has a result on the other 3 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
BenchmarkGemma 3 4BGPT-4.1Leader
Design Arena: websitesNot measured1039Only GPT-4.1 measured
Design Arena: UI componentsNot measured1000Only GPT-4.1 measured
Design Arena: game devNot measured1080Only GPT-4.1 measured
Design Arena: data vizNot measured1104Only GPT-4.1 measured
Design Arena: 3DNot measured850Only GPT-4.1 measured
Design Arena: all code categoriesNot measured1026Only GPT-4.1 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
BenchmarkGemma 3 4BGPT-4.1Leader
IFBench28.3%43.0%GPT-4.1
Long context reasoning (AA-LCR)6.7%68.3%GPT-4.1
DTBench50.9%68.3%GPT-4.1
LMCA2.8%25.6%GPT-4.1
Fiction.LiveBenchNot measured63.9%Only GPT-4.1 measured
LMArena Text12911383GPT-4.1
LMArena Text: instruction following12391367GPT-4.1
LMArena Text: creative writing12701363GPT-4.1
LMArena VisionNot measured1210Only GPT-4.1 measured
LMArena Text: English13001392GPT-4.1
LMArena Text: non-English12731370GPT-4.1
LMArena Text: ChineseNot measured1382Only GPT-4.1 measured
LMArena Text: German12811381GPT-4.1
LMArena Text: JapaneseNot measured1319Only GPT-4.1 measured
LMArena Text: KoreanNot measured1338Only GPT-4.1 measured
LMArena Text: FrenchNot measured1382Only GPT-4.1 measured
LMArena Text: SpanishNot measured1376Only GPT-4.1 measured
LMArena Text: Russian12941377GPT-4.1
LMArena Text: PolishNot measured1389Only GPT-4.1 measured
LMArena Text: multi-turn12551397GPT-4.1
LMArena Text: longer queries12731385GPT-4.1
LMArena Text: writing and language12881371GPT-4.1
LMArena Text: entertainment and media12331365GPT-4.1
LMArena Vision: EnglishNot measured1209Only GPT-4.1 measured
LMArena Vision: ChineseNot measured1226Only GPT-4.1 measured
LMArena Vision: reading textNot measured1218Only GPT-4.1 measured
LMArena Vision: humorNot measured1196Only GPT-4.1 measured
LMArena Vision: captioningNot measured1207Only GPT-4.1 measured
LMArena Vision: recognizing thingsNot measured1208Only GPT-4.1 measured
LMArena Vision: creative writingNot measured1210Only GPT-4.1 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
BenchmarkGemma 3 4BGPT-4.1Leader
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$0.0060Fits 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$0.124Fits 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$0.480Fits 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
SpecificationGoogle Gemma 3 4BOpenAI GPT-4.1
MakerGoogleOpenAI
WeightsOpen weightsNo public weights listed
ReleasedMarch 13, 2025April 14, 2025
Context window131K1.05M
Input $/Mtok$0.045$2.00
Output $/Mtok$0.075$8.00
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computable$0.37
SourceOpenRouter listingOpenRouter listing

Questions

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

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

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

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

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

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

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

38 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's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next