Enter opens the highlighted result. Esc closes.

Claude Haiku 4.5 vs Gemini 3.8 Flash

Gemini 3.8 Flash leads Claude Haiku 4.5 on coding, 61.6 to 35.6 on the Vibe Coding Index, and Gemini 3.8 Flash costs 1.3x less per output token ($3.75 vs $5.00 per million). Updated October 22, 2026; 80 benchmarks have a result for both.

Claude Haiku 4.5Anthropic
Coding
35.6
Overall
41.0
Output $/M
$5.00
2
Gemini 3.8 FlashGoogle
Coding
61.6
Overall
69.0
Output $/M
$3.75
78
vs boards won of 80 shared

Claude Haiku 4.5 or Gemini 3.8 Flash: which to pick

Pick Gemini 3.8 Flash for coding: it scores 61.6 on the Vibe Coding Index against 35.6 for Claude Haiku 4.5.

Pick Claude Haiku 4.5 for a lower cost per solved task ($0.56 against $2.74) and work measured by LiveBench data analysis or MedScribe (Vals AI), where it leads.

Shared results
80
Claude Haiku 4.5 only
15
Gemini 3.8 Flash only
48
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
Claude Haiku 4.5 35.6 from 4 benchmarks, Gemini 3.8 Flash 61.6 from 6 benchmarks.
Widest category
Reasoning, 34.3 points apart on average over 10 shared benchmarks.
Widest single gap
ARC-AGI-2: Claude Haiku 4.5 4.0% against Gemini 3.8 Flash 89.2%, 85.1 points apart on a 0 to 100 scale.
Output price
Claude Haiku 4.5 $5.00 against Gemini 3.8 Flash $3.75 per million output tokens, 1.3x apart.
Context window
Claude Haiku 4.5 takes 200K tokens, Gemini 3.8 Flash 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.

