Compare Claude Sonnet 4 by Anthropic against Google: Gemma 4 31B by Google AI, in 10 community votes, google: gemma 4 31b wins 83% of head-to-head duels, context windows of 200K vs 262K, tested across 44 shared challenges. Updated May 2026.
Google: Gemma 4 31B is the better choice overall, winning 83% of 10 blind community votes on Rival. 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.
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. In community voting, In 10 community votes, Google: Gemma 4 31B wins 83% of head-to-head duels.
In 10 community votes, Google: Gemma 4 31B wins 83% of head-to-head duels. Google: Gemma 4 31B leads in Web Design. Based on blind community voting from the Rival open dataset of 10+ human preference judgments for this pair.
Google: Gemma 4 31B is cheaper on both — 21× input, 38× output
Pick Google: Gemma 4 31B. In 10 blind votes, Google: Gemma 4 31B wins 83% of the time. That's not luck.
Google: Gemma 4 31B particularly excels in Web Design. Google: Gemma 4 31B is 38x cheaper per token — worth considering if cost matters.
Claude Sonnet 4 uses 6.1x more sentence length
Compare Claude Sonnet 4 by Anthropic against Google: Gemma 4 31B by Google AI, in 10 community votes, google: gemma 4 31b wins 83% of head-to-head duels, context windows of 200K vs 262K, tested across 44 shared challenges. Updated May 2026.
Google: Gemma 4 31B is the better choice overall, winning 83% of 10 blind community votes on Rival. 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.
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. In community voting, In 10 community votes, Google: Gemma 4 31B wins 83% of head-to-head duels.
In 10 community votes, Google: Gemma 4 31B wins 83% of head-to-head duels. Google: Gemma 4 31B leads in Web Design. Based on blind community voting from the Rival open dataset of 10+ human preference judgments for this pair.
Google: Gemma 4 31B is cheaper on both — 21× input, 38× output
Pick Google: Gemma 4 31B. In 10 blind votes, Google: Gemma 4 31B wins 83% of the time. That's not luck.
Google: Gemma 4 31B particularly excels in Web Design. Google: Gemma 4 31B is 38x cheaper per token — worth considering if cost matters.
Claude Sonnet 4 uses 6.1x more sentence length