# Phi-4-mini

> Phi-4-mini is an open-weight language model from Microsoft, released on 11 Dec 2024. It accepts text and generates text, with a 128K-token context window and up to 4K output tokens per response. As of 21 Oct 2026, the lowest listed API price is $0.07 per million input tokens and $0.30 per million output tokens (Azure AI Foundry), across 1 provider we track.

Source page: https://www.aimodel.directory/models/phi-4-mini
Last verified: 21 Oct 2026

## Specifications

- **Developer:** Microsoft
- **Release date:** 11 Dec 2024 (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/azure/models/phi-4-mini.toml)
- **Status:** Generally available (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/azure/models/phi-4-mini.toml)
- **Weights:** Open weights (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/azure/models/phi-4-mini.toml)
- **Context window:** 128K (128,000 tokens) (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/azure/models/phi-4-mini.toml)
- **Max output:** 4K tokens (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/azure/models/phi-4-mini.toml)
- **Knowledge cutoff:** Oct 2023 (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/azure/models/phi-4-mini.toml)
- **Input:** Text (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/azure/models/phi-4-mini.toml)
- **Output:** Text (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/azure/models/phi-4-mini.toml)
- **Reasoning mode:** No (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/azure/models/phi-4-mini.toml)
- **Tool calling:** Yes (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/azure/models/phi-4-mini.toml)

## API pricing (USD per 1M tokens)

| Provider | Input | Output | Cached input | Context |
|---|---|---|---|---|
| Azure AI Foundry | $0.07 | $0.30 | – | 128K |

## FAQ

### What is the context window of Phi-4-mini?

Phi-4-mini has a context window of 128,000 tokens (128K) and can generate up to 4,096 tokens in a single response, according to models.dev.

### How much does the Phi-4-mini API cost?

Phi-4-mini is listed from $0.07 per million input tokens and $0.30 per million output tokens (Azure AI Foundry). Prices last verified 21 Oct 2026.

### Is Phi-4-mini open source?

Phi-4-mini is an open-weight model. Check the license terms before commercial use.

### When was Phi-4-mini released?

Microsoft released Phi-4-mini on 11 Dec 2024, according to models.dev.

---
Data licensed CC BY 4.0. Cite as: AI Model Directory, "Phi-4-mini", https://www.aimodel.directory/models/phi-4-mini