Boards won, where both have a result
CategoryClaude Haiku 4.5BarsGemini 3.8 FlashTies
Coding014
Intelligence02
Agentic work09
Reasoning010
Math03
Knowledge010
Web design09
General221
All shared boards278
CodingLike-for-likeSix of these boards feed the Vibe Coding Index014
Coding benchmarks for Claude Haiku 4.5 and Gemini 3.8 Flash
BenchmarkClaude Haiku 4.5Gemini 3.8 FlashLeader
SWE-bench Verified66.6%Not measuredOnly Claude Haiku 4.5 measured
SWE-bench Multilingual64.7%Not measuredOnly Claude Haiku 4.5 measured
LiveBench coding48.1%82.2%Gemini 3.8 Flash
LMArena WebDev13301585Gemini 3.8 Flash
AA Coding Index43.976.3Gemini 3.8 Flash
LiveCodeBench (Vals AI)41.2%89.5%Gemini 3.8 Flash
SWE-bench Verified (Vals AI)66.6%80.0%Gemini 3.8 Flash
Terminal-Bench 4 (Vals AI)Not measured19.7%Only Gemini 3.8 Flash measured
Vibe Code Bench (Vals AI)11.4%78.7%Gemini 3.8 Flash
Code migration (Vals AI)7.5%36.5%Gemini 3.8 Flash
ProgramBench (Vals AI)0.0%1.0%Gemini 3.8 Flash
IOI (Vals AI)Not measured56.9%Only Gemini 3.8 Flash measured
Terminal-Bench 2.1 (Vals AI)43.8%81.3%Gemini 3.8 Flash
SWE-bench Multimodal (Vals AI)Not measured40.8%Only Gemini 3.8 Flash measured
Vibe Code Bench 1-100 (Vals AI)Not measured18.8%Only Gemini 3.8 Flash measured
SkillsBench (Vals AI)Not measured58.0%Only Gemini 3.8 Flash measured
CyberBench (Vals AI)Not measured43.8%Only Gemini 3.8 Flash measured
SciCodeNot measured56.6%Only Gemini 3.8 Flash measured
Terminal-Bench35.5%Not measuredOnly Claude Haiku 4.5 measured
FrontierCodeNot measured41.2%Only Gemini 3.8 Flash measured
FrontierSWENot measured19.6%Only Gemini 3.8 Flash measured
WeirdML45.4%84.8%Gemini 3.8 Flash
ALE-BenchNot measured1269.7Only Gemini 3.8 Flash measured
LMArena Text: coding14541508Gemini 3.8 Flash
LMArena Text: software and IT14391507Gemini 3.8 Flash
LMArena WebDev: React13261577Gemini 3.8 Flash
LMArena WebDev: HTML13181616Gemini 3.8 Flash
LMArena WebDev: from an imageNot measured1593Only Gemini 3.8 Flash measured
SciCodeNot measured12.3%Only Gemini 3.8 Flash measured
Neither model has a result on the other 10 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Claude Haiku 4.5 and Gemini 3.8 Flash
BenchmarkClaude Haiku 4.5Gemini 3.8 FlashLeader
AA Intelligence Index16.940.9Gemini 3.8 Flash
Epoch Capabilities Index142.2157.4Gemini 3.8 Flash
Agentic workLike-for-likePublic boards, shown as published, kept out of the index09
Agentic work benchmarks for Claude Haiku 4.5 and Gemini 3.8 Flash
BenchmarkClaude Haiku 4.5Gemini 3.8 FlashLeader
AA Agentic Index8.040.2Gemini 3.8 Flash
Design Arena: agents building web appsNot measured1238Only Gemini 3.8 Flash measured
Design Arena: agents building full-stack appsNot measured1244Only Gemini 3.8 Flash measured
Design Arena: agents building mobile appsNot measured1236Only Gemini 3.8 Flash measured
Design Arena: agents building Android appsNot measured1078Only Gemini 3.8 Flash measured
Design Arena: agents building Godot gamesNot measured1273Only Gemini 3.8 Flash measured
Design Arena: PowerPoint slidesNot measured1153Only Gemini 3.8 Flash measured
Design Arena: spreadsheetsNot measured1022Only Gemini 3.8 Flash measured
LiveBench research42.2%79.1%Gemini 3.8 Flash
LiveBench browser40.0%64.0%Gemini 3.8 Flash
LiveBench long agentic11.1%30.1%Gemini 3.8 Flash
SREBench (Vals AI)Not measured11.1%Only Gemini 3.8 Flash measured
Finance Agent (Vals AI)31.0%61.4%Gemini 3.8 Flash
Tax Agent Bench (Vals AI)5.9%32.1%Gemini 3.8 Flash
Legal Research Bench (Vals AI)10.6%38.9%Gemini 3.8 Flash
Harvey's Legal Agent Benchmark (Vals AI)Not measured12.1%Only Gemini 3.8 Flash measured
Excel Modeling Benchmark (Vals AI)22.7%72.2%Gemini 3.8 Flash
BioMysteryBench (Vals AI)Not measured62.2%Only Gemini 3.8 Flash measured
Terminal-Bench-Science (Vals AI)Not measured8.6%Only Gemini 3.8 Flash measured
Vals Science IndexNot measured35.8%Only Gemini 3.8 Flash measured
Time Horizon Index (Vals AI)Not measured18.8%Only Gemini 3.8 Flash measured
CUA-bench (Vals AI)Not measured4.2%Only Gemini 3.8 Flash measured
APEX-AgentsNot measured64.3%Only Gemini 3.8 Flash measured
Remote Labor IndexNot measured5.8%Only Gemini 3.8 Flash measured
BALROG31.2%Not measuredOnly Claude Haiku 4.5 measured
DeepResearch Bench45.5%Not measuredOnly Claude Haiku 4.5 measured
Vending-Bench 2$459$5,094Gemini 3.8 Flash
Berkeley Function Calling Leaderboard (BFCL)68.7%Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 13 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index010
Reasoning benchmarks for Claude Haiku 4.5 and Gemini 3.8 Flash
BenchmarkClaude Haiku 4.5Gemini 3.8 FlashLeader
GPQA Diamond72.2%94.4%Gemini 3.8 Flash
LiveBench reasoning61.7%89.3%Gemini 3.8 Flash
MysteryMechanism (Vals AI)Not measured36.5%Only Gemini 3.8 Flash measured
MMMU Pro (Vals AI)46.1%89.1%Gemini 3.8 Flash
GPQA Diamond (Artificial Analysis run)Not measured95.3%Only Gemini 3.8 Flash measured
Humanity's Last Exam (Artificial Analysis run)Not measured47.8%Only Gemini 3.8 Flash measured
GPQA Diamond (Epoch AI run)71.2%95.4%Gemini 3.8 Flash
ARC-AGI47.7%98.5%Gemini 3.8 Flash
ARC-AGI-24.0%89.2%Gemini 3.8 Flash
Chess puzzles8.0%58.0%Gemini 3.8 Flash
Mystery game puzzlesNot measured47.0%Only Gemini 3.8 Flash measured
LMArena Text: hard prompts14211509Gemini 3.8 Flash
LMArena Text: expert14431526Gemini 3.8 Flash
LMArena Text: hard prompts in English14351504Gemini 3.8 Flash
LMArena Vision: diagramsNot measured1345Only Gemini 3.8 Flash measured
LMArena Vision: homeworkNot measured1351Only Gemini 3.8 Flash measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index03
Math benchmarks for Claude Haiku 4.5 and Gemini 3.8 Flash
BenchmarkClaude Haiku 4.5Gemini 3.8 FlashLeader
AIME82.7%Not measuredOnly Claude Haiku 4.5 measured
MGSM (Vals AI)92.2%Not measuredOnly Claude Haiku 4.5 measured
OTIS Mock AIME66.7%98.9%Gemini 3.8 Flash
FrontierMath, tiers 1 to 3Not measured68.4%Only Gemini 3.8 Flash measured
FrontierMath, tier 4Not measured22.0%Only Gemini 3.8 Flash measured
ProofBenchNot measured48.0%Only Gemini 3.8 Flash measured
MATH level 596.4%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: math13981532Gemini 3.8 Flash
LMArena Text: mathematical work14301519Gemini 3.8 Flash
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index010
Knowledge benchmarks for Claude Haiku 4.5 and Gemini 3.8 Flash
BenchmarkClaude Haiku 4.5Gemini 3.8 FlashLeader
MMLU Pro78.7%90.2%Gemini 3.8 Flash
LegalBench (Vals AI)81.2%87.0%Gemini 3.8 Flash
CaseLaw (Vals AI)56.5%Not measuredOnly Claude Haiku 4.5 measured
CorpFin (Vals AI)60.6%Not measuredOnly Claude Haiku 4.5 measured
TaxEval (Vals AI)67.5%74.5%Gemini 3.8 Flash
MortgageTax (Vals AI)62.2%65.3%Gemini 3.8 Flash
MedQA (Vals AI)79.6%Not measuredOnly Claude Haiku 4.5 measured
MedCode (Vals AI)32.7%48.1%Gemini 3.8 Flash
SimpleQA Verified13.2%69.7%Gemini 3.8 Flash
LMArena Text: science14061523Gemini 3.8 Flash
LMArena Text: medicine and healthcare13941508Gemini 3.8 Flash
LMArena Text: legal and government14001497Gemini 3.8 Flash
LMArena Text: business and finance14001479Gemini 3.8 Flash
FACTS Benchmark SuiteNot measured69.4%Only Gemini 3.8 Flash measured
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index09
Web design benchmarks for Claude Haiku 4.5 and Gemini 3.8 Flash
BenchmarkClaude Haiku 4.5Gemini 3.8 FlashLeader
Design Arena: websites11221300Gemini 3.8 Flash
Design Arena: UI components10971316Gemini 3.8 Flash
Design Arena: game dev10971304Gemini 3.8 Flash
Design Arena: data viz11241270Gemini 3.8 Flash
Design Arena: 3D10711294Gemini 3.8 Flash
Design Arena: all code categories11141303Gemini 3.8 Flash
Design Arena: SVG10251296Gemini 3.8 Flash
Design Arena: ASCII art11401262Gemini 3.8 Flash
LiveBench design59.9%72.7%Gemini 3.8 Flash
GeneralLike-for-likePublic boards, shown as published, kept out of the index221
General benchmarks for Claude Haiku 4.5 and Gemini 3.8 Flash
BenchmarkClaude Haiku 4.5Gemini 3.8 FlashLeader
Vals IndexNot measured56.0%Only Gemini 3.8 Flash measured
LiveBench data analysis59.3%54.0%Claude Haiku 4.5
Public Benefits Bench (Vals AI)54.3%65.3%Gemini 3.8 Flash
SAGE (Vals AI)31.8%35.1%Gemini 3.8 Flash
MedScribe (Vals AI)85.2%84.5%Claude Haiku 4.5
Vals Multimodal Index42.9%Not measuredOnly Claude Haiku 4.5 measured
Long context reasoning (AA-LCR)Not measured84.0%Only Gemini 3.8 Flash measured
DTBench73.6%95.7%Gemini 3.8 Flash
LMCA30.9%52.9%Gemini 3.8 Flash
Surface Evolver BenchNot measured76.9%Only Gemini 3.8 Flash measured
Furniture assemblyNot measured31.7%Only Gemini 3.8 Flash measured
ExploitBench13.7%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text13971499Gemini 3.8 Flash
LMArena Text: instruction following14141492Gemini 3.8 Flash
LMArena Text: creative writing13711488Gemini 3.8 Flash
LMArena VisionNot measured1315Only Gemini 3.8 Flash measured
LMArena Text: English14141498Gemini 3.8 Flash
LMArena Text: non-English13771491Gemini 3.8 Flash
LMArena Text: Chinese14181553Gemini 3.8 Flash
LMArena Text: German13741501Gemini 3.8 Flash
LMArena Text: Japanese13381507Gemini 3.8 Flash
LMArena Text: Korean13461464Gemini 3.8 Flash
LMArena Text: French14111496Gemini 3.8 Flash
LMArena Text: Spanish14211487Gemini 3.8 Flash
LMArena Text: Russian13811514Gemini 3.8 Flash
LMArena Text: Polish13431497Gemini 3.8 Flash
LMArena Text: multi-turn14091503Gemini 3.8 Flash
LMArena Text: longer queries14271507Gemini 3.8 Flash
LMArena Text: writing and language13861494Gemini 3.8 Flash
LMArena Text: entertainment and media13691480Gemini 3.8 Flash
LMArena Vision: EnglishNot measured1318Only Gemini 3.8 Flash measured
LMArena Vision: ChineseNot measured1416Only Gemini 3.8 Flash measured
LMArena Vision: reading textNot measured1333Only Gemini 3.8 Flash measured
LMArena Vision: humorNot measured1321Only Gemini 3.8 Flash measured
LMArena Vision: creative writingNot measured1299Only Gemini 3.8 Flash measured
LMArena Document1420Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 10 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Haiku 4.5 and Gemini 3.8 Flash
BenchmarkClaude Haiku 4.5Gemini 3.8 FlashLeader
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

