Phi 4
Phi 4 is a text model from
Azure AI with a context window of 16K tokens and max output of 16K tokens. Pricing starts at 0.13 per million input tokens and 0.50 per million output tokens (cheapest at DeepInfra).
Capabilities
✗ Vision✓ Function Calling✗ Reasoning✗ JSON Schema✗ System Messages✗ Web Search✗ Prompt Caching✗ Audio Input✗ Audio Output
Specifications
| Model Key | azure_ai/Phi-4 |
| Provider | |
| Provider ID | azure_ai |
| Mode | Text |
| Canonical Name | phi-4 |
| Context Window | 16K tokens |
| Max Output | 16K tokens |
Pricing
| Type | Per 1K Tokens | Per 1M Tokens |
|---|---|---|
| Input Tokens | 0.000125 | 0.125 |
| Output Tokens | 0.000500 | 0.500 |
Price Comparison by Provider
Compare prices for Phi 4 across different providers. The same model may be available through multiple providers at different price points.
Provider | Model Key | Input Price, $ | Output Price, $ |
|---|---|---|---|
| deepinfra/microsoft/phi-4 | 0.070 | 0.140 | |
| azure_ai/Phi-4 | 0.125 | 0.500 |
All Variants
All available versions, regions, and API endpoints for Phi 4.
Model Key | Provider | Mode | Input Price, $ | Output Price, $ | Context | Max Output | Vision | Functions |
|---|---|---|---|---|---|---|---|---|
| azure_ai/Phi-4 | Text | 0.125 | 0.500 | 16K | 16K | no | yes | |
| deepinfra/microsoft/phi-4 | Text | 0.070 | 0.140 | 16K | 16K | no | yes |