Enter opens the highlighted result. Esc closes.

Gemini 3.8 Flash vs Grok 4.7

Grok 4.7 leads Gemini 3.8 Flash on coding, 66.7 to 61.6 on the Vibe Coding Index, and Gemini 3.8 Flash costs 1.6x less per output token ($3.75 vs $6.00 per million). Updated October 21, 2026; 98 benchmarks have a result for both.

Gemini 3.8 FlashGoogle
Coding
61.6
Overall
69.0
Output $/M
$3.75
67
Grok 4.7xAI
Coding
66.7
Overall
66.6
Output $/M
$6.00
31
vs boards won of 98 shared

Gemini 3.8 Flash or Grok 4.7: which to pick

Pick Grok 4.7 for coding: it scores 66.7 on the Vibe Coding Index against 61.6 for Gemini 3.8 Flash, though on 5 benchmarks against 6.

Pick Gemini 3.8 Flash for output tokens 1.6x cheaper ($3.75 vs $6.00 per million) and a larger context window (1.05M against 500K tokens).

Shared results
98
Gemini 3.8 Flash only
30
Grok 4.7 only
1
Like-for-like categories
8 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
Gemini 3.8 Flash 61.6 from 6 benchmarks, Grok 4.7 66.7 from 5 benchmarks.
Widest category
General, 13.7 points apart on average over 31 shared benchmarks.
Widest single gap
Vending-Bench 2: Gemini 3.8 Flash $5,094 against Grok 4.7 $10,537, 34.0 points apart on a 0 to 100 scale.
Output price
Gemini 3.8 Flash $3.75 against Grok 4.7 $6.00 per million output tokens, 1.6x apart.
Context window
Gemini 3.8 Flash takes 1.05M 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.

