| Gemma 4 31B | Phi 4 | |
|---|---|---|
| Input, per 1M tokens | $0.09 | $0.07 |
| Output, per 1M tokens | $0.34 | $0.14 |
| Context window | 262K | 16K |
| Classification or routing (600 tokens in, 10 out), per 1,000 | $0.0574 | $0.0434 |
| Chat reply (2,000 in, 400 out), per 1,000 | $0.316 | $0.196 |
| Retrieval-augmented answer (8,000 in, 500 out), per 1,000 | $0.89 | $0.63 |
| Confidence signal | yes | no |
| Tool calling | yes | no |
| BANKING77, correct of 400 | 304 | not measured |
Which one should carry your traffic?
If Phi 4 answers your requests as well as Gemma 4 31B, moving that traffic saves 38% on chat-shaped requests. Averages cannot tell you whether it does for your requests. Phi 4 does not expose a confidence signal through OpenRouter, so Gimbix would test it as a full replacement rather than a first answer.
Gemma 4 31B profile · Phi 4 profile · Measure it on your traffic