Model comparison
Gemma 4 31B and Grok 4.20 compared on price, context window, capabilities and published benchmarks. Data comes from the OpenModels registry.
| Specification | Gemma 4 31B | Grok 4.20 |
|---|---|---|
| Developer | XAI | |
| Released | Apr 2, 2026 | Feb 1, 2026 |
| Context window | 262K tokens | 2M tokens |
| Input price / 1M | $0.10via Deep Infra | $1.25via xAI |
| Output price / 1M | $0.20via Deep Infra | $2.50via xAI |
| Providers | 4 | 1 |
| License | apache-2.0 | proprietary |
| Input modalities | code, image, text | code, image, text |
| Capabilities | chat, completion, vision, code-generation, reasoning | chat, completion, function-calling, vision, code-generation, reasoning |
| Reasoning | Yes | Yes |
| Tool calling | No | Yes |
No published benchmark scores recorded for these models yet.