Claude Sonnet 4.6 vs Gemma 4 31B IT
Claude Sonnet 4.6 wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (152.8 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Claude Sonnet 4.6 has the larger context window (1M vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; Claude Sonnet 4.6 is API-only.
| Spec | Claude Sonnet 4.6 | Gemma 4 31B IT |
|---|---|---|
| Provider | Anthropic | Google DeepMind |
| Released | Feb 17, 2026 | Apr 2, 2026 (better) |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | — | 31B |
| Context window | 1M (better) | 256K |
| Max output | 125K (better) | 32K |
| Input price / 1M | $3 | Free (better) |
| Output price / 1M | $15 | Free (better) |
| Input modalities | text, image, pdf, file (better) | text, image, video |
| Open weights | No | Yes |
| License | Proprietary | apache-2.0 |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 58 (better) | 51 |
| Epoch Capabilities Index | 152.8 (better) | 144.1 |
| GPQA Diamond | 87.4% (better) | 75.8% |
| SWE-bench Verified | 75.2% | — |
| Terminal-Bench | 53.4% | — |
| WebDev Arena | 1521 (better) | 1364 |
| OTIS Mock AIME | 85.8% (better) | 73.3% |
| ARC-AGI-2 | 60.4% | — |
| SimpleQA Verified | 35.5% (better) | 10.4% |
| OSWorld | 72.1% | — |
Cost example
For a workload of 10M input + 2M output tokens per month: Claude Sonnet 4.6 costs $60.00 and Gemma 4 31B IT costs $0.00 at list price (Anthropic / google pricing).
About Claude Sonnet 4.6
Claude Sonnet 4.6 is a proprietary reasoning llm from Anthropic, released Feb 17, 2026. It has a 1M-token context window and accepts text, image, pdf, file input. API pricing starts at $3 per million input tokens and $15 per million output tokens. It is available from 58 API providers. It scores 152.8 on the Epoch Capabilities Index. Full Claude Sonnet 4.6 specs →
About Gemma 4 31B IT
Gemma 4 31B IT is an open-weight reasoning llm from Google DeepMind, released Apr 2, 2026. It has 31B parameters, a 256K-token context window and accepts text, image, video input. It can be used for free via API. It is available from 51 API providers. It scores 144.1 on the Epoch Capabilities Index. Full Gemma 4 31B IT specs →
Compare other models
FAQ
Which is better, Claude Sonnet 4.6 or Gemma 4 31B IT?
Claude Sonnet 4.6 wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (152.8 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Claude Sonnet 4.6 has the larger context window (1M vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; Claude Sonnet 4.6 is API-only.
Is Claude Sonnet 4.6 cheaper than Gemma 4 31B IT?
Claude Sonnet 4.6 costs $3 input / $15 output per 1M tokens; Gemma 4 31B IT costs Free / Free. Gemma 4 31B IT is cheaper overall.
Which has a bigger context window?
Claude Sonnet 4.6: 1,000,000 tokens. Gemma 4 31B IT: 262,144 tokens.
Are Claude Sonnet 4.6 and Gemma 4 31B IT open source?
Claude Sonnet 4.6 is proprietary; Gemma 4 31B IT is open-weight.