Compact Microsoft instruction model tuned for efficient coding assistance, reasoning, and low-latency agent tasksPhi-4-mini by microsoft is offered by 3 providers on this page. Its official list price is $0.075 per 1M input tokens and $0.30 per 1M output tokens. No paid channel is priced below the official list price. Prices vary about 2.3× across the providers that host it.
Median output speed is 45 tokens per second, with 0.88s to the first token.
The context window is 128,000 tokens at the reference host, but hosts report different limits, from 8,192 to 128,000, so the usable window depends on the provider you pick. It supports tool use. The weights are open, so it can also be self-hosted or served through a gateway of your choice. Providers report the capability flags inconsistently, so verify a specific feature against the host you plan to use. Its training knowledge cuts off at 2024-06.
Quality is independently evaluated by Artificial Analysis. Speed/latency are model-level medians.
| Provider | Tier | Input | Output | Cache read | Cache write | Context | Output limit | Status |
|---|---|---|---|---|---|---|---|---|
| Azure Cognitive ServicesOfficial | Cloud | $0.075 | $0.30 | — | — | 128,000 | 4,096 | |
| AzureOfficial | Cloud | $0.075 | $0.30 | — | — | 128,000 | 4,096 | |
| NanoGPT phi-4-mini-instruct | Gateway | $0.17 | $0.68 | $0.085 | — | 8,192 ⚠ | 4,096 |
Sorted by blended price (input×0.75 + output×0.25) asc. The official channel always shows regardless of rank. Whether a gateway's low price is actually usable can't be verified.
| Name | Conditions | Score | Metric | Source |
|---|---|---|---|---|
| MMLU | — | 67.3 | accuracy | Source ↗ |
The same benchmark scores very differently across harness / dataset, so the qualifying conditions must be shown together.
Individual evaluations run by Artificial Analysis, on the same reasoning tier as the intelligence score above. Each benchmark has its own task set and scale (percent correct, points or an index), so rows are not comparable with one another.