Skip to content

Gemma 4 31B vs Claude 3.5 Sonnet

Gemma 4 31B is cheaper on output tokens, while Gemma 4 31B offers a larger context window. Choose Gemma 4 31B or Claude 3.5 Sonnet based on the trade-off between cost, context, and the benchmarks that matter for your use case.

SpecGemma 4 31BClaude 3.5 Sonnet
ProviderDigitalOceanDigitalOcean
Input / 1M tokens$0.18$3.00
Output / 1M tokens$0.50$15.00
Context window256K200K
Parameters
Open weightsYesNo
ReleasedApr 2026Jun 2024

FAQ

Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.