| Gemma 4 31B | Grok 4.7 | |
|---|---|---|
| Input, per 1M tokens | $0.09 | $1.60 |
| Output, per 1M tokens | $0.34 | $4.80 |
| Context window | 262K | 500K |
| Classification or routing (600 tokens in, 10 out), per 1,000 | $0.0574 | $1.01 |
| Chat reply (2,000 in, 400 out), per 1,000 | $0.316 | $5.12 |
| Retrieval-augmented answer (8,000 in, 500 out), per 1,000 | $0.89 | $15.20 |
| Confidence signal | yes | yes |
| Tool calling | yes | yes |
| BANKING77, correct of 400 | 304 | not measured |
Which one should carry your traffic?
If Gemma 4 31B answers your requests as well as Grok 4.7, moving that traffic saves 94% on chat-shaped requests. Averages cannot tell you whether it does for your requests. Gemma 4 31B exposes a confidence signal, so Gimbix can let it answer first and hand unsure cases to Grok 4.7.
Gemma 4 31B profile · Grok 4.7 profile · Measure it on your traffic