Gemma 2 27B vs GPT-4o-mini (2024-07-18)
Gemma 2 27B and GPT-4o-mini (2024-07-18) cost about the same per output token ($0.65 vs $0.60 per million). Updated October 22, 2026; 32 benchmarks have a result for both.
Gemma 2 27B or GPT-4o-mini (2024-07-18): which to pick
Neither model has a coding score yet, so the two cannot be ranked on coding.
Pick Gemma 2 27B for work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.
- Shared results
- 32
- Gemma 2 27B only
- 4
- GPT-4o-mini (2024-07-18) only
- 14
- Like-for-like categories
- 5 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.
Coding
Vibe Coding Index, six public coding benchmarks
No call
Neither has a coding score yet.
One side not measured
Long documents
Listed context window
GPT-4o-mini (2024-07-18)
GPT-4o-mini (2024-07-18) takes 128K tokens against 8K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GPT-4o-mini (2024-07-18)
Gemma 2 27B $0.0010, GPT-4o-mini (2024-07-18) $0.0004 per turn.
List prices
At a glance
- Coding index
- Gemma 2 27B not benchmarked, GPT-4o-mini (2024-07-18) not benchmarked.
- Widest category
- Math, 12.0 points apart on average over 4 shared benchmarks.
- Widest single gap
- MATH level 5: Gemma 2 27B 27.9% against GPT-4o-mini (2024-07-18) 52.6%, 24.7 points apart on a 0 to 100 scale.
- Output price
- Gemma 2 27B $0.65 against GPT-4o-mini (2024-07-18) $0.60 per million output tokens, 1.1x apart.
- Context window
- Gemma 2 27B takes 8K tokens, GPT-4o-mini (2024-07-18) 128K.
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.
| Category | Gemma 2 27B | Bars | GPT-4o-mini (2024-07-18) | Ties |
|---|---|---|---|---|
| Coding | 0 | 2 | ||
| Reasoning | 0 | 4 | ||
| Math | 0 | 4 | ||
| Knowledge | 0 | 5 | ||
| General | 1 | 16 | ||
| All shared boards | 1 | 31 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
| Benchmark | Gemma 2 27B | GPT-4o-mini (2024-07-18) | Leader |
|---|---|---|---|
| Aider polyglot | Not measured | 3.6% | Only GPT-4o-mini (2024-07-18) measured |
| WeirdML | Not measured | 11.8% | Only GPT-4o-mini (2024-07-18) measured |
| LMArena Text: coding | 1211 | 1290 | GPT-4o-mini (2024-07-18) |
| LMArena Text: software and IT | 1228 | 1291 | GPT-4o-mini (2024-07-18) |
| Neither model has a result on the other 39 boards here | |||
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
| Benchmark | Gemma 2 27B | GPT-4o-mini (2024-07-18) | Leader |
|---|---|---|---|
| Epoch Capabilities Index | 122.1 | Not measured | Only Gemma 2 27B measured |
| Neither model has a result on the other 1 board here | |||
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
| Benchmark | Gemma 2 27B | GPT-4o-mini (2024-07-18) | Leader |
|---|---|---|---|
| BALROG | Not measured | 17.4% | Only GPT-4o-mini (2024-07-18) measured |
| Neither model has a result on the other 41 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | Gemma 2 27B | GPT-4o-mini (2024-07-18) | Leader |
|---|---|---|---|
| GPQA Diamond (Epoch AI run) | 36.5% | 37.7% | GPT-4o-mini (2024-07-18) |
| SimpleBench | Not measured | 10.7% | Only GPT-4o-mini (2024-07-18) measured |
| Chess puzzles | Not measured | 3.0% | Only GPT-4o-mini (2024-07-18) measured |
| Mystery game puzzles | Not measured | 12.0% | Only GPT-4o-mini (2024-07-18) measured |
| VPCT | Not measured | 34.0% | Only GPT-4o-mini (2024-07-18) measured |
| LMArena Text: hard prompts | 1198 | 1267 | GPT-4o-mini (2024-07-18) |
| LMArena Text: expert | 1171 | 1234 | GPT-4o-mini (2024-07-18) |
| LMArena Text: hard prompts in English | 1206 | 1278 | GPT-4o-mini (2024-07-18) |
| Neither model has a result on the other 15 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | Gemma 2 27B | GPT-4o-mini (2024-07-18) | Leader |
|---|---|---|---|
| OTIS Mock AIME | 1.4% | 6.9% | GPT-4o-mini (2024-07-18) |
| FrontierMath, tiers 1 to 3 | Not measured | 0.7% | Only GPT-4o-mini (2024-07-18) measured |
| MATH level 5 | 27.9% | 52.6% | GPT-4o-mini (2024-07-18) |
| LMArena Text: math | 1212 | 1267 | GPT-4o-mini (2024-07-18) |
| LMArena Text: mathematical work | 1221 | 1271 | GPT-4o-mini (2024-07-18) |
| Neither model has a result on the other 9 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
| Benchmark | Gemma 2 27B | GPT-4o-mini (2024-07-18) | Leader |
|---|---|---|---|
| LegalBench (Vals AI) | 68.0% | Not measured | Only Gemma 2 27B measured |
| SimpleQA Verified | Not measured | 8.3% | Only GPT-4o-mini (2024-07-18) measured |
| MMLU | 75.7% | 76.7% | GPT-4o-mini (2024-07-18) |
| GeoBench | Not measured | 64.0% | Only GPT-4o-mini (2024-07-18) measured |
| LMArena Text: science | 1228 | 1286 | GPT-4o-mini (2024-07-18) |
| LMArena Text: medicine and healthcare | 1198 | 1282 | GPT-4o-mini (2024-07-18) |
| LMArena Text: legal and government | 1241 | 1305 | GPT-4o-mini (2024-07-18) |
| LMArena Text: business and finance | 1208 | 1265 | GPT-4o-mini (2024-07-18) |
| Neither model has a result on the other 12 boards here | |||
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemma 2 27B | GPT-4o-mini (2024-07-18) | Leader |
|---|---|---|---|
| Neither model has a result on 9 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index116
| Benchmark | Gemma 2 27B | GPT-4o-mini (2024-07-18) | Leader |
|---|---|---|---|
| DTBench | 48.0% | Not measured | Only Gemma 2 27B measured |
| LMCA | 7.1% | Not measured | Only Gemma 2 27B measured |
| Creative writing (Lech Mazur) | Not measured | 67.2% | Only GPT-4o-mini (2024-07-18) measured |
| LMArena Text | 1231 | 1286 | GPT-4o-mini (2024-07-18) |
| LMArena Text: instruction following | 1206 | 1258 | GPT-4o-mini (2024-07-18) |
| LMArena Text: creative writing | 1240 | 1268 | GPT-4o-mini (2024-07-18) |
| LMArena Vision | Not measured | 1066 | Only GPT-4o-mini (2024-07-18) measured |
| LMArena Text: English | 1242 | 1301 | GPT-4o-mini (2024-07-18) |
| LMArena Text: non-English | 1217 | 1266 | GPT-4o-mini (2024-07-18) |
| LMArena Text: Chinese | 1221 | 1265 | GPT-4o-mini (2024-07-18) |
| LMArena Text: German | 1209 | 1272 | GPT-4o-mini (2024-07-18) |
| LMArena Text: Japanese | 1175 | 1216 | GPT-4o-mini (2024-07-18) |
| LMArena Text: Korean | 1174 | 1195 | GPT-4o-mini (2024-07-18) |
| LMArena Text: French | 1248 | 1297 | GPT-4o-mini (2024-07-18) |
| LMArena Text: Spanish | 1228 | 1276 | GPT-4o-mini (2024-07-18) |
| LMArena Text: Russian | 1234 | 1275 | GPT-4o-mini (2024-07-18) |
| LMArena Text: Polish | 1277 | 1244 | Gemma 2 27B |
| LMArena Text: multi-turn | 1224 | 1285 | GPT-4o-mini (2024-07-18) |
| LMArena Text: longer queries | 1230 | 1289 | GPT-4o-mini (2024-07-18) |
| LMArena Text: writing and language | 1249 | 1282 | GPT-4o-mini (2024-07-18) |
| LMArena Text: entertainment and media | 1212 | 1253 | GPT-4o-mini (2024-07-18) |
| LMArena Vision: English | Not measured | 1072 | Only GPT-4o-mini (2024-07-18) measured |
| LMArena Vision: Chinese | Not measured | 1033 | Only GPT-4o-mini (2024-07-18) measured |
| Neither model has a result on the other 25 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemma 2 27B | GPT-4o-mini (2024-07-18) | Leader |
|---|---|---|---|
| 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
GPT-4o-mini (2024-07-18) costs less
Repository review
50K input + 3K output tokens
GPT-4o-mini (2024-07-18) costs less
Agent loop
200K input + 10K output tokens
GPT-4o-mini (2024-07-18) 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.
| Specification | Google Gemma 2 27B | OpenAI GPT-4o-mini (2024-07-18) |
|---|---|---|
| Maker | OpenAI | |
| Weights | Open weights | No public weights listed |
| Released | July 13, 2024 | July 18, 2024 |
| Context window | 8K | 128K |
| Input $/Mtok | $0.65 | $0.15 |
| Output $/Mtok | $0.65 | $0.60 |
| Coding index | Not benchmarked | Not benchmarked |
| Independent measurements behind it | 0 | 0 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemma 2 27B better than GPT-4o-mini (2024-07-18) for coding?
Neither model has a coding score yet, so the two cannot be ranked on coding. Pick Gemma 2 27B for work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.
Which is cheaper, Gemma 2 27B or GPT-4o-mini (2024-07-18)?
Gemma 2 27B costs $0.65 per million input tokens and $0.65 per million output tokens; GPT-4o-mini (2024-07-18) costs $0.15 and $0.60. Cost per solved task is known for neither of them.
Which has the bigger context window, Gemma 2 27B or GPT-4o-mini (2024-07-18)?
GPT-4o-mini (2024-07-18), with 128K tokens against 8K.
How many benchmarks is the Gemma 2 27B vs GPT-4o-mini (2024-07-18) comparison based on?
32 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-4o-mini (2024-07-18)'s on 0. Where only one model has a result, the page says so instead of naming a winner.