LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

Gemini 2.5 Flash vs Grok 4.7

Updated October 21, 2026. 53 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

Gemini 2.5 FlashGoogle
Coding
28.7
Overall
15.5
Output $/M
$2.50
26
Grok 4.7xAI
Coding
75.0
Overall
46.4
Output $/M
$6.00
27
vs boards won of 53 shared

Decision reading

Pick Grok 4.7 for coding: it scores 75.0 on the Vibe Coding Index against 28.7 for Gemini 2.5 Flash.

Pick Gemini 2.5 Flash when output tokens cost 2.4x less, or when the context window is larger, 1.05M against 500K tokens.

Shared results
53
Gemini 2.5 Flash only
16
Grok 4.7 only
46
Like-for-like categories
8 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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 2.5 Flash 28.7 from 1 benchmark, Grok 4.7 75.0 from 2 benchmarks.
Widest category
Agentic work, 62.4 points apart on average over 1 shared benchmark.
Widest single gap
Vending-Bench 2: Gemini 2.5 Flash $549 against Grok 4.7 $10,537, 62.4 points apart on a 0 to 100 scale.
Output price
Gemini 2.5 Flash $2.50 against Grok 4.7 $6.00 per million output tokens, 2.4x apart.
Context window
Gemini 2.5 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 2.5 FlashBarsGrok 4.7Ties
Coding11
Intelligence02
Agentic work01
Reasoning17
Math02
Knowledge41
Web design06
General207
All shared boards2627
CodingLike-for-likeFour of these boards feed the Vibe Coding Index11
Coding benchmarks for Gemini 2.5 Flash and Grok 4.7
BenchmarkGemini 2.5 FlashGrok 4.7Leader
SWE-bench Verified28.7%Not measuredOnly Gemini 2.5 Flash measured
LiveBench codingNot measured84.5%Only Grok 4.7 measured
LMArena WebDevNot measured1637Only Grok 4.7 measured
Terminal-Bench 4 (Vals AI)Not measured28.8%Only Grok 4.7 measured
Vibe Code Bench (Vals AI)Not measured86.2%Only Grok 4.7 measured
Code migration (Vals AI)Not measured44.8%Only Grok 4.7 measured
ProgramBench (Vals AI)Not measured0.5%Only Grok 4.7 measured
IOI (Vals AI)Not measured57.7%Only Grok 4.7 measured
Terminal-Bench 2.1 (Vals AI)Not measured73.4%Only Grok 4.7 measured
SWE-bench Multimodal (Vals AI)Not measured42.9%Only Grok 4.7 measured
CyberBench (Vals AI)Not measured69.5%Only Grok 4.7 measured
LiveCodeBench (Artificial Analysis run)69.5%Not measuredOnly Gemini 2.5 Flash measured
SciCodeNot measured57.8%Only Grok 4.7 measured
Terminal-Bench Hard (Artificial Analysis run)13.6%Not measuredOnly Gemini 2.5 Flash measured
Terminal-Bench17.1%Not measuredOnly Gemini 2.5 Flash measured
FrontierCodeNot measured47.6%Only Grok 4.7 measured
FrontierSWENot measured29.5%Only Grok 4.7 measured
LMArena Text: coding14231432Grok 4.7
LMArena Text: software and IT14251421Gemini 2.5 Flash
LMArena WebDev: ReactNot measured1663Only Grok 4.7 measured
LMArena WebDev: HTMLNot measured1627Only Grok 4.7 measured
LMArena WebDev: from an imageNot measured1586Only Grok 4.7 measured
Neither model has a result on the other 16 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Gemini 2.5 Flash and Grok 4.7
BenchmarkGemini 2.5 FlashGrok 4.7Leader
AA Intelligence Index15.546.4Grok 4.7
Epoch Capabilities Index142.9154.4Grok 4.7
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for Gemini 2.5 Flash and Grok 4.7
BenchmarkGemini 2.5 FlashGrok 4.7Leader
LiveBench researchNot measured86.4%Only Grok 4.7 measured
LiveBench browserNot measured60.0%Only Grok 4.7 measured
LiveBench long agenticNot measured50.1%Only Grok 4.7 measured
SREBench (Vals AI)Not measured3.8%Only Grok 4.7 measured
Finance Agent (Vals AI)Not measured52.3%Only Grok 4.7 measured
Tax Agent Bench (Vals AI)Not measured34.2%Only Grok 4.7 measured
Legal Research Bench (Vals AI)Not measured47.1%Only Grok 4.7 measured
Harvey's Legal Agent Benchmark (Vals AI)Not measured18.3%Only Grok 4.7 measured
Excel Modeling Benchmark (Vals AI)Not measured67.0%Only Grok 4.7 measured
BioMysteryBench (Vals AI)Not measured69.3%Only Grok 4.7 measured
Terminal-Bench-Science (Vals AI)Not measured10.0%Only Grok 4.7 measured
Vals Science IndexNot measured34.8%Only Grok 4.7 measured
Robo-bench (Vals AI)Not measured0.2%Only Grok 4.7 measured
τ²-Bench Telecom31.6%Not measuredOnly Gemini 2.5 Flash measured
APEX-AgentsNot measured54.6%Only Grok 4.7 measured
BALROG33.5%Not measuredOnly Gemini 2.5 Flash measured
Vending-Bench 2$549$10,537Grok 4.7
Neither model has a result on the other 22 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index17
Reasoning benchmarks for Gemini 2.5 Flash and Grok 4.7
BenchmarkGemini 2.5 FlashGrok 4.7Leader
LiveBench reasoningNot measured82.7%Only Grok 4.7 measured
MysteryMechanism (Vals AI)Not measured25.2%Only Grok 4.7 measured
GPQA Diamond (Artificial Analysis run)79.0%Not measuredOnly Gemini 2.5 Flash measured
Humanity's Last Exam (Artificial Analysis run)12.1%43.1%Grok 4.7
GPQA Diamond (Epoch AI run)Not measured92.7%Only Grok 4.7 measured
ARC-AGI33.3%90.2%Grok 4.7
ARC-AGI-22.5%61.4%Grok 4.7
SimpleBench41.2%Not measuredOnly Gemini 2.5 Flash measured
Chess puzzlesNot measured41.0%Only Grok 4.7 measured
Mystery game puzzlesNot measured29.0%Only Grok 4.7 measured
LMArena Text: hard prompts14221415Gemini 2.5 Flash
LMArena Text: expert14261439Grok 4.7
LMArena Text: hard prompts in English14201427Grok 4.7
LMArena Vision: diagrams12451254Grok 4.7
LMArena Vision: homework12441309Grok 4.7
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index02
Math benchmarks for Gemini 2.5 Flash and Grok 4.7
BenchmarkGemini 2.5 FlashGrok 4.7Leader
AA Math Index73.3Not measuredOnly Gemini 2.5 Flash measured
AIME 2025 (Artificial Analysis run)73.3%Not measuredOnly Gemini 2.5 Flash measured
OTIS Mock AIMENot measured98.1%Only Grok 4.7 measured
FrontierMath, tiers 1 to 3Not measured53.0%Only Grok 4.7 measured
FrontierMath, tier 4Not measured17.1%Only Grok 4.7 measured
ProofBenchNot measured26.0%Only Grok 4.7 measured
LMArena Text: math14111414Grok 4.7
LMArena Text: mathematical work14221435Grok 4.7
Neither model has a result on the other 5 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index41
Knowledge benchmarks for Gemini 2.5 Flash and Grok 4.7
BenchmarkGemini 2.5 FlashGrok 4.7Leader
LegalBench (Vals AI)Not measured84.4%Only Grok 4.7 measured
MedCode (Vals AI)40.4%49.5%Grok 4.7
MMLU Pro (Artificial Analysis run)83.2%Not measuredOnly Gemini 2.5 Flash measured
SimpleQA VerifiedNot measured56.0%Only Grok 4.7 measured
LMArena Text: science14331419Gemini 2.5 Flash
LMArena Text: medicine and healthcare14281395Gemini 2.5 Flash
LMArena Text: legal and government14301423Gemini 2.5 Flash
LMArena Text: business and finance14041389Gemini 2.5 Flash
Neither model has a result on the other 9 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index06
Web design benchmarks for Gemini 2.5 Flash and Grok 4.7
BenchmarkGemini 2.5 FlashGrok 4.7Leader
Design Arena: websites10741255Grok 4.7
Design Arena: UI components10051271Grok 4.7
Design Arena: game dev10051314Grok 4.7
Design Arena: data viz10601227Grok 4.7
Design Arena: 3D10211269Grok 4.7
Design Arena: all code categories10591271Grok 4.7
Design Arena: SVG1018Not measuredOnly Gemini 2.5 Flash measured
LiveBench designNot measured78.0%Only Grok 4.7 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index207
General benchmarks for Gemini 2.5 Flash and Grok 4.7
BenchmarkGemini 2.5 FlashGrok 4.7Leader
Vals IndexNot measured58.6%Only Grok 4.7 measured
LiveBench data analysisNot measured76.9%Only Grok 4.7 measured
Public Benefits Bench (Vals AI)Not measured65.6%Only Grok 4.7 measured
SAGE (Vals AI)44.8%40.8%Gemini 2.5 Flash
MedScribe (Vals AI)83.0%89.4%Grok 4.7
IFBench50.3%Not measuredOnly Gemini 2.5 Flash measured
Long context reasoning (AA-LCR)65.3%80.0%Grok 4.7
DTBench76.5%96.0%Grok 4.7
LMCA27.5%49.4%Grok 4.7
Furniture assemblyNot measured20.8%Only Grok 4.7 measured
LMArena Text14171399Gemini 2.5 Flash
LMArena Text: instruction following14051406Grok 4.7
LMArena Text: creative writing14001381Gemini 2.5 Flash
LMArena Vision12351231Gemini 2.5 Flash
LMArena Text: English14181411Gemini 2.5 Flash
LMArena Text: non-English14091386Gemini 2.5 Flash
LMArena Text: Chinese14491449Gemini 2.5 Flash
LMArena Text: German14171366Gemini 2.5 Flash
LMArena Text: Japanese13961359Gemini 2.5 Flash
LMArena Text: Korean13851383Gemini 2.5 Flash
LMArena Text: French14321431Gemini 2.5 Flash
LMArena Text: Spanish14221406Gemini 2.5 Flash
LMArena Text: Russian14151399Gemini 2.5 Flash
LMArena Text: Polish14131420Grok 4.7
LMArena Text: multi-turn14081394Gemini 2.5 Flash
LMArena Text: longer queries14191416Gemini 2.5 Flash
LMArena Text: writing and language14051394Gemini 2.5 Flash
LMArena Text: entertainment and media13931376Gemini 2.5 Flash
LMArena Vision: English12391229Gemini 2.5 Flash
LMArena Vision: Chinese12841250Gemini 2.5 Flash
LMArena Vision: reading text12371241Grok 4.7
LMArena Vision: humor1225Not measuredOnly Gemini 2.5 Flash measured
LMArena Vision: captioning1277Not measuredOnly Gemini 2.5 Flash measured
LMArena Vision: recognizing things1252Not measuredOnly Gemini 2.5 Flash measured
LMArena Vision: creative writing12411217Gemini 2.5 Flash
Neither model has a result on the other 11 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemini 2.5 Flash and Grok 4.7
BenchmarkGemini 2.5 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 2.5 Flash$0.0015Fits in one request
Grok 4.7$0.0050Fits in one request

