Claude Sonnet 5 vs Gemma 4 31B IT
Gemma 4 31B IT is cheaper on output tokens, while Claude Sonnet 5 offers a larger context window. Choose Claude Sonnet 5 or Gemma 4 31B IT based on the trade-off between cost, context, and the benchmarks that matter for your use case.
| Spec | Claude Sonnet 5 | Gemma 4 31B IT |
|---|---|---|
| Provider | NEAR AI Cloud | NEAR AI Cloud |
| Input / 1M tokens | $2.00 | $0.13 |
| Output / 1M tokens | $10.00 | $0.40 |
| Context window | 1M | 262K |
| Parameters | — | — |
| Open weights | No | Yes |
| Released | Jun 2026 | Apr 2026 |
FAQ
Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.