Enter opens the highlighted result. Esc closes.

Gemma 2 27B vs GPT-5.4 Nano

Gemma 2 27B costs 1.9x less per output token than GPT-5.4 Nano ($0.65 vs $1.25 per million). Updated October 22, 2026; 34 benchmarks have a result for both.

Gemma 2 27BGoogle
Coding
No data
Overall
No data
Output $/M
$0.65
0
GPT-5.4 NanoOpenAI
Coding
44.8
Overall
45.7
Output $/M
$1.25
34
vs boards won of 34 shared

Gemma 2 27B or GPT-5.4 Nano: which to pick

Only GPT-5.4 Nano has a coding score, 44.8 on the Vibe Coding Index; Gemma 2 27B has none, so the two cannot be ranked on coding.

Pick Gemma 2 27B for output tokens 1.9x cheaper ($0.65 vs $1.25 per million).

Shared results
34
Gemma 2 27B only
2
GPT-5.4 Nano only
51
Like-for-like categories
6 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 2 27B not benchmarked, GPT-5.4 Nano 44.8 from 2 benchmarks.
Widest category
Math, 50.0 points apart on average over 3 shared benchmarks.
Widest single gap
OTIS Mock AIME: Gemma 2 27B 1.4% against GPT-5.4 Nano 87.8%, 86.4 points apart on a 0 to 100 scale.
Output price
Gemma 2 27B $0.65 against GPT-5.4 Nano $1.25 per million output tokens, 1.9x apart.
Context window
Gemma 2 27B takes 8K tokens, GPT-5.4 Nano 400K.

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 2 27BBarsGPT-5.4 NanoTies
Coding02
Intelligence01
Reasoning04
Math03
Knowledge05
General019
All shared boards034
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
Coding benchmarks for Gemma 2 27B and GPT-5.4 Nano
BenchmarkGemma 2 27BGPT-5.4 NanoLeader
AA Coding IndexNot measured56.1Only GPT-5.4 Nano measured
LiveCodeBench (Vals AI)Not measured84.0%Only GPT-5.4 Nano measured
SWE-bench Verified (Vals AI)Not measured69.8%Only GPT-5.4 Nano measured
Vibe Code Bench (Vals AI)Not measured26.1%Only GPT-5.4 Nano measured
Code migration (Vals AI)Not measured14.5%Only GPT-5.4 Nano measured
Terminal-Bench 2.1 (Vals AI)Not measured41.6%Only GPT-5.4 Nano measured
SciCodeNot measured47.2%Only GPT-5.4 Nano measured
Terminal-Bench Hard (Artificial Analysis run)Not measured42.4%Only GPT-5.4 Nano measured
WeirdMLNot measured49.2%Only GPT-5.4 Nano measured
ALE-BenchNot measured1004.5Only GPT-5.4 Nano measured
LMArena Text: coding12111404GPT-5.4 Nano
LMArena Text: software and IT12281402GPT-5.4 Nano
Neither model has a result on the other 27 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Gemma 2 27B and GPT-5.4 Nano
BenchmarkGemma 2 27BGPT-5.4 NanoLeader
AA Intelligence IndexNot measured20.7Only GPT-5.4 Nano measured
Epoch Capabilities Index122.1146.0GPT-5.4 Nano
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Agentic work benchmarks for Gemma 2 27B and GPT-5.4 Nano
BenchmarkGemma 2 27BGPT-5.4 NanoLeader
AA Agentic IndexNot measured16.0Only GPT-5.4 Nano measured
Finance Agent (Vals AI)Not measured38.2%Only GPT-5.4 Nano measured
Tax Agent Bench (Vals AI)Not measured5.0%Only GPT-5.4 Nano measured
Legal Research Bench (Vals AI)Not measured6.3%Only GPT-5.4 Nano measured
Excel Modeling Benchmark (Vals AI)Not measured44.8%Only GPT-5.4 Nano measured
τ²-Bench TelecomNot measured76.0%Only GPT-5.4 Nano measured
Neither model has a result on the other 35 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index04
Reasoning benchmarks for Gemma 2 27B and GPT-5.4 Nano
BenchmarkGemma 2 27BGPT-5.4 NanoLeader
GPQA DiamondNot measured77.5%Only GPT-5.4 Nano measured
MMMU Pro (Vals AI)Not measured73.6%Only GPT-5.4 Nano measured
GPQA Diamond (Artificial Analysis run)Not measured81.7%Only GPT-5.4 Nano measured
Humanity's Last Exam (Artificial Analysis run)Not measured28.3%Only GPT-5.4 Nano measured
GPQA Diamond (Epoch AI run)36.5%78.5%GPT-5.4 Nano
ARC-AGINot measured51.5%Only GPT-5.4 Nano measured
ARC-AGI-2Not measured5.7%Only GPT-5.4 Nano measured
Chess puzzlesNot measured45.0%Only GPT-5.4 Nano measured
Mystery game puzzlesNot measured9.0%Only GPT-5.4 Nano measured
LMArena Text: hard prompts11981381GPT-5.4 Nano
LMArena Text: expert11711396GPT-5.4 Nano
LMArena Text: hard prompts in English12061387GPT-5.4 Nano
LMArena Vision: diagramsNot measured1210Only GPT-5.4 Nano measured
LMArena Vision: homeworkNot measured1225Only GPT-5.4 Nano measured
Kagi LLM BenchmarkNot measured39.7%Only GPT-5.4 Nano measured
Neither model has a result on the other 7 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index03
Math benchmarks for Gemma 2 27B and GPT-5.4 Nano
BenchmarkGemma 2 27BGPT-5.4 NanoLeader
AIMENot measured88.8%Only GPT-5.4 Nano measured
OTIS Mock AIME1.4%87.8%GPT-5.4 Nano
FrontierMath, tiers 1 to 3Not measured44.9%Only GPT-5.4 Nano measured
FrontierMath, tier 4Not measured12.2%Only GPT-5.4 Nano measured
ProofBenchNot measured5.0%Only GPT-5.4 Nano measured
MATH level 527.9%Not measuredOnly Gemma 2 27B measured
LMArena Text: math12121405GPT-5.4 Nano
LMArena Text: mathematical work12211409GPT-5.4 Nano
Neither model has a result on the other 5 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
Knowledge benchmarks for Gemma 2 27B and GPT-5.4 Nano
BenchmarkGemma 2 27BGPT-5.4 NanoLeader
MMLU ProNot measured77.2%Only GPT-5.4 Nano measured
LegalBench (Vals AI)68.0%77.9%GPT-5.4 Nano
CaseLaw (Vals AI)Not measured51.9%Only GPT-5.4 Nano measured
CorpFin (Vals AI)Not measured61.2%Only GPT-5.4 Nano measured
TaxEval (Vals AI)Not measured67.4%Only GPT-5.4 Nano measured
MortgageTax (Vals AI)Not measured59.1%Only GPT-5.4 Nano measured
MedCode (Vals AI)Not measured41.0%Only GPT-5.4 Nano measured
SimpleQA VerifiedNot measured11.7%Only GPT-5.4 Nano measured
MMLU75.7%Not measuredOnly Gemma 2 27B measured
LMArena Text: science12281374GPT-5.4 Nano
LMArena Text: medicine and healthcare11981369GPT-5.4 Nano
LMArena Text: legal and government12411368GPT-5.4 Nano
LMArena Text: business and finance12081366GPT-5.4 Nano
Neither model has a result on the other 5 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for Gemma 2 27B and GPT-5.4 Nano
BenchmarkGemma 2 27BGPT-5.4 NanoLeader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index019
General benchmarks for Gemma 2 27B and GPT-5.4 Nano
BenchmarkGemma 2 27BGPT-5.4 NanoLeader
SAGE (Vals AI)Not measured38.1%Only GPT-5.4 Nano measured
MedScribe (Vals AI)Not measured77.1%Only GPT-5.4 Nano measured
Vals Multimodal IndexNot measured47.6%Only GPT-5.4 Nano measured
IFBenchNot measured75.9%Only GPT-5.4 Nano measured
Long context reasoning (AA-LCR)Not measured76.7%Only GPT-5.4 Nano measured
DTBench48.0%80.3%GPT-5.4 Nano
LMCA7.1%36.9%GPT-5.4 Nano
LMArena Text12311372GPT-5.4 Nano
LMArena Text: instruction following12061362GPT-5.4 Nano
LMArena Text: creative writing12401315GPT-5.4 Nano
LMArena VisionNot measured1196Only GPT-5.4 Nano measured
LMArena Text: English12421381GPT-5.4 Nano
LMArena Text: non-English12171359GPT-5.4 Nano
LMArena Text: Chinese12211391GPT-5.4 Nano
LMArena Text: German12091368GPT-5.4 Nano
LMArena Text: Japanese11751343GPT-5.4 Nano
LMArena Text: Korean11741321GPT-5.4 Nano
LMArena Text: French12481395GPT-5.4 Nano
LMArena Text: Spanish12281371GPT-5.4 Nano
LMArena Text: Russian12341363GPT-5.4 Nano
LMArena Text: Polish12771366GPT-5.4 Nano
LMArena Text: multi-turn12241382GPT-5.4 Nano
LMArena Text: longer queries12301365GPT-5.4 Nano
LMArena Text: writing and language12491338GPT-5.4 Nano
LMArena Text: entertainment and media12121325GPT-5.4 Nano
LMArena Vision: EnglishNot measured1202Only GPT-5.4 Nano measured
LMArena Vision: ChineseNot measured1232Only GPT-5.4 Nano measured
LMArena Vision: reading textNot measured1204Only GPT-5.4 Nano measured
LMArena Vision: humorNot measured1161Only GPT-5.4 Nano measured
LMArena Vision: recognizing thingsNot measured1141Only GPT-5.4 Nano measured
LMArena Vision: creative writingNot measured1159Only GPT-5.4 Nano measured
Neither model has a result on the other 15 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemma 2 27B and GPT-5.4 Nano
BenchmarkGemma 2 27BGPT-5.4 NanoLeader
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 2 27B$0.0010Fits in one request
GPT-5.4 Nano$0.0008Fits in one request

GPT-5.4 Nano costs less

Repository review

50K input + 3K output tokens

Gemma 2 27B$0.034Exceeds the context window
GPT-5.4 Nano$0.014Fits in one request

GPT-5.4 Nano costs less

Agent loop

200K input + 10K output tokens

Gemma 2 27B$0.137Exceeds the context window
GPT-5.4 Nano$0.052Fits in one request

GPT-5.4 Nano 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 2 27B and GPT-5.4 Nano
SpecificationGoogle Gemma 2 27BOpenAI GPT-5.4 Nano
MakerGoogleOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJuly 13, 2024March 17, 2026
Context window8K400K
Input $/Mtok$0.65$0.20
Output $/Mtok$0.65$1.25
Coding indexNot benchmarked44.8
Independent measurements behind it02
Cost per solved taskNot computable$0.14
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 2 27B better than GPT-5.4 Nano for coding?

Only GPT-5.4 Nano has a coding score, 44.8 on the Vibe Coding Index; Gemma 2 27B has none, so the two cannot be ranked on coding. Pick Gemma 2 27B for output tokens 1.9x cheaper ($0.65 vs $1.25 per million).

Which is cheaper, Gemma 2 27B or GPT-5.4 Nano?

Gemma 2 27B costs $0.65 per million input tokens and $0.65 per million output tokens; GPT-5.4 Nano costs $0.20 and $1.25. Cost per solved task is known for GPT-5.4 Nano only.

Which has the bigger context window, Gemma 2 27B or GPT-5.4 Nano?

GPT-5.4 Nano, with 400K tokens against 8K.

How many benchmarks is the Gemma 2 27B vs GPT-5.4 Nano comparison based on?

34 benchmarks have a result for both models as of October 22, 2026. Gemma 2 27B's coding index rests on 0 independent benchmarks and GPT-5.4 Nano's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next