Input / output, USD per 1M tokens. Arrow keys move, Enter opens.

Phi-4-mini from Microsoft: $0.075 input and $0.30 output per 1M tokens, 128,000 context. Compact Microsoft instruction model tuned for efficient coding assistance, reasoning, and low-latency agent tasks Data last refreshed Nov 30, 2026, 07:15 AM UTC.

Models / Microsoft / Phi-4-mini

Microsoft · phi-mini

Phi-4-mini

Compact Microsoft instruction model tuned for efficient coding assistance, reasoning, and low-latency agent tasks

$0.075 in · $0.30 out

per 1M tokens · provider rate closest to the median. No first-party Microsoft price was listed. The reference price is Azure's rate, the provider closest to the median.

Provider input prices run from $0.075 to $0.17 per 1M tokens. Output prices run from $0.30 to $0.68.

Context
128,000
Max output
4,096
Cache read
—
Cache write
—
Reasoning
No
Tool calls
Yes
Structured output
Unknown
Vision
No
Open weights
Yes
License
—
Released
Feb 26, 2025
Updated in source
Feb 26, 2025
Knowledge
2024-06
Providers
3

Hugging Face weights · Weights

What this model costs per month

Prices are USD per 1M tokens. A month is 30 days. Cache hits use the cache-read rate when the model has one; otherwise the cache field is ignored.

Estimated monthly cost

Phi-4-mini

$0.90

Cache hit is ignored because this model has no cache-read price.

monthly = requests/day × 30 × (input tokens × (1 − cache hit) × input price + input tokens × cache hit × cache-read price + output tokens × output price) ÷ 1,000,000

Providers

Base rates from Models.dev. One row per provider.
ProviderInputOutputCache readCache writeStatus
Azurereference$0.075$0.30———
Azure Cognitive Services$0.075$0.30———
NanoGPT$0.17$0.68$0.085——