Phi 4 vs Devstral Small: cost comparison
Prices updated 2026-11-19 · computed from live provider data
Short answer: Phi 4 is cheaper on a
3:1 input/output blend — $0.087 per million tokens versus
$0.122, a 29% difference.
Devstral Small offers the larger context window at 128,000 tokens, against 16,384 for Phi 4.
Head to head
| Phi 4 | Devstral Small | |
|---|---|---|
| Input, per 1M tokens | $0.070 | $0.070 |
| Output, per 1M tokens | $0.140 | $0.280 |
| Blended 3:1, per 1M | $0.087 | $0.122 |
| Context window | 16,384 | 128,000 |
| Vendor | microsoft | vercel_ai_gateway |
Monthly cost at real volumes
| Workload (input / output) | Phi 4 | Devstral Small |
|---|---|---|
| 1M in / 250K out | $0.105 | $0.140 |
| 10M in / 2.5M out | $1.05 | $1.40 |
| 100M in / 25M out | $10.50 | $14.00 |
Which should you pick?
Pick Devstral Small when you need the longer context window (128,000 vs 16,384 tokens). Pick Phi 4 when price per token dominates your workload — high-volume classification, extraction, or batch summarisation.