Boards won, where both have a result
CategoryGemini 3.8 FlashBarsGrok 4.7Ties
Coding513
Intelligence11
Agentic work68
Reasoning130
Math60
Knowledge61
Web design52
General256
All shared boards6731
CodingLike-for-likeSix of these boards feed the Vibe Coding Index513
Coding benchmarks for Gemini 3.8 Flash and Grok 4.7
BenchmarkGemini 3.8 FlashGrok 4.7Leader
LiveBench coding82.2%84.5%Grok 4.7
LMArena WebDev15851637Grok 4.7
AA Coding Index76.3Not measuredOnly Gemini 3.8 Flash measured
LiveCodeBench (Vals AI)89.5%Not measuredOnly Gemini 3.8 Flash measured
SWE-bench Verified (Vals AI)80.0%Not measuredOnly Gemini 3.8 Flash measured
Terminal-Bench 4 (Vals AI)19.7%28.8%Grok 4.7
Vibe Code Bench (Vals AI)78.7%86.2%Grok 4.7
Code migration (Vals AI)36.5%44.8%Grok 4.7
ProgramBench (Vals AI)1.0%0.5%Gemini 3.8 Flash
IOI (Vals AI)56.9%57.7%Grok 4.7
Terminal-Bench 2.1 (Vals AI)81.3%73.4%Gemini 3.8 Flash
SWE-bench Multimodal (Vals AI)40.8%42.9%Grok 4.7
Vibe Code Bench 1-100 (Vals AI)18.8%Not measuredOnly Gemini 3.8 Flash measured
SkillsBench (Vals AI)58.0%Not measuredOnly Gemini 3.8 Flash measured
CyberBench (Vals AI)43.8%69.5%Grok 4.7
SciCode56.6%57.8%Grok 4.7
FrontierCode41.2%47.6%Grok 4.7
FrontierSWE19.6%29.5%Grok 4.7
WeirdML84.8%Not measuredOnly Gemini 3.8 Flash measured
ALE-Bench1269.7Not measuredOnly Gemini 3.8 Flash measured
LMArena Text: coding15081432Gemini 3.8 Flash
LMArena Text: software and IT15071421Gemini 3.8 Flash
LMArena WebDev: React15771663Grok 4.7
LMArena WebDev: HTML16161627Grok 4.7
LMArena WebDev: from an image15931586Gemini 3.8 Flash
SciCode12.3%Not measuredOnly Gemini 3.8 Flash measured
Neither model has a result on the other 13 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
Intelligence benchmarks for Gemini 3.8 Flash and Grok 4.7
BenchmarkGemini 3.8 FlashGrok 4.7Leader
AA Intelligence Index40.946.4Grok 4.7
Epoch Capabilities Index157.4154.4Gemini 3.8 Flash
Agentic workLike-for-likePublic boards, shown as published, kept out of the index68
Agentic work benchmarks for Gemini 3.8 Flash and Grok 4.7
BenchmarkGemini 3.8 FlashGrok 4.7Leader
AA Agentic Index40.2Not measuredOnly Gemini 3.8 Flash measured
Design Arena: agents building web apps1238Not measuredOnly Gemini 3.8 Flash measured
Design Arena: agents building full-stack apps1244Not measuredOnly Gemini 3.8 Flash measured
Design Arena: agents building mobile apps1236Not measuredOnly Gemini 3.8 Flash measured
Design Arena: agents building Android apps1074Not measuredOnly Gemini 3.8 Flash measured
Design Arena: agents building Godot games1273Not measuredOnly Gemini 3.8 Flash measured
Design Arena: PowerPoint slides1177Not measuredOnly Gemini 3.8 Flash measured
Design Arena: spreadsheets1056Not measuredOnly Gemini 3.8 Flash measured
LiveBench research79.1%86.4%Grok 4.7
LiveBench browser64.0%60.0%Gemini 3.8 Flash
LiveBench long agentic30.1%50.1%Grok 4.7
SREBench (Vals AI)11.1%3.8%Gemini 3.8 Flash
Finance Agent (Vals AI)61.4%52.3%Gemini 3.8 Flash
Tax Agent Bench (Vals AI)32.1%34.2%Grok 4.7
Legal Research Bench (Vals AI)38.9%47.1%Grok 4.7
Harvey's Legal Agent Benchmark (Vals AI)12.1%18.3%Grok 4.7
Excel Modeling Benchmark (Vals AI)72.2%67.0%Gemini 3.8 Flash
BioMysteryBench (Vals AI)62.2%69.3%Grok 4.7
Terminal-Bench-Science (Vals AI)8.6%10.0%Grok 4.7
Vals Science Index35.8%34.8%Gemini 3.8 Flash
Time Horizon Index (Vals AI)18.8%Not measuredOnly Gemini 3.8 Flash measured
CUA-bench (Vals AI)4.2%Not measuredOnly Gemini 3.8 Flash measured
Robo-bench (Vals AI)Not measured0.2%Only Grok 4.7 measured
APEX-Agents64.3%54.6%Gemini 3.8 Flash
Remote Labor Index5.8%Not measuredOnly Gemini 3.8 Flash measured
Vending-Bench 2$5,094$10,537Grok 4.7
Neither model has a result on the other 15 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index130
Reasoning benchmarks for Gemini 3.8 Flash and Grok 4.7
BenchmarkGemini 3.8 FlashGrok 4.7Leader
GPQA Diamond94.4%Not measuredOnly Gemini 3.8 Flash measured
LiveBench reasoning89.3%82.7%Gemini 3.8 Flash
MysteryMechanism (Vals AI)36.5%25.2%Gemini 3.8 Flash
MMMU Pro (Vals AI)89.1%Not measuredOnly Gemini 3.8 Flash measured
GPQA Diamond (Artificial Analysis run)95.3%Not measuredOnly Gemini 3.8 Flash measured
Humanity's Last Exam (Artificial Analysis run)47.8%43.1%Gemini 3.8 Flash
GPQA Diamond (Epoch AI run)95.4%92.7%Gemini 3.8 Flash
ARC-AGI98.5%90.2%Gemini 3.8 Flash
ARC-AGI-289.2%61.4%Gemini 3.8 Flash
Chess puzzles58.0%41.0%Gemini 3.8 Flash
Mystery game puzzles47.0%29.0%Gemini 3.8 Flash
LMArena Text: hard prompts15091415Gemini 3.8 Flash
LMArena Text: expert15261439Gemini 3.8 Flash
LMArena Text: hard prompts in English15041427Gemini 3.8 Flash
LMArena Vision: diagrams13451254Gemini 3.8 Flash
LMArena Vision: homework13511309Gemini 3.8 Flash
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index60
Math benchmarks for Gemini 3.8 Flash and Grok 4.7
BenchmarkGemini 3.8 FlashGrok 4.7Leader
OTIS Mock AIME98.9%98.1%Gemini 3.8 Flash
FrontierMath, tiers 1 to 368.4%53.0%Gemini 3.8 Flash
FrontierMath, tier 422.0%17.1%Gemini 3.8 Flash
ProofBench48.0%26.0%Gemini 3.8 Flash
LMArena Text: math15321414Gemini 3.8 Flash
LMArena Text: mathematical work15191435Gemini 3.8 Flash
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index61
Knowledge benchmarks for Gemini 3.8 Flash and Grok 4.7
BenchmarkGemini 3.8 FlashGrok 4.7Leader
MMLU Pro90.2%Not measuredOnly Gemini 3.8 Flash measured
LegalBench (Vals AI)87.0%84.4%Gemini 3.8 Flash
TaxEval (Vals AI)74.5%Not measuredOnly Gemini 3.8 Flash measured
MortgageTax (Vals AI)65.3%Not measuredOnly Gemini 3.8 Flash measured
MedCode (Vals AI)48.1%49.5%Grok 4.7
SimpleQA Verified69.7%56.0%Gemini 3.8 Flash
LMArena Text: science15231419Gemini 3.8 Flash
LMArena Text: medicine and healthcare15081395Gemini 3.8 Flash
LMArena Text: legal and government14971423Gemini 3.8 Flash
LMArena Text: business and finance14791389Gemini 3.8 Flash
FACTS Benchmark Suite69.4%Not measuredOnly Gemini 3.8 Flash measured
Neither model has a result on the other 7 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index52
Web design benchmarks for Gemini 3.8 Flash and Grok 4.7
BenchmarkGemini 3.8 FlashGrok 4.7Leader
Design Arena: websites13001254Gemini 3.8 Flash
Design Arena: UI components13191275Gemini 3.8 Flash
Design Arena: game dev13051313Grok 4.7
Design Arena: data viz12691235Gemini 3.8 Flash
Design Arena: 3D12951270Gemini 3.8 Flash
Design Arena: all code categories13041271Gemini 3.8 Flash
Design Arena: SVG1295Not measuredOnly Gemini 3.8 Flash measured
Design Arena: ASCII art1265Not measuredOnly Gemini 3.8 Flash measured
LiveBench design72.7%78.0%Grok 4.7
GeneralLike-for-likePublic boards, shown as published, kept out of the index256
General benchmarks for Gemini 3.8 Flash and Grok 4.7
BenchmarkGemini 3.8 FlashGrok 4.7Leader
Vals Index56.0%58.6%Grok 4.7
LiveBench data analysis54.0%76.9%Grok 4.7
Public Benefits Bench (Vals AI)65.3%65.6%Grok 4.7
SAGE (Vals AI)35.1%40.8%Grok 4.7
MedScribe (Vals AI)84.5%89.4%Grok 4.7
Long context reasoning (AA-LCR)84.0%80.0%Gemini 3.8 Flash
DTBench95.7%96.0%Grok 4.7
LMCA52.9%49.4%Gemini 3.8 Flash
Surface Evolver Bench76.9%Not measuredOnly Gemini 3.8 Flash measured
Furniture assembly31.7%20.8%Gemini 3.8 Flash
LMArena Text14991399Gemini 3.8 Flash
LMArena Text: instruction following14921406Gemini 3.8 Flash
LMArena Text: creative writing14881381Gemini 3.8 Flash
LMArena Vision13151231Gemini 3.8 Flash
LMArena Text: English14981411Gemini 3.8 Flash
LMArena Text: non-English14911386Gemini 3.8 Flash
LMArena Text: Chinese15531449Gemini 3.8 Flash
LMArena Text: German15011366Gemini 3.8 Flash
LMArena Text: Japanese15071359Gemini 3.8 Flash
LMArena Text: Korean14641383Gemini 3.8 Flash
LMArena Text: French14961431Gemini 3.8 Flash
LMArena Text: Spanish14871406Gemini 3.8 Flash
LMArena Text: Russian15141399Gemini 3.8 Flash
LMArena Text: Polish14971420Gemini 3.8 Flash
LMArena Text: multi-turn15031394Gemini 3.8 Flash
LMArena Text: longer queries15071416Gemini 3.8 Flash
LMArena Text: writing and language14941394Gemini 3.8 Flash
LMArena Text: entertainment and media14801376Gemini 3.8 Flash
LMArena Vision: English13181229Gemini 3.8 Flash
LMArena Vision: Chinese14161250Gemini 3.8 Flash
LMArena Vision: reading text13331241Gemini 3.8 Flash
LMArena Vision: humor1321Not measuredOnly Gemini 3.8 Flash measured
LMArena Vision: creative writing12991217Gemini 3.8 Flash
Neither model has a result on the other 13 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemini 3.8 Flash and Grok 4.7
BenchmarkGemini 3.8 FlashGrok 4.7Leader
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

