Phi-4-Mini

by MicrosoftChat

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

Context
131K tokens
Max output
16,384 tokens
Parameters
3.8B total
Released
2024-12-01
Weights
Open
Licence
mit

Weights on Hugging Face

microsoft/phi-4-mini-instruct

Specifications

Full facts as recorded, incl. what is unknown.

Released
2024-12-01
Weights
Opennot gated
License
mit
Input
Text
Output
Text
Context window
131,072 max across endpoints
Max output
16,384
Providers
2 + 1 gateway, not counted as providers
Epoch Capabilities Index
not evaluated
Direct price range
$0.075 in · $0.30 out per 1M tokens · 1 of 2 providers have a comparable price
More details
Last updated
2025-09-05
Knowledge cutoff
2024-12
Weights link
Hugging Face · microsoft/Phi-4-mini-instruct
Parameters
3.8B total

Capabilities

Across all endpoints: supported if any endpoint supports it.

  • Tool calling
  • Parallel toolsunknown
  • Structured output
  • Reasoning
  • Image input
  • PDF input
  • Audio input
  • Audio outputunknown
  • Video input
  • Prompt cachingunknown
  • Web searchunknown
  • Computer useunknown
  • System messagesunknown
  • Assistant prefillunknown
  • Temperature
  • Streamingunknown
  • Attachments

Endpoints

One row per provider and variant; gateways are listed separately.

Loading endpoints…

Price history

No change since 19 Oct 2026. The cheapest direct price has been $0.075 in / $0.30 out per 1M tokens at Azure on every data refresh since then.

Tracked from 19 Oct 2026. Headline-eligible direct prices only, so a price the sanity check flags never draws a spike. Series as JSON

Cost calculator

Loading endpoints…

Similarly priced models

Blended rate per 1M tokens, each at its own cheapest provider (10M input : 2M output mix).

ModelBlended/1MIn/1MOut/1MContextvs Phi-4-Mini
K2-ThinkLLM360$0.255$0.17$0.68128K+0%
Qwen3-Next 80B-A3B InstructAlibaba (Qwen)$0.258$0.09$1.10131K+1%
Qwen3.8 Flash NextAlibaba (Qwen)$0.25$0.20$0.50262K−2% cheaper
Grok-4.1-FastxAI$0.25$0.20$0.502M−2% cheaper
Grok 4 Fast Non-ReasoningxAI$0.25$0.20$0.502M−2% cheaper
Mistral SabaMistral AI$0.265$0.199$0.59532.8K+4%
Qwen3.5 122B-A10BAlibaba (Qwen)$0.244$0.113$0.901262K−4% cheaper
Nemotron Nano 12B v2 VLNVIDIA$0.267$0.20$0.60131K+5%

More from Microsoft

Newest Microsoft models in the catalogue. All Microsoft models

ModelReleasedContextListed price
Microsoft-Decision-12026-10-0932.8Kunpriced
MAI-Voice-2.12026-10-01—unpriced
MAI-Voice-2.1-Flash2026-10-01—unpriced
MAI-Transcribe-2-Streaming2026-10-01—unpriced
MAI-Image-2.62026-09-044.1Kunpriced
MAI-Image-2.6-Flash2026-09-044.1Kunpriced
MAI-Transcribe 22026-09-03—unpriced
MAI-Code-1.1-Flash2026-08-11256K$0.20 via GitHub Copilot
Heads up: prices are indicative list rates scraped from provider pricing pages; verify with the provider before relying on them. Report incorrect data for this model