Claude Sonnet 4.5 vs Gemma 4 31B

At a Glance

Compare
Gemma 4 31BGoogle DeepMind
Intelligence, Cost, and Efficiency
IntelligenceHigher is better · MM Intelligence v2.5#36 of 4627.7 score · 2/3 sources · provisional · missing LiveBench · full-core range 18.5–51.8UnrankedNot in the 46-model eligible cohort
Pricing and Limits
Input priceFrom · USD / 1M tokens$3.00Anthropic · Sep 3, 2026$0.090Openrouter · Sep 22, 2026
Output priceFrom · USD / 1M tokens$15.00Anthropic · Sep 3, 2026$0.34Openrouter · Sep 22, 2026
Context windowMaximum documented tokens200K262K
Model facts checkedSep 3, 2026View model evidence →Sep 3, 2026View model evidence →

Token prices are the lowest available sourced USD rates; input and output may use different providers. Cost ranking estimates output spend on LiveBench, not a full request bill. Ranking methodology →

Available Benchmarks

All benchmark results →
BenchmarkClaude Sonnet 4.5Gemma 4 31B
LMArena Document Arenadocument-2026-09-13-d25aabda0010 · arena_rating · leader1,449.81100% of row best · rating · claude-sonnet-4-5-20250929; 95% CI [1443.68972646, 1455.92640287]; votes 31455; rank 281,424.5198% of row best · rating · gemma-4-31b; 95% CI [1416.71159012, 1432.31286462]; votes 12326; rank 35
LMArena Text Arenatext-2026-09-13-d25aabda0010 · arena_rating · statistical tie1,433.9499% of row best · rating · claude-sonnet-4-5-20250929-high-32k; 95% CI [1431.13982742, 1436.74901697]; votes 80980; rank 811,441.68100% of row best · rating · gemma-4-31b; 95% CI [1434.13929794, 1449.22204224]; votes 5894; rank 64
Overall ResultCounted from the protocol-matched rows above · 1 tie1 benchmark winNo overall winner0 benchmark winsNo overall winner

Third-party benchmark Only like-for-like primary-publisher results are shown; raw scores, relative scores, configuration, and token spend remain visible.

Side-by-Side Facts

FieldClaude Sonnet 4.5Gemma 4 31B
DeveloperAnthropicGoogle DeepMind
FamilyClaude 4Gemma 4
ModelClaude Sonnet 4.5Gemma 4 31B
VersionClaude Sonnet 4.5Gemma 4 31B
Lifecycleactiveactive
Released2025-09-292026-03-11
Knowledge cutoff2025-01-01Unknown
Input modalitiesText, ImageText, Image
Output modalitiesTextText
Context window200K262K
Total parametersUnknown31B
Active parametersUnknownUnknown
LicenseUnknownapache-2.0
Open weightsNoYes
API availableYesYes
Self-hostableNoYes
Provider accessAnthropic (Standard)Cerebras (Standard), Deepinfra (Standard), Google Gemini (Standard), Openrouter (Standard), Together Ai (Standard)
Capabilitieschat, generation, reasoning, structured_outputs, toolschat, generation, reasoning, structured_outputs, tools

Claude Sonnet 4.5 Capabilities

chatgenerationreasoningstructured outputstools
Serving providers1
Canonical IDanthropic/claude-sonnet-4-5

Gemma 4 31B Capabilities

chatgenerationreasoningstructured outputstools
Serving providers5
Canonical IDgoogle/gemma-4-31B-it

Primary Evidence

Sources and Freshness

Questions

Claude Sonnet 4.5 vs Gemma 4 31B FAQs

Is Claude Sonnet 4.5 or Gemma 4 31B better for coding?+

This comparison does not currently contain a protocol-matched coding benchmark for both Claude Sonnet 4.5 and Gemma 4 31B, so Model Markets cannot name a coding leader from pricing, context size, or capability labels alone.

Which is cheaper, Claude Sonnet 4.5 or Gemma 4 31B?+

Claude Sonnet 4.5 is $3.00 and Gemma 4 31B is $0.090 per million tokens, so Gemma 4 31B is cheaper on this metric. Claude Sonnet 4.5 is $15.00 and Gemma 4 31B is $0.34 per million tokens, so Gemma 4 31B is cheaper on this metric.

Which has a larger context window, Claude Sonnet 4.5 or Gemma 4 31B?+

Gemma 4 31B has the larger sourced context window. Claude Sonnet 4.5 supports 200K and Gemma 4 31B supports 262K.

Which performs better in benchmarks, Claude Sonnet 4.5 or Gemma 4 31B?+

There is no overall benchmark winner: An overall winner requires at least two decisive benchmarks from at least two original publishers.

Can Claude Sonnet 4.5 or Gemma 4 31B be self-hosted?+

Gemma 4 31B is the only model in this pair currently marked as self-hostable. Claude Sonnet 4.5 is not marked open weight; Gemma 4 31B is open weight.

Can Claude Sonnet 4.5 and Gemma 4 31B understand images?+

Claude Sonnet 4.5 is documented with image input; Gemma 4 31B is documented with image input. This reflects supported input modalities, not vision quality.

Which can generate longer answers, Claude Sonnet 4.5 or Gemma 4 31B?+

Neither has a larger sourced maximum output. Claude Sonnet 4.5 is 64K and Gemma 4 31B is —.

Do Claude Sonnet 4.5 and Gemma 4 31B support reasoning and tool use?+

Claude Sonnet 4.5: reasoning, tool calling, and image input. Gemma 4 31B: reasoning, tool calling, and image input. Feature support does not establish relative quality.

Which is available from more inference providers, Claude Sonnet 4.5 or Gemma 4 31B?+

Claude Sonnet 4.5 has 1 sourced provider route; Gemma 4 31B has 5, so Gemma 4 31B has broader tracked availability.

Which offers better value, Claude Sonnet 4.5 or Gemma 4 31B?+

There is no universal value winner. Compare the input and output prices above with the matched benchmark result for your workload: cheaper tokens can be offset by different quality, token usage, latency, or provider availability.

Send Feedback