Gemini 3.8 Flash$0.0026Fits in one request
Grok 4.7$0.0050Fits in one request

Gemini 3.8 Flash costs less

Repository review

50K input + 3K output tokens

Gemini 3.8 Flash$0.049Fits in one request
Grok 4.7$0.118Fits in one request

Gemini 3.8 Flash costs less

Agent loop

200K input + 10K output tokens

Gemini 3.8 Flash$0.188Fits in one request
Grok 4.7$0.460Fits in one request

Gemini 3.8 Flash 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 Gemini 3.8 Flash and Grok 4.7
SpecificationGoogle Gemini 3.8 FlashSpaceXAI Grok 4.7
MakerGooglexAI
WeightsNo public weights listedNo public weights listed
ReleasedSeptember 2, 2026September 21, 2026
Context window1.05M500K
Input $/Mtok$0.75$2.00
Output $/Mtok$3.75$6.00
Coding index61.666.7
Independent measurements behind it65
Cost per solved task$2.74Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3.8 Flash better than Grok 4.7 for coding?

Pick Grok 4.7 for coding: it scores 66.7 on the Vibe Coding Index against 61.6 for Gemini 3.8 Flash, though on 5 benchmarks against 6. Pick Gemini 3.8 Flash for output tokens 1.6x cheaper ($3.75 vs $6.00 per million) and a larger context window (1.05M against 500K tokens).

Which is cheaper, Gemini 3.8 Flash or Grok 4.7?

Gemini 3.8 Flash costs $0.75 per million input tokens and $3.75 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for Gemini 3.8 Flash only.

Which has the bigger context window, Gemini 3.8 Flash or Grok 4.7?

Gemini 3.8 Flash, with 1.05M tokens against 500K.

How many benchmarks is the Gemini 3.8 Flash vs Grok 4.7 comparison based on?

98 benchmarks have a result for both models as of October 21, 2026. Gemini 3.8 Flash's coding index rests on 6 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.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/gemini-3-8-flash-vs-grok-4-7" title="Gemini 3.8 Flash vs Grok 4.7, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/gemini-3-8-flash-vs-grok-4-7">LLMBenchmark.ai, Gemini 3.8 Flash vs Grok 4.7</a></p>