Claude 3.7 Sonnet vs Google: Gemma 4 31B

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

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

Claude 3.7 Sonnet and Google: Gemma 4 31B are both competitive models. Claude 3.7 Sonnet 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 3.7 Sonnet and Google: Gemma 4 31B

Claude 3.7 Sonnet is made by anthropic while Google: Gemma 4 31B is from google. Claude 3.7 Sonnet has a 200K token context window compared to Google: Gemma 4 31B's 262K. On pricing, Claude 3.7 Sonnet 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 3.7 Sonnet
Claude 3.7 SonnetRunner-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%

Google: Gemma 4 31B uses 23.8x more emoji

Claude 3.7 Sonnet
Google: Gemma 4 31B
62%Vocabulary57%
35wSentence Length18w
0.99Hedging0.37
1.2Bold7.1
4.3Lists4.0
0.00Emoji0.24
1.78Headings0.94
0.23Transitions0.16
Based on 13 + 23 text responses
vs

Ask them anything yourself

Claude 3.7 SonnetGoogle: Gemma 4 31B
FAQ