Google: Gemma 4 31B vs Claude Sonnet 4

Compare Google: Gemma 4 31B by Google AI against Claude Sonnet 4 by Anthropic, context windows of 262K vs 200K, tested across 27 shared challenges. Updated April 2026.

Which is better, Google: Gemma 4 31B or Claude Sonnet 4?

Google: Gemma 4 31B and Claude Sonnet 4 are both competitive models. Google: Gemma 4 31B costs $0.14/M input tokens vs $3/M for Claude Sonnet 4. Context windows: 262K vs 200K tokens. Compare their real outputs side by side below.

Key Differences Between Google: Gemma 4 31B and Claude Sonnet 4

Google: Gemma 4 31B is made by google while Claude Sonnet 4 is from anthropic. Google: Gemma 4 31B has a 262K token context window compared to Claude Sonnet 4's 200K. On pricing, Google: Gemma 4 31B costs $0.14/M input tokens vs $3/M for Claude Sonnet 4.

Our Verdict
Google: Gemma 4 31B
Google: Gemma 4 31B
Claude Sonnet 4
Claude Sonnet 4Runner-up

No community votes yet. On paper, Google: Gemma 4 31B has the edge — bigger model tier, newer.

Google: Gemma 4 31B is 38x cheaper per token — worth considering if cost matters.

Too close to call
Writing DNA

Style Comparison

Similarity
100%

Claude Sonnet 4 uses 6.1x more sentence length

Google: Gemma 4 31B
Claude Sonnet 4
57%Vocabulary62%
18wSentence Length111w
0.37Hedging0.40
7.1Bold5.0
4.0Lists9.3
0.24Emoji0.88
0.94Headings2.16
0.16Transitions0.33
Based on 23 + 17 text responses
vs

Ask them anything yourself

Google: Gemma 4 31BClaude Sonnet 4
FAQ