Gemini 2.5 Flash vs GPT-4.1
Updated October 21, 2026. 62 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick GPT-4.1 for coding: it scores 46.5 on the Vibe Coding Index against 28.7 for Gemini 2.5 Flash.
Pick Gemini 2.5 Flash when output tokens cost 3.2x less, or when the context window is larger, 1.05M against 1.05M tokens.
- Shared results
- 62
- Gemini 2.5 Flash only
- 7
- GPT-4.1 only
- 25
- 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.
Coding
Vibe Coding Index, four public coding benchmarks
GPT-4.1
GPT-4.1 scores 46.5 against 28.7.
1 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
Gemini 2.5 Flash
Gemini 2.5 Flash leads, 15.5 against 12.7.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only GPT-4.1 has a GPQA Diamond result, 65.4%.
Directional only
Math
AIME
No call
Only GPT-4.1 has a AIME result, 39.6%.
Directional only
Knowledge
MMLU Pro
No call
Only GPT-4.1 has a MMLU Pro result, 80.5%.
Directional only
Web design
Design Arena: websites
Gemini 2.5 Flash
Gemini 2.5 Flash leads, 1074 against 1039.
Same board, both measured
Long documents
Listed context window
Gemini 2.5 Flash
Gemini 2.5 Flash takes 1.05M tokens against 1.05M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemini 2.5 Flash
Gemini 2.5 Flash $0.0015, GPT-4.1 $0.0060 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GPT-4.1
Gemini 2.5 Flash $0.466, GPT-4.1 $0.37.
Published attempt cost and pass rate
At a glance
- Coding index
- Gemini 2.5 Flash 28.7 from 1 benchmark, GPT-4.1 46.5 from 2 benchmarks.
- Widest category
- Math, 23.7 points apart on average over 4 shared benchmarks.
- Widest single gap
- AIME 2025 (Artificial Analysis run): Gemini 2.5 Flash 73.3% against GPT-4.1 34.7%, 38.7 points apart on a 0 to 100 scale.
- Output price
- Gemini 2.5 Flash $2.50 against GPT-4.1 $8.00 per million output tokens, 3.2x apart.
- Context window
- Gemini 2.5 Flash takes 1.05M tokens, GPT-4.1 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.
| Category | Gemini 2.5 Flash | Bars | GPT-4.1 | Ties |
|---|---|---|---|---|
| Coding | 3 | 1 | 1 tie | |
| Intelligence | 2 | 0 | ||
| Agentic work | 0 | 1 | ||
| Reasoning | 9 | 1 | ||
| Math | 4 | 0 | ||
| Knowledge | 5 | 0 | ||
| Web design | 4 | 2 | ||
| General | 28 | 1 | ||
| All shared boards | 55 | 6 | 1 tie |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index31
| Benchmark | Gemini 2.5 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| Aider polyglot | Not measured | 52.4% | Only GPT-4.1 measured |
| SWE-bench Verified | 28.7% | 39.6% | GPT-4.1 |
| SWE-bench Multimodal | Not measured | 31.1% | Only GPT-4.1 measured |
| LiveCodeBench (Vals AI) | Not measured | 54.7% | Only GPT-4.1 measured |
| LiveCodeBench (Artificial Analysis run) | 69.5% | 45.7% | Gemini 2.5 Flash |
| Terminal-Bench Hard (Artificial Analysis run) | 13.6% | 13.6% | Tie |
| Terminal-Bench | 17.1% | Not measured | Only Gemini 2.5 Flash measured |
| WeirdML | Not measured | 39.0% | Only GPT-4.1 measured |
| ALE-Bench | Not measured | 558.1 | Only GPT-4.1 measured |
| LMArena Text: coding | 1423 | 1390 | Gemini 2.5 Flash |
| LMArena Text: software and IT | 1425 | 1391 | Gemini 2.5 Flash |
| Neither model has a result on the other 27 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Gemini 2.5 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| AA Intelligence Index | 15.5 | 12.7 | Gemini 2.5 Flash |
| Epoch Capabilities Index | 142.9 | 136.7 | Gemini 2.5 Flash |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Gemini 2.5 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| τ²-Bench Telecom | 31.6% | 47.1% | GPT-4.1 |
| BALROG | 33.5% | Not measured | Only Gemini 2.5 Flash measured |
| Vending-Bench 2 | $549 | Not measured | Only Gemini 2.5 Flash measured |
| Neither model has a result on the other 36 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index91
| Benchmark | Gemini 2.5 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 65.4% | Only GPT-4.1 measured |
| MMMU Pro (Vals AI) | Not measured | 72.4% | Only GPT-4.1 measured |
| GPQA Diamond (Artificial Analysis run) | 79.0% | 66.6% | Gemini 2.5 Flash |
| Humanity's Last Exam (Artificial Analysis run) | 12.1% | 4.2% | Gemini 2.5 Flash |
| GPQA Diamond (Epoch AI run) | Not measured | 66.9% | Only GPT-4.1 measured |
| ARC-AGI | 33.3% | 5.5% | Gemini 2.5 Flash |
| ARC-AGI-2 | 2.5% | 0.4% | Gemini 2.5 Flash |
| SimpleBench | 41.2% | 27.0% | Gemini 2.5 Flash |
| Chess puzzles | Not measured | 3.0% | Only GPT-4.1 measured |
| LMArena Text: hard prompts | 1422 | 1384 | Gemini 2.5 Flash |
| LMArena Text: expert | 1426 | 1364 | Gemini 2.5 Flash |
| LMArena Text: hard prompts in English | 1420 | 1393 | Gemini 2.5 Flash |
| LMArena Vision: diagrams | 1245 | 1215 | Gemini 2.5 Flash |
| LMArena Vision: homework | 1244 | 1248 | GPT-4.1 |
| Neither model has a result on the other 7 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index40
| Benchmark | Gemini 2.5 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| AIME | Not measured | 39.6% | Only GPT-4.1 measured |
| MATH 500 (Vals AI) | Not measured | 87.2% | Only GPT-4.1 measured |
| MGSM (Vals AI) | Not measured | 87.7% | Only GPT-4.1 measured |
| AA Math Index | 73.3 | 34.7 | Gemini 2.5 Flash |
| AIME 2025 (Artificial Analysis run) | 73.3% | 34.7% | Gemini 2.5 Flash |
| OTIS Mock AIME | Not measured | 38.3% | Only GPT-4.1 measured |
| FrontierMath, tiers 1 to 3 | Not measured | 6.0% | Only GPT-4.1 measured |
| MATH level 5 | Not measured | 83.0% | Only GPT-4.1 measured |
| LMArena Text: math | 1411 | 1369 | Gemini 2.5 Flash |
| LMArena Text: mathematical work | 1422 | 1360 | Gemini 2.5 Flash |
| Neither model has a result on the other 3 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index50
| Benchmark | Gemini 2.5 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 80.5% | Only GPT-4.1 measured |
| LegalBench (Vals AI) | Not measured | 83.1% | Only GPT-4.1 measured |
| CaseLaw (Vals AI) | Not measured | 69.9% | Only GPT-4.1 measured |
| CorpFin (Vals AI) | Not measured | 63.0% | Only GPT-4.1 measured |
| TaxEval (Vals AI) | Not measured | 75.1% | Only GPT-4.1 measured |
| MortgageTax (Vals AI) | Not measured | 65.9% | Only GPT-4.1 measured |
| MedQA (Vals AI) | Not measured | 91.2% | Only GPT-4.1 measured |
| MedCode (Vals AI) | 40.4% | Not measured | Only Gemini 2.5 Flash measured |
| MMLU Pro (Artificial Analysis run) | 83.2% | 80.6% | Gemini 2.5 Flash |
| SimpleQA Verified | Not measured | 31.1% | Only GPT-4.1 measured |
| GeoBench | Not measured | 72.0% | Only GPT-4.1 measured |
| LMArena Text: science | 1433 | 1382 | Gemini 2.5 Flash |
| LMArena Text: medicine and healthcare | 1428 | 1379 | Gemini 2.5 Flash |
| LMArena Text: legal and government | 1430 | 1399 | Gemini 2.5 Flash |
| LMArena Text: business and finance | 1404 | 1369 | Gemini 2.5 Flash |
| Neither model has a result on the other 2 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index42
| Benchmark | Gemini 2.5 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| Design Arena: websites | 1074 | 1039 | Gemini 2.5 Flash |
| Design Arena: UI components | 1005 | 1000 | Gemini 2.5 Flash |
| Design Arena: game dev | 1005 | 1080 | GPT-4.1 |
| Design Arena: data viz | 1060 | 1104 | GPT-4.1 |
| Design Arena: 3D | 1021 | 850 | Gemini 2.5 Flash |
| Design Arena: all code categories | 1059 | 1026 | Gemini 2.5 Flash |
| Design Arena: SVG | 1018 | Not measured | Only Gemini 2.5 Flash measured |
| Neither model has a result on the other 2 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index281
| Benchmark | Gemini 2.5 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| SAGE (Vals AI) | 44.8% | Not measured | Only Gemini 2.5 Flash measured |
| MedScribe (Vals AI) | 83.0% | Not measured | Only Gemini 2.5 Flash measured |
| IFBench | 50.3% | 43.0% | Gemini 2.5 Flash |
| Long context reasoning (AA-LCR) | 65.3% | 68.3% | GPT-4.1 |
| DTBench | 76.5% | 68.3% | Gemini 2.5 Flash |
| LMCA | 27.5% | 25.6% | Gemini 2.5 Flash |
| Fiction.LiveBench | Not measured | 63.9% | Only GPT-4.1 measured |
| LMArena Text | 1417 | 1383 | Gemini 2.5 Flash |
| LMArena Text: instruction following | 1405 | 1367 | Gemini 2.5 Flash |
| LMArena Text: creative writing | 1400 | 1363 | Gemini 2.5 Flash |
| LMArena Vision | 1235 | 1210 | Gemini 2.5 Flash |
| LMArena Text: English | 1418 | 1392 | Gemini 2.5 Flash |
| LMArena Text: non-English | 1409 | 1370 | Gemini 2.5 Flash |
| LMArena Text: Chinese | 1449 | 1382 | Gemini 2.5 Flash |
| LMArena Text: German | 1417 | 1381 | Gemini 2.5 Flash |
| LMArena Text: Japanese | 1396 | 1319 | Gemini 2.5 Flash |
| LMArena Text: Korean | 1385 | 1338 | Gemini 2.5 Flash |
| LMArena Text: French | 1432 | 1382 | Gemini 2.5 Flash |
| LMArena Text: Spanish | 1422 | 1376 | Gemini 2.5 Flash |
| LMArena Text: Russian | 1415 | 1377 | Gemini 2.5 Flash |
| LMArena Text: Polish | 1413 | 1389 | Gemini 2.5 Flash |
| LMArena Text: multi-turn | 1408 | 1397 | Gemini 2.5 Flash |
| LMArena Text: longer queries | 1419 | 1385 | Gemini 2.5 Flash |
| LMArena Text: writing and language | 1405 | 1371 | Gemini 2.5 Flash |
| LMArena Text: entertainment and media | 1393 | 1365 | Gemini 2.5 Flash |
| LMArena Vision: English | 1239 | 1209 | Gemini 2.5 Flash |
| LMArena Vision: Chinese | 1284 | 1226 | Gemini 2.5 Flash |
| LMArena Vision: reading text | 1237 | 1218 | Gemini 2.5 Flash |
| LMArena Vision: humor | 1225 | 1196 | Gemini 2.5 Flash |
| LMArena Vision: captioning | 1277 | 1207 | Gemini 2.5 Flash |
| LMArena Vision: recognizing things | 1252 | 1208 | Gemini 2.5 Flash |
| LMArena Vision: creative writing | 1241 | 1210 | Gemini 2.5 Flash |
| Neither model has a result on the other 14 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemini 2.5 Flash | GPT-4.1 | 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
Gemini 2.5 Flash costs less
Repository review
50K input + 3K output tokens
Gemini 2.5 Flash costs less
Agent loop
200K input + 10K output tokens
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.
| Specification | Google Gemini 2.5 Flash | OpenAI GPT-4.1 |
|---|---|---|
| Maker | OpenAI | |
| Weights | No public weights listed | No public weights listed |
| Released | June 17, 2025 | April 14, 2025 |
| Context window | 1.05M | 1.05M |
| Input $/Mtok | $0.30 | $2.00 |
| Output $/Mtok | $2.50 | $8.00 |
| Coding index | 28.7 | 46.5 |
| Independent measurements behind it | 1 | 2 |
| Cost per solved task | $0.466 | $0.37 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemini 2.5 Flash better than GPT-4.1 for coding?
Pick GPT-4.1 for coding: it scores 46.5 on the Vibe Coding Index against 28.7 for Gemini 2.5 Flash. Pick Gemini 2.5 Flash when output tokens cost 3.2x less, or when the context window is larger, 1.05M against 1.05M tokens.
Which is cheaper, Gemini 2.5 Flash or GPT-4.1?
Gemini 2.5 Flash costs $0.30 per million input tokens and $2.50 per million output tokens; GPT-4.1 costs $2.00 and $8.00. Per solved SWE-bench Verified task, Gemini 2.5 Flash costs $0.466 and GPT-4.1 $0.37.
Which has the bigger context window, Gemini 2.5 Flash or GPT-4.1?
Gemini 2.5 Flash, with 1.05M tokens against 1.05M.
How many benchmarks is the Gemini 2.5 Flash vs GPT-4.1 comparison based on?
62 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 GPT-4.1's on 2. Where only one model has a result, the page says so instead of naming a winner.