Microsoft: Phi 4 vs Gemma 4 31B Garnet
Microsoft: Phi 4 is cheaper on output tokens, while Gemma 4 31B Garnet offers a larger context window. Choose Microsoft: Phi 4 or Gemma 4 31B Garnet based on the trade-off between cost, context, and the benchmarks that matter for your use case.
| Spec | Microsoft: Phi 4 | Gemma 4 31B Garnet |
|---|---|---|
| Provider | Microsoft | NanoGPT |
| Input / 1M tokens | $0.07 | $0.31 |
| Output / 1M tokens | $0.14 | $0.31 |
| Context window | 16K | 262K |
| Parameters | — | — |
| Open weights | — | No |
| Released | — | May 2026 |
FAQ
Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.