AI model comparison

Claude Haiku 5.5 vs Gemma 4 31B

Side by side comparison of Claude Haiku 5.5 and Gemma 4 31B on pricing, benchmark scores, context window, and more.

Claude Haiku 5.5 is Anthropic's small, fast model for high-volume, cost-sensitive work such as summarization, subagents, and browser use.

Input / 1M
$0.10
Output / 1M
$0.50
Context
1M

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output.

Input / 1M
$0.20
Output / 1M
$0.40
Context
262K

Comparing image generators? Compare image models

At a glance

Quick verdict

How the two models stack up on the things people ask about most.

Lower price

anthropic logo

Claude Haiku 5.5

1.3x cheaper for a typical chat

Higher intelligence score

Not available

Not enough benchmark data

Larger context window

anthropic logo

Claude Haiku 5.5

1M vs 262K tokens

Newer release

anthropic logo

Claude Haiku 5.5

Released October 7, 2026

Benchmarks

Benchmark scores

Independent scores from Artificial Analysis. Higher is better.

Intelligence index

anthropic logoClaude Haiku 5.536.2
google logoGemma 4 31BNot available

Coding index

anthropic logoClaude Haiku 5.5Not available
google logoGemma 4 31B43.4

Agentic index

anthropic logoClaude Haiku 5.5Not available
google logoGemma 4 31B4.2

Pricing

Claude Haiku 5.5 vs Gemma 4 31B API pricing

Per-token API rates. Cheaper option highlighted.

Metricanthropic logoClaude Haiku 5.5google logoGemma 4 31B
Input tokensPer 1M tokens$0.10$0.20
Output tokensPer 1M tokens$0.50$0.40
Cached input (read)Per 1M tokens$0.01Not available
Cache writePer 1M tokens$0.13Not available
Long-context pricingPer 1M tokens, for very long prompts$0.50 in / $2.50 out above 100KSame rate at any length
Web searchPer request$0.01Not available

What it costs in practice

Estimated cost per 1,000 requests at standard rates. Coding and long-document figures also show the cost when the input is already cached.

Chat message

2K in, 500 out

anthropic logoClaude Haiku 5.5$0.45
google logoGemma 4 31B$0.60

Coding task

30K in, 4K out

anthropic logoClaude Haiku 5.5$5$2.30 cached
google logoGemma 4 31B$7.60

Long document summary

150K in, 2K out

anthropic logoClaude Haiku 5.5$16$2.50 cached
google logoGemma 4 31B$30.80

Specs

Context window and capabilities

How much each model can read, how much it can write, and what it accepts as input.

Metricanthropic logoClaude Haiku 5.5google logoGemma 4 31B
Context window1M tokens262K tokens
Max output128K tokens16K tokens
Input typesFile, Image, TextImage, Text, Video
Output typesTextText
Reasoning effort levelsMax, Extra high, High, Medium, Low, NoneNot available
Default reasoning effortMediumNot available
Release dateOctober 7, 2026April 2, 2026

Features

Supported features

API features available for each model.

Metricanthropic logoClaude Haiku 5.5google logoGemma 4 31B
Tool callingSupportedSupported
Structured outputsSupportedSupported
JSON modeSupportedSupported
ReasoningSupportedSupported
TemperatureNot supportedSupported
Stop sequencesSupportedSupported
Deterministic seedNot supportedSupported
Verbosity controlSupportedNot supported

Our take

Claude Haiku 5.5 is 1.3x cheaper for a typical chat. Claude Haiku 5.5 has the larger context window (1M vs 262K tokens). The right pick depends on your workload, so the quickest way to settle it is to send the same prompt to both and compare.

FAQ

Frequently asked questions

Is Claude Haiku 5.5 or Gemma 4 31B cheaper?

Claude Haiku 5.5 is cheaper for a typical chat (2K input tokens and 500 output tokens). Claude Haiku 5.5 costs $0.10 per 1M input tokens and $0.50 per 1M output tokens, while Gemma 4 31B costs $0.20 per 1M input tokens and $0.40 per 1M output tokens.

Which has a bigger context window, Claude Haiku 5.5 or Gemma 4 31B?

Claude Haiku 5.5 supports up to 1M tokens of context, compared with 262K for Gemma 4 31B.

Can I use Claude Haiku 5.5 and Gemma 4 31B at the same time?

Yes. Shortcut Chat sends one prompt to multiple models at once, so you can see Claude Haiku 5.5 and Gemma 4 31B answer side by side and keep the better response.

anthropic logogoogle logo

Why choose? Ask both.

Send one prompt to Claude Haiku 5.5 and Gemma 4 31B at the same time. Compare the answers side by side and keep the best one.