Claude Sonnet 4 vs Google: Gemma 4 31B

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

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

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

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

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

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

Claude Sonnet 4
Google: Gemma 4 31B
62%Vocabulary57%
111wSentence Length18w
0.40Hedging0.37
5.0Bold7.1
9.3Lists4.0
0.88Emoji0.24
2.16Headings0.94
0.33Transitions0.16
Based on 17 + 23 text responses
vs

Ask them anything yourself

Claude Sonnet 4Google: Gemma 4 31B
FAQ