Model comparison
Gemma 4 31B and Grok 4.7 compared on price, context window, capabilities and published benchmarks. Data comes from the OpenModels registry.
| Specification | Gemma 4 31B | Grok 4.7 |
|---|---|---|
| Developer | XAI | |
| Released | Apr 2, 2026 | Sep 21, 2026 |
| Context window | 262K tokens | 500K tokens |
| Input price / 1M | $0.10via Deep Infra | $2.00via OpenRouter |
| Output price / 1M | $0.20via Deep Infra | $6.00via OpenRouter |
| Providers | 4 | 2 |
| 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 |
Only benchmarks with a published score for at least one of the two models are shown. Published scores with their sources. Vendor-reported results use the vendor's own evaluation settings and are not directly comparable across vendors.
| Benchmark | Gemma 4 31B | Grok 4.7 |
|---|---|---|
| Artificial Analysis Intelligence Index | — | 46Artificial Analysis · Independent |