Gemma 2 27B vs Grok 4.7
Gemma 2 27B costs 9.2x less per output token than Grok 4.7 ($0.65 vs $6.00 per million). Updated October 21, 2026; 34 benchmarks have a result for both.
Gemma 2 27B or Grok 4.7: which to pick
Only Grok 4.7 has a coding score, 66.7 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 9.2x cheaper ($0.65 vs $6.00 per million).
- Shared results
- 34
- Gemma 2 27B only
- 2
- Grok 4.7 only
- 65
- 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.
Coding
Vibe Coding Index, six public coding benchmarks
No call
Only Grok 4.7 has a coding score, so no call is made.
One side not measured
Intelligence
AA Intelligence Index
No call
Only Grok 4.7 has a AA Intelligence Index result, 46.4.
Directional only
Web design
Design Arena: websites
No call
Only Grok 4.7 has a Design Arena: websites result, 1254.
Directional only
General
Vals Index
No call
Only Grok 4.7 has a Vals Index result, 58.6%.
Directional only
Long documents
Listed context window
Grok 4.7
Grok 4.7 takes 500K tokens against 8K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 2 27B
Gemma 2 27B $0.0010, Grok 4.7 $0.0050 per turn.
List prices
At a glance
- Coding index
- Gemma 2 27B not benchmarked, Grok 4.7 66.7 from 5 benchmarks.
- Widest category
- Math, 55.3 points apart on average over 3 shared benchmarks.
- Widest single gap
- OTIS Mock AIME: Gemma 2 27B 1.4% against Grok 4.7 98.1%, 96.7 points apart on a 0 to 100 scale.
- Output price
- Gemma 2 27B $0.65 against Grok 4.7 $6.00 per million output tokens, 9.2x apart.
- Context window
- Gemma 2 27B takes 8K tokens, Grok 4.7 500K.
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 | Grok 4.7 | Ties |
|---|---|---|---|---|
| Coding | 0 | 2 | ||
| Intelligence | 0 | 1 | ||
| Reasoning | 0 | 4 | ||
| Math | 0 | 3 | ||
| Knowledge | 0 | 5 | ||
| General | 0 | 19 | ||
| All shared boards | 0 | 34 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
| Benchmark | Gemma 2 27B | Grok 4.7 | Leader |
|---|---|---|---|
| LiveBench coding | Not measured | 84.5% | Only Grok 4.7 measured |
| LMArena WebDev | Not measured | 1637 | Only Grok 4.7 measured |
| Terminal-Bench 4 (Vals AI) | Not measured | 28.8% | Only Grok 4.7 measured |
| Vibe Code Bench (Vals AI) | Not measured | 86.2% | Only Grok 4.7 measured |
| Code migration (Vals AI) | Not measured | 44.8% | Only Grok 4.7 measured |
| ProgramBench (Vals AI) | Not measured | 0.5% | Only Grok 4.7 measured |
| IOI (Vals AI) | Not measured | 57.7% | Only Grok 4.7 measured |
| Terminal-Bench 2.1 (Vals AI) | Not measured | 73.4% | Only Grok 4.7 measured |
| SWE-bench Multimodal (Vals AI) | Not measured | 42.9% | Only Grok 4.7 measured |
| CyberBench (Vals AI) | Not measured | 69.5% | Only Grok 4.7 measured |
| SciCode | Not measured | 57.8% | Only Grok 4.7 measured |
| FrontierCode | Not measured | 47.6% | Only Grok 4.7 measured |
| FrontierSWE | Not measured | 29.5% | Only Grok 4.7 measured |
| LMArena Text: coding | 1211 | 1432 | Grok 4.7 |
| LMArena Text: software and IT | 1228 | 1421 | Grok 4.7 |
| LMArena WebDev: React | Not measured | 1663 | Only Grok 4.7 measured |
| LMArena WebDev: HTML | Not measured | 1627 | Only Grok 4.7 measured |
| LMArena WebDev: from an image | Not measured | 1586 | Only Grok 4.7 measured |
| Neither model has a result on the other 20 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Gemma 2 27B | Grok 4.7 | Leader |
|---|---|---|---|
| AA Intelligence Index | Not measured | 46.4 | Only Grok 4.7 measured |
| Epoch Capabilities Index | 122.1 | 154.4 | Grok 4.7 |
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index15 boards, none shared
| Benchmark | Gemma 2 27B | Grok 4.7 | Leader |
|---|---|---|---|
| LiveBench research | Not measured | 86.4% | Only Grok 4.7 measured |
| LiveBench browser | Not measured | 60.0% | Only Grok 4.7 measured |
| LiveBench long agentic | Not measured | 50.1% | Only Grok 4.7 measured |
| SREBench (Vals AI) | Not measured | 3.8% | Only Grok 4.7 measured |
| Finance Agent (Vals AI) | Not measured | 52.3% | Only Grok 4.7 measured |
| Tax Agent Bench (Vals AI) | Not measured | 34.2% | Only Grok 4.7 measured |
| Legal Research Bench (Vals AI) | Not measured | 47.1% | Only Grok 4.7 measured |
| Harvey's Legal Agent Benchmark (Vals AI) | Not measured | 18.3% | Only Grok 4.7 measured |
| Excel Modeling Benchmark (Vals AI) | Not measured | 67.0% | Only Grok 4.7 measured |
| BioMysteryBench (Vals AI) | Not measured | 69.3% | Only Grok 4.7 measured |
| Terminal-Bench-Science (Vals AI) | Not measured | 10.0% | Only Grok 4.7 measured |
| Vals Science Index | Not measured | 34.8% | Only Grok 4.7 measured |
| Robo-bench (Vals AI) | Not measured | 0.2% | Only Grok 4.7 measured |
| APEX-Agents | Not measured | 54.6% | Only Grok 4.7 measured |
| Vending-Bench 2 | Not measured | $10,537 | Only Grok 4.7 measured |
| Neither model has a result on the other 24 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | Gemma 2 27B | Grok 4.7 | Leader |
|---|---|---|---|
| LiveBench reasoning | Not measured | 82.7% | Only Grok 4.7 measured |
| MysteryMechanism (Vals AI) | Not measured | 25.2% | Only Grok 4.7 measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 43.1% | Only Grok 4.7 measured |
| GPQA Diamond (Epoch AI run) | 36.5% | 92.7% | Grok 4.7 |
| ARC-AGI | Not measured | 90.2% | Only Grok 4.7 measured |
| ARC-AGI-2 | Not measured | 61.4% | Only Grok 4.7 measured |
| Chess puzzles | Not measured | 41.0% | Only Grok 4.7 measured |
| Mystery game puzzles | Not measured | 29.0% | Only Grok 4.7 measured |
| LMArena Text: hard prompts | 1198 | 1415 | Grok 4.7 |
| LMArena Text: expert | 1171 | 1439 | Grok 4.7 |
| LMArena Text: hard prompts in English | 1206 | 1427 | Grok 4.7 |
| LMArena Vision: diagrams | Not measured | 1254 | Only Grok 4.7 measured |
| LMArena Vision: homework | Not measured | 1309 | Only Grok 4.7 measured |
| Neither model has a result on the other 8 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index03
| Benchmark | Gemma 2 27B | Grok 4.7 | Leader |
|---|---|---|---|
| OTIS Mock AIME | 1.4% | 98.1% | Grok 4.7 |
| FrontierMath, tiers 1 to 3 | Not measured | 53.0% | Only Grok 4.7 measured |
| FrontierMath, tier 4 | Not measured | 17.1% | Only Grok 4.7 measured |
| ProofBench | Not measured | 26.0% | Only Grok 4.7 measured |
| MATH level 5 | 27.9% | Not measured | Only Gemma 2 27B measured |
| LMArena Text: math | 1212 | 1414 | Grok 4.7 |
| LMArena Text: mathematical work | 1221 | 1435 | Grok 4.7 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
| Benchmark | Gemma 2 27B | Grok 4.7 | Leader |
|---|---|---|---|
| LegalBench (Vals AI) | 68.0% | 84.4% | Grok 4.7 |
| MedCode (Vals AI) | Not measured | 49.5% | Only Grok 4.7 measured |
| SimpleQA Verified | Not measured | 56.0% | Only Grok 4.7 measured |
| MMLU | 75.7% | Not measured | Only Gemma 2 27B measured |
| LMArena Text: science | 1228 | 1419 | Grok 4.7 |
| LMArena Text: medicine and healthcare | 1198 | 1395 | Grok 4.7 |
| LMArena Text: legal and government | 1241 | 1423 | Grok 4.7 |
| LMArena Text: business and finance | 1208 | 1389 | Grok 4.7 |
| Neither model has a result on the other 9 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
| Benchmark | Gemma 2 27B | Grok 4.7 | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1254 | Only Grok 4.7 measured |
| Design Arena: UI components | Not measured | 1275 | Only Grok 4.7 measured |
| Design Arena: game dev | Not measured | 1313 | Only Grok 4.7 measured |
| Design Arena: data viz | Not measured | 1235 | Only Grok 4.7 measured |
| Design Arena: 3D | Not measured | 1270 | Only Grok 4.7 measured |
| Design Arena: all code categories | Not measured | 1271 | Only Grok 4.7 measured |
| LiveBench design | Not measured | 78.0% | Only Grok 4.7 measured |
| Neither model has a result on the other 2 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index019
| Benchmark | Gemma 2 27B | Grok 4.7 | Leader |
|---|---|---|---|
| Vals Index | Not measured | 58.6% | Only Grok 4.7 measured |
| LiveBench data analysis | Not measured | 76.9% | Only Grok 4.7 measured |
| Public Benefits Bench (Vals AI) | Not measured | 65.6% | Only Grok 4.7 measured |
| SAGE (Vals AI) | Not measured | 40.8% | Only Grok 4.7 measured |
| MedScribe (Vals AI) | Not measured | 89.4% | Only Grok 4.7 measured |
| Long context reasoning (AA-LCR) | Not measured | 80.0% | Only Grok 4.7 measured |
| DTBench | 48.0% | 96.0% | Grok 4.7 |
| LMCA | 7.1% | 49.4% | Grok 4.7 |
| Furniture assembly | Not measured | 20.8% | Only Grok 4.7 measured |
| LMArena Text | 1231 | 1399 | Grok 4.7 |
| LMArena Text: instruction following | 1206 | 1406 | Grok 4.7 |
| LMArena Text: creative writing | 1240 | 1381 | Grok 4.7 |
| LMArena Vision | Not measured | 1231 | Only Grok 4.7 measured |
| LMArena Text: English | 1242 | 1411 | Grok 4.7 |
| LMArena Text: non-English | 1217 | 1386 | Grok 4.7 |
| LMArena Text: Chinese | 1221 | 1449 | Grok 4.7 |
| LMArena Text: German | 1209 | 1366 | Grok 4.7 |
| LMArena Text: Japanese | 1175 | 1359 | Grok 4.7 |
| LMArena Text: Korean | 1174 | 1383 | Grok 4.7 |
| LMArena Text: French | 1248 | 1431 | Grok 4.7 |
| LMArena Text: Spanish | 1228 | 1406 | Grok 4.7 |
| LMArena Text: Russian | 1234 | 1399 | Grok 4.7 |
| LMArena Text: Polish | 1277 | 1420 | Grok 4.7 |
| LMArena Text: multi-turn | 1224 | 1394 | Grok 4.7 |
| LMArena Text: longer queries | 1230 | 1416 | Grok 4.7 |
| LMArena Text: writing and language | 1249 | 1394 | Grok 4.7 |
| LMArena Text: entertainment and media | 1212 | 1376 | Grok 4.7 |
| LMArena Vision: English | Not measured | 1229 | Only Grok 4.7 measured |
| LMArena Vision: Chinese | Not measured | 1250 | Only Grok 4.7 measured |
| LMArena Vision: reading text | Not measured | 1241 | Only Grok 4.7 measured |
| LMArena Vision: creative writing | Not measured | 1217 | Only Grok 4.7 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
| Benchmark | Gemma 2 27B | Grok 4.7 | 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
Gemma 2 27B costs less
Repository review
50K input + 3K output tokens
Gemma 2 27B costs less
Agent loop
200K input + 10K output tokens
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.
| Specification | Google Gemma 2 27B | SpaceXAI Grok 4.7 |
|---|---|---|
| Maker | xAI | |
| Weights | Open weights | No public weights listed |
| Released | July 13, 2024 | September 21, 2026 |
| Context window | 8K | 500K |
| Input $/Mtok | $0.65 | $2.00 |
| Output $/Mtok | $0.65 | $6.00 |
| Coding index | Not benchmarked | 66.7 |
| Independent measurements behind it | 0 | 5 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemma 2 27B better than Grok 4.7 for coding?
Only Grok 4.7 has a coding score, 66.7 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 9.2x cheaper ($0.65 vs $6.00 per million).
Which is cheaper, Gemma 2 27B or Grok 4.7?
Gemma 2 27B costs $0.65 per million input tokens and $0.65 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for neither of them.
Which has the bigger context window, Gemma 2 27B or Grok 4.7?
Grok 4.7, with 500K tokens against 8K.
How many benchmarks is the Gemma 2 27B vs Grok 4.7 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 Grok 4.7's on 5. Where only one model has a result, the page says so instead of naming a winner.