Comprehensive side-by-side LLM comparison
Claude Sonnet 4 leads with 44.6% higher average benchmark score. Claude Sonnet 4 offers 65.9K more tokens in context window than Gemma 3 4B. Gemma 3 4B is $17.94 cheaper per million tokens. Claude Sonnet 4 is available on 4 providers. Overall, Claude Sonnet 4 is the stronger choice for coding tasks.
Anthropic
Claude Sonnet 4 was created as the balanced offering in the Claude 4 family, designed to provide strong intelligence with practical speed and cost efficiency. Built to serve as a versatile workhorse for diverse applications, it balances advanced capabilities with operational considerations for everyday enterprise and consumer use.
Gemma 3 4B was developed as a compact yet capable open-source model, designed to strike a balance between performance and resource efficiency. Built with 4 billion parameters and instruction tuning, it provides a practical option for applications requiring moderate capability with manageable computational costs.
2 months newer

Gemma 3 4B
2025-03-12

Claude Sonnet 4
Anthropic
2025-05-22
Cost per million tokens (USD)

Claude Sonnet 4

Gemma 3 4B
Context window and performance specifications
Average performance across 1 common benchmarks

Claude Sonnet 4

Gemma 3 4B
Gemma 3 4B
2024-08-01
Available providers and their performance metrics

Claude Sonnet 4
Anthropic
Bedrock
ZeroEval

Claude Sonnet 4

Gemma 3 4B

Claude Sonnet 4

Gemma 3 4B

Gemma 3 4B
DeepInfra