Gemini 2.5 Flash costs less

Repository review

50K input + 3K output tokens

Gemini 2.5 Flash$0.022Fits in one request
Grok 4.7$0.118Fits in one request

Gemini 2.5 Flash costs less

Agent loop

200K input + 10K output tokens

Gemini 2.5 Flash$0.085Fits in one request
Grok 4.7$0.460Fits in one request

Gemini 2.5 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 2.5 Flash and Grok 4.7
SpecificationGoogle Gemini 2.5 FlashSpaceXAI Grok 4.7
MakerGooglexAI
WeightsNo public weights listedNo public weights listed
ReleasedJune 17, 2025September 21, 2026
Context window1.05M500K
Input $/Mtok$0.30$2.00
Output $/Mtok$2.50$6.00
Coding index28.775.0
Independent measurements behind it12
Cost per solved task$0.466Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 2.5 Flash better than Grok 4.7 for coding?

Pick Grok 4.7 for coding: it scores 75.0 on the Vibe Coding Index against 28.7 for Gemini 2.5 Flash. Pick Gemini 2.5 Flash when output tokens cost 2.4x less, or when the context window is larger, 1.05M against 500K tokens.

Which is cheaper, Gemini 2.5 Flash or Grok 4.7?

Gemini 2.5 Flash costs $0.30 per million input tokens and $2.50 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for Gemini 2.5 Flash only.

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

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

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

53 benchmarks have a result for both models as of October 21, 2026. Gemini 2.5 Flash's coding index rests on 1 independent benchmark and Grok 4.7's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next