Phi-4 by Microsoft demonstrates competitive pricing. View detailed benchmark data including scores across coding, math, reasoning, speed, and cost metrics.
Specifications last checked against the provider on . Benchmark scores carry their own source, linked beside each number.
Speed Benchmarks
Cost Benchmarks
Context Benchmarks
Available from 3 providers
The same model costs different amounts depending on who serves it. You can bring your own key for 2 of these — connect it here.
| Provider | Input / 1M | Output / 1M | Cached in | Context | Your key |
|---|---|---|---|---|---|
| OpenRouter | $0.07 | $0.14 | — | 16K | Supported |
| Azure | $0.125 | $0.5 | — | 128K | Supported |
| Azure Cognitive Services | $0.125 | $0.5 | — | 128K | — |
Phi-4 — Benchmark Scores Overview
Scores normalized to percentage scale for visual comparison. ELO scores mapped to 0-100 range (1100-1500).
Phi-4 — Frequently Asked Questions
How much does Phi-4 cost?
Phi-4 costs $0.07 per 1M input tokens and $0.14 per 1M output tokens. This makes it one of the more affordable models.
How fast is Phi-4?
Phi-4 generates output at 93 tokens per second, which is moderate compared to other models. The time to first token is 300 ms.
What is the context window of Phi-4?
Phi-4 has a context window of 16K tokens. This determines how much text, conversation history, and code the model can process in a single request.
Who created Phi-4?
Phi-4 was created by Microsoft. It is classified as a open source model in our catalogue.
Is Phi-4 open source?
Yes, Phi-4 is an open-source model. The model weights are publicly available for download and self-hosting.