Microsoft

Phi-4-mini

Generally availableOpen weights128K context

Summary

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.

Efficient model for low-latency assistance, extraction, and routine automation

Last verified 21 Oct 2026. Every figure on this page links to its source.

Specifications

DeveloperMicrosoft
Release date11 Dec 2024 [models.dev]
StatusGenerally available [models.dev]
WeightsOpen weights [models.dev]
Context window128K (128,000 tokens) [models.dev]
Max output4K tokens [models.dev]
Knowledge cutoffOct 2023 [models.dev]
InputText [models.dev]
OutputText [models.dev]
Reasoning modeNo [models.dev]
Tool callingYes [models.dev]

Phi-4-mini API pricing by provider

USD per million tokens. Sorted by input price.

ProviderInputOutputCached inputContextSource
Azure AI Foundry
phi-4-mini
$0.07$0.30–128Kmodels.dev, 21 Oct 2026

Frequently asked questions

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.

Change history

  • Added to the directory
  • Now listed on Azure AI Foundry

Sources