Phi-4 Mini
ActiveCompact yet capable small language model.
Updated 3 days agoStructured data from Modeldex catalog
Agentic
Not enough benchmark coverage yet for an Intelligence Index — needs at least 3 results across 2 categories.
History
Phi-4 Mini is available from Microsoft.
Training & availability
Microsoft has not released the underlying model weights — access is via their hosted API only.
Capabilities
- Input modalities: text.
Recommended for: agentic.
Limitations
- Text-only — cannot process images, audio, or video inputs.
Quick start
Minimal example using the OpenRouter API. Copy, paste, replace the key.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="sk-or-...",
)
resp = client.chat.completions.create(
model="microsoft/phi-4-mini",
messages=[{"role": "user", "content": "Explain quantum computing in one sentence."}],
)
print(resp.choices[0].message.content)Cost calculator
Estimate your monthly bill. Presets are typical workload sizes.
5.0M
@ $0.075/1M
2.0M
@ $0.3/1M
Input cost
$0.375
5.0M × $0.075/1M
Output cost
$0.6
2.0M × $0.3/1M
Total / month
$0.975
$11.7 / year
Integrations & tooling support
- Tool calling
- Supported
- Structured outputs
- Supported
Price vs quality
Budget pricing
Priced low — good for high-volume tasks. Quality tier pending more benchmark coverage.
- Quality percentile
- —
- Effective price
- $0.244/1M
- Pricing breakdown
- $0.075/1M in
$0.3/1M out
not enough benchmark coverage
/ 1M tokens (input + 3× output)
Community ratings
No ratings yet. Be the first to rate Phi-4 Mini.
Rate Phi-4 Mini
Sign in to rate and review.
Comments
Sign in to leave a comment.