Enter opens the highlighted result. Esc closes.

Gemma 3 4B vs GPT-4

Updated October 21, 2026. 30 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

Gemma 3 4BGoogle
Coding
No data
Overall
4.8
Output $/M
$0.075
22
GPT-4OpenAI
Coding
No data
Overall
6.7
Output $/M
$60.00
8
vs boards won of 30 shared

Decision reading

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

Gemma 3 4B has the edge where output tokens cost 800.0x less, and where the context window is larger, 131K against 8K tokens.

Shared results
30
Gemma 3 4B only
9
GPT-4 only
15
Like-for-like categories
6 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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 not benchmarked.
Widest category
Knowledge, 23.8 points apart on average over 5 shared benchmarks.
Widest single gap
LMArena Text: medicine and healthcare: Gemma 3 4B 1342 against GPT-4 1145, 32.8 points apart on a 0 to 100 scale.
Output price
Gemma 3 4B $0.075 against GPT-4 $60.00 per million output tokens, 800.0x apart.
Context window
Gemma 3 4B takes 131K tokens, GPT-4 8K.

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-4Ties
Coding21
Intelligence02
Reasoning31
Math20
Knowledge41
General113
All shared boards228
CodingLike-for-likeSix of these boards feed the Vibe Coding Index21
Coding benchmarks for Gemma 3 4B and GPT-4
BenchmarkGemma 3 4BGPT-4Leader
SWE-bench VerifiedNot measured22.4%Only GPT-4 measured
SWE-bench LiteNot measured39.7%Only GPT-4 measured
SWE-bench (full test set)Not measured12.5%Only GPT-4 measured
AA Coding Index2.713.1GPT-4
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
LMArena Text: coding12301209Gemma 3 4B
LMArena Text: software and IT12691195Gemma 3 4B
Neither model has a result on the other 30 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Gemma 3 4B and GPT-4
BenchmarkGemma 3 4BGPT-4Leader
AA Intelligence Index4.86.7GPT-4
Epoch Capabilities Index115.9125.7GPT-4
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
Agentic work benchmarks for Gemma 3 4B and GPT-4
BenchmarkGemma 3 4BGPT-4Leader
τ²-Bench Telecom5.0%Not measuredOnly Gemma 3 4B measured
Neither model has a result on the other 38 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index31
Reasoning benchmarks for Gemma 3 4B and GPT-4
BenchmarkGemma 3 4BGPT-4Leader
GPQA Diamond (Artificial Analysis run)29.1%34.9%GPT-4
Humanity's Last Exam (Artificial Analysis run)5.3%Not measuredOnly Gemma 3 4B measured
GPQA Diamond (Epoch AI run)23.2%Not measuredOnly Gemma 3 4B measured
BIG-Bench HardNot measured75.1%Only GPT-4 measured
LMArena Text: hard prompts12531200Gemma 3 4B
LMArena Text: expert12231149Gemma 3 4B
LMArena Text: hard prompts in English12531209Gemma 3 4B
Neither model has a result on the other 14 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index20
Math benchmarks for Gemma 3 4B and GPT-4
BenchmarkGemma 3 4BGPT-4Leader
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%Not measuredOnly Gemma 3 4B measured
GSM8KNot measured92.0%Only GPT-4 measured
LMArena Text: math12391230Gemma 3 4B
LMArena Text: mathematical work12561228Gemma 3 4B
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index41
Knowledge benchmarks for Gemma 3 4B and GPT-4
BenchmarkGemma 3 4BGPT-4Leader
MMLU Pro (Artificial Analysis run)41.7%56.2%GPT-4
MMLUNot measured86.4%Only GPT-4 measured
AI2 Reasoning ChallengeNot measured96.3%Only GPT-4 measured
LMArena Text: science13061177Gemma 3 4B
LMArena Text: medicine and healthcare13421145Gemma 3 4B
LMArena Text: legal and government13271191Gemma 3 4B
LMArena Text: business and finance13111145Gemma 3 4B
Neither model has a result on the other 10 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-4
BenchmarkGemma 3 4BGPT-4Leader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index113
General benchmarks for Gemma 3 4B and GPT-4
BenchmarkGemma 3 4BGPT-4Leader
IFBench28.3%33.2%GPT-4
Long context reasoning (AA-LCR)6.7%Not measuredOnly Gemma 3 4B measured
DTBench50.9%62.7%GPT-4
LMCA2.8%17.1%GPT-4
HellaSwagNot measured95.3%Only GPT-4 measured
WinoGrandeNot measured87.5%Only GPT-4 measured
LMArena Text12911206Gemma 3 4B
LMArena Text: instruction following12391201Gemma 3 4B
LMArena Text: creative writing12701191Gemma 3 4B
LMArena Text: English13001220Gemma 3 4B
LMArena Text: non-English12731194Gemma 3 4B
LMArena Text: ChineseNot measured1184Only GPT-4 measured
LMArena Text: German12811198Gemma 3 4B
LMArena Text: JapaneseNot measured1137Only GPT-4 measured
LMArena Text: KoreanNot measured1087Only GPT-4 measured
LMArena Text: FrenchNot measured1220Only GPT-4 measured
LMArena Text: SpanishNot measured1197Only GPT-4 measured
LMArena Text: Russian12941195Gemma 3 4B
LMArena Text: PolishNot measured1265Only GPT-4 measured
LMArena Text: multi-turn12551206Gemma 3 4B
LMArena Text: longer queries12731190Gemma 3 4B
LMArena Text: writing and language12881219Gemma 3 4B
LMArena Text: entertainment and media12331184Gemma 3 4B
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-4
BenchmarkGemma 3 4BGPT-4Leader
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$0.060Fits 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.68Exceeds the context window

Gemma 3 4B costs less

Agent loop

200K input + 10K output tokens

Gemma 3 4B$0.0097Exceeds the context window
GPT-4$6.60Exceeds 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-4
SpecificationGoogle Gemma 3 4BOpenAI GPT-4
MakerGoogleOpenAI
WeightsOpen weightsNo public weights listed
ReleasedMarch 13, 2025May 28, 2023
Context window131K8K
Input $/Mtok$0.045$30.00
Output $/Mtok$0.075$60.00
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-4 for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Gemma 3 4B has the edge where output tokens cost 800.0x less, and where the context window is larger, 131K against 8K tokens.

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

Gemma 3 4B costs $0.045 per million input tokens and $0.075 per million output tokens; GPT-4 costs $30.00 and $60.00. Cost per solved task is known for neither of them.

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

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

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

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

Compare next