Claude Haiku 4.5$0.0035Fits in one request
Gemini 3.8 Flash$0.0026Fits in one request

Gemini 3.8 Flash costs less

Repository review

50K input + 3K output tokens

Claude Haiku 4.5$0.065Fits in one request
Gemini 3.8 Flash$0.049Fits in one request

Gemini 3.8 Flash costs less

Agent loop

200K input + 10K output tokens

Claude Haiku 4.5$0.250Exceeds the context window
Gemini 3.8 Flash$0.188Fits 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 Claude Haiku 4.5 and Gemini 3.8 Flash
SpecificationAnthropic Claude Haiku 4.5Google Gemini 3.8 Flash
MakerAnthropicGoogle
WeightsNo public weights listedNo public weights listed
ReleasedOctober 15, 2025September 2, 2026
Context window200K1.05M
Input $/Mtok$1.00$0.75
Output $/Mtok$5.00$3.75
Coding index35.661.6
Independent measurements behind it46
Cost per solved task$0.56$2.74
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Haiku 4.5 better than Gemini 3.8 Flash for coding?

Pick Gemini 3.8 Flash for coding: it scores 61.6 on the Vibe Coding Index against 35.6 for Claude Haiku 4.5. Pick Claude Haiku 4.5 for a lower cost per solved task ($0.56 against $2.74) and work measured by LiveBench data analysis or MedScribe (Vals AI), where it leads.

Which is cheaper, Claude Haiku 4.5 or Gemini 3.8 Flash?

Claude Haiku 4.5 costs $1.00 per million input tokens and $5.00 per million output tokens; Gemini 3.8 Flash costs $0.75 and $3.75. Per solved SWE-bench Verified task, Claude Haiku 4.5 costs $0.56 and Gemini 3.8 Flash $2.74.

Which has the bigger context window, Claude Haiku 4.5 or Gemini 3.8 Flash?

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

How many benchmarks is the Claude Haiku 4.5 vs Gemini 3.8 Flash comparison based on?

80 benchmarks have a result for both models as of October 22, 2026. Claude Haiku 4.5's coding index rests on 4 independent benchmarks and Gemini 3.8 Flash's on 6. 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/claude-haiku-4-5-vs-gemini-3-8-flash" title="Claude Haiku 4.5 vs Gemini 3.8 Flash, 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/claude-haiku-4-5-vs-gemini-3-8-flash">LLMBenchmark.ai, Claude Haiku 4.5 vs Gemini 3.8 Flash</a></p>