Enter opens the highlighted result. Esc closes.

Gemma 2 27B vs GPT-5.4

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

Gemma 2 27BGoogle
Coding
No data
Overall
No data
Output $/M
$0.65
0
GPT-5.4OpenAI
Coding
64.4
Overall
69.6
Output $/M
$15.00
34
vs boards won of 34 shared

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

Only GPT-5.4 has a coding score, 64.4 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 23.1x cheaper ($0.65 vs $15.00 per million).

Shared results
34
Gemma 2 27B only
2
GPT-5.4 only
76
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 64.4 from 3 benchmarks.
Widest category
Math, 62.7 points apart on average over 3 shared benchmarks.
Widest single gap
OTIS Mock AIME: Gemma 2 27B 1.4% against GPT-5.4 97.8%, 96.4 points apart on a 0 to 100 scale.
Output price
Gemma 2 27B $0.65 against GPT-5.4 $15.00 per million output tokens, 23.1x apart.
Context window
Gemma 2 27B takes 8K tokens, GPT-5.4 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 2 27BBarsGPT-5.4Ties
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
BenchmarkGemma 2 27BGPT-5.4Leader
LMArena WebDevNot measured1464Only GPT-5.4 measured
AA Coding IndexNot measured71.1Only GPT-5.4 measured
LiveCodeBench (Vals AI)Not measured84.1%Only GPT-5.4 measured
SWE-bench Verified (Vals AI)Not measured78.2%Only GPT-5.4 measured
Vibe Code Bench (Vals AI)Not measured67.4%Only GPT-5.4 measured
Code migration (Vals AI)Not measured35.0%Only GPT-5.4 measured
ProgramBench (Vals AI)Not measured0.5%Only GPT-5.4 measured
SkillsBench (Vals AI)Not measured51.7%Only GPT-5.4 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured57.6%Only GPT-5.4 measured
Terminal-BenchNot measured81.8%Only GPT-5.4 measured
GSO-BenchNot measured31.4%Only GPT-5.4 measured
WeirdMLNot measured77.7%Only GPT-5.4 measured
MirrorCodeNot measured15.6%Only GPT-5.4 measured
ALE-BenchNot measured1607.0Only GPT-5.4 measured
LMArena Text: coding12111496GPT-5.4
LMArena Text: software and IT12281491GPT-5.4
LMArena WebDev: ReactNot measured1454Only GPT-5.4 measured
LMArena WebDev: HTMLNot measured1478Only GPT-5.4 measured
LMArena WebDev: from an imageNot measured1436Only GPT-5.4 measured
Neither model has a result on the other 20 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Gemma 2 27B and GPT-5.4
BenchmarkGemma 2 27BGPT-5.4Leader
AA Intelligence IndexNot measured39.0Only GPT-5.4 measured
Epoch Capabilities Index122.1157.3GPT-5.4
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index11 boards, none shared
Agentic work benchmarks for Gemma 2 27B and GPT-5.4
BenchmarkGemma 2 27BGPT-5.4Leader
Design Arena: agents building web appsNot measured1059Only GPT-5.4 measured
Design Arena: agents building full-stack appsNot measured1017Only GPT-5.4 measured
Design Arena: agents building mobile appsNot measured1087Only GPT-5.4 measured
Design Arena: agents building Android appsNot measured1030Only GPT-5.4 measured
Design Arena: agents building Godot gamesNot measured1135Only GPT-5.4 measured
τ²-Bench TelecomNot measured87.1%Only GPT-5.4 measured
APEX-AgentsNot measured52.4%Only GPT-5.4 measured
METR time horizonsNot measured74.3%Only GPT-5.4 measured
DeepResearch BenchNot measured35.1%Only GPT-5.4 measured
PostTrainBenchNot measured19.0%Only GPT-5.4 measured
Vending-Bench 2Not measured$6,144Only GPT-5.4 measured
Neither model has a result on the other 30 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index04
Reasoning benchmarks for Gemma 2 27B and GPT-5.4
BenchmarkGemma 2 27BGPT-5.4Leader
GPQA DiamondNot measured91.7%Only GPT-5.4 measured
MMMU Pro (Vals AI)Not measured87.5%Only GPT-5.4 measured
GPQA Diamond (Artificial Analysis run)Not measured92.0%Only GPT-5.4 measured
Humanity's Last Exam (Artificial Analysis run)Not measured43.7%Only GPT-5.4 measured
GPQA Diamond (Epoch AI run)36.5%93.3%GPT-5.4
ARC-AGINot measured93.7%Only GPT-5.4 measured
ARC-AGI-2Not measured74.0%Only GPT-5.4 measured
Chess puzzlesNot measured48.0%Only GPT-5.4 measured
Mystery game puzzlesNot measured37.0%Only GPT-5.4 measured
EBR-benchNot measured25.4%Only GPT-5.4 measured
LMArena Text: hard prompts11981485GPT-5.4
LMArena Text: expert11711507GPT-5.4
LMArena Text: hard prompts in English12061479GPT-5.4
LMArena Vision: diagramsNot measured1327Only GPT-5.4 measured
LMArena Vision: homeworkNot measured1336Only GPT-5.4 measured
Kagi LLM BenchmarkNot measured63.8%Only GPT-5.4 measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index03
Math benchmarks for Gemma 2 27B and GPT-5.4
BenchmarkGemma 2 27BGPT-5.4Leader
AIMENot measured96.7%Only GPT-5.4 measured
OTIS Mock AIME1.4%97.8%GPT-5.4
FrontierMath, tiers 1 to 3Not measured78.6%Only GPT-5.4 measured
FrontierMath, tier 4Not measured49.0%Only GPT-5.4 measured
ProofBenchNot measured56.0%Only GPT-5.4 measured
MATH level 527.9%Not measuredOnly Gemma 2 27B measured
LMArena Text: math12121488GPT-5.4
LMArena Text: mathematical work12211497GPT-5.4
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
BenchmarkGemma 2 27BGPT-5.4Leader
MMLU ProNot measured87.5%Only GPT-5.4 measured
LegalBench (Vals AI)68.0%86.0%GPT-5.4
CaseLaw (Vals AI)Not measured63.8%Only GPT-5.4 measured
CorpFin (Vals AI)Not measured65.3%Only GPT-5.4 measured
TaxEval (Vals AI)Not measured74.0%Only GPT-5.4 measured
MortgageTax (Vals AI)Not measured68.3%Only GPT-5.4 measured
MedQA (Vals AI)Not measured96.1%Only GPT-5.4 measured
MedCode (Vals AI)Not measured41.3%Only GPT-5.4 measured
SimpleQA VerifiedNot measured45.1%Only GPT-5.4 measured
MMLU75.7%Not measuredOnly Gemma 2 27B measured
LMArena Text: science12281479GPT-5.4
LMArena Text: medicine and healthcare11981458GPT-5.4
LMArena Text: legal and government12411486GPT-5.4
LMArena Text: business and finance12081474GPT-5.4
Neither model has a result on the other 4 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for Gemma 2 27B and GPT-5.4
BenchmarkGemma 2 27BGPT-5.4Leader
Design Arena: websitesNot measured1199Only GPT-5.4 measured
Design Arena: UI componentsNot measured1215Only GPT-5.4 measured
Design Arena: game devNot measured1195Only GPT-5.4 measured
Design Arena: data vizNot measured1196Only GPT-5.4 measured
Design Arena: 3DNot measured1066Only GPT-5.4 measured
Design Arena: all code categoriesNot measured1180Only GPT-5.4 measured
Design Arena: SVGNot measured1142Only GPT-5.4 measured
Design Arena: ASCII artNot measured1188Only GPT-5.4 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index019
General benchmarks for Gemma 2 27B and GPT-5.4
BenchmarkGemma 2 27BGPT-5.4Leader
SAGE (Vals AI)Not measured43.3%Only GPT-5.4 measured
MedScribe (Vals AI)Not measured77.5%Only GPT-5.4 measured
IFBenchNot measured73.9%Only GPT-5.4 measured
Long context reasoning (AA-LCR)Not measured82.0%Only GPT-5.4 measured
DTBench48.0%94.4%GPT-5.4
LMCA7.1%52.0%GPT-5.4
CL-benchNot measured27.9%Only GPT-5.4 measured
Furniture assemblyNot measured37.5%Only GPT-5.4 measured
CL-bench LifeNot measured21.7%Only GPT-5.4 measured
LMArena Text12311469GPT-5.4
LMArena Text: instruction following12061469GPT-5.4
LMArena Text: creative writing12401439GPT-5.4
LMArena VisionNot measured1303Only GPT-5.4 measured
LMArena Text: English12421467GPT-5.4
LMArena Text: non-English12171465GPT-5.4
LMArena Text: Chinese12211520GPT-5.4
LMArena Text: German12091472GPT-5.4
LMArena Text: Japanese11751485GPT-5.4
LMArena Text: Korean11741449GPT-5.4
LMArena Text: French12481493GPT-5.4
LMArena Text: Spanish12281452GPT-5.4
LMArena Text: Russian12341480GPT-5.4
LMArena Text: Polish12771472GPT-5.4
LMArena Text: multi-turn12241482GPT-5.4
LMArena Text: longer queries12301473GPT-5.4
LMArena Text: writing and language12491458GPT-5.4
LMArena Text: entertainment and media12121438GPT-5.4
LMArena Vision: EnglishNot measured1301Only GPT-5.4 measured
LMArena Vision: ChineseNot measured1354Only GPT-5.4 measured
LMArena Vision: reading textNot measured1312Only GPT-5.4 measured
LMArena Vision: humorNot measured1284Only GPT-5.4 measured
LMArena Vision: recognizing thingsNot measured1251Only GPT-5.4 measured
LMArena Vision: creative writingNot measured1283Only GPT-5.4 measured
LMArena DocumentNot measured1471Only GPT-5.4 measured
Neither model has a result on the other 12 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
BenchmarkGemma 2 27BGPT-5.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 2 27B$0.0010Fits in one request
GPT-5.4$0.010Fits in one request

Gemma 2 27B costs less

Repository review

50K input + 3K output tokens

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

Gemma 2 27B costs less

Agent loop

200K input + 10K output tokens

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

Gemma 2 27B 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
SpecificationGoogle Gemma 2 27BOpenAI GPT-5.4
MakerGoogleOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJuly 13, 2024March 5, 2026
Context window8K1.05M
Input $/Mtok$0.65$2.50
Output $/Mtok$0.65$15.00
Coding indexNot benchmarked64.4
Independent measurements behind it03
Cost per solved taskNot computable$1.02
SourceOpenRouter listingOpenRouter listing

Questions

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

Only GPT-5.4 has a coding score, 64.4 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 23.1x cheaper ($0.65 vs $15.00 per million).

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

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

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

GPT-5.4, with 1.05M tokens against 8K.

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

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

Compare next