Phi 4 Mini Instruct
microsoft/phi-4-mini-instructPor Microsoft · familia: phi · lanzado 2024-12-11 · fecha de conocimiento: 2023-10
Prices in USD per 1M tokens. Unknown means the provider does not publish per-token pricing.
Capacidades
Model fit scores
0–100 · higher is betterThese scores reward declared capabilities, context size, price and provider availability — they are not benchmark results. Use them as a directional signal alongside your own evaluation.
Coding27
- Tool calling0/40
- Structured output20/20
- Reasoning0/10
- Context window (100K → 1M)2/20
- Provider availability5/10
Agents45
- Tool calling0/35
- Structured output25/25
- Reasoning0/15
- Output token limit15/15
- Provider availability5/10
JSON / structured output79
- Structured output / JSON mode50/50
- Tool calling0/20
- Temperature control10/10
- Price-friendly for high-volume19/20
Cost efficiency76
- Headline price (log-scaled)71/95
- Has prompt-cache pricing5/5
Long context45
- Context window (100K → 2M)35/90
- Has published price for full window10/10
Production-readiness81
- Number of independent providers25/40
- Has published per-token price20/20
- Context window ≥ 8K15/15
- No data inconsistencies across providers6/10
- Official model (not derivative)15/15
Cost Efficiency Index
Open full calculator →Estimated cost using the recommended provider's headline rate. Each scenario fixes average input/output tokens — the assumptions are shown in the third column.
| Scenario | Cost | Assumption |
|---|---|---|
RAG answer per 1,000 RAG answers | $0.57 < $0.01 per request | 5K input tokens (query + 4 retrieved chunks of ~1K each) and a 500-token answer. Typical SaaS knowledge-base bot. |
Support ticket triage per 10,000 tickets | $1.15 < $0.01 per request | 1K input tokens (ticket body + system prompt) and a 100-token JSON classification reply. High-volume customer support. |
Data extraction per 1,000 documents | $0.34 < $0.01 per request | 2K input tokens (a single document page) and a 500-token JSON extraction. ETL / invoice / form pipelines. |
Code review per 1,000 PRs | $0.99 < $0.01 per request | 8K input tokens (diff + surrounding files) and a 1K-token review comment. PR-bot workloads. |
Agent step per 1,000 steps | $1.17 < $0.01 per request | 12K input tokens (long-running tool history) and a 600-token tool-call decision. Cost per agent step. |
Detalle de precios
Precio recomendado de openrouter · microsoft/phi-4-mini-instruct
Proveedor más barato: github-models · Unknown entrada + Unknown salida
Disponible en 5 proveedores
| Proveedor | ID de modelo del proveedor | Entrada / 1M | Salida / 1M | Contexto | Lanzado |
|---|---|---|---|---|---|
| OpenRouter openrouter | microsoft/phi-4-mini-instruct | $0.080 | $0.350 | 128K | 2025-10-17 |
| GitHub Models github-models | microsoft/phi-4-mini-instruct | Unknown | Unknown | 128K | 2024-12-11 |
| Nvidia nvidia | microsoft/phi-4-mini-instruct | Unknown | Unknown | 131K | 2024-12-01 |
| Weights & Biases wandb | microsoft/Phi-4-mini-instruct | $0.080 | $0.350 | 128K | 2024-12-11 |
| Kilo Gateway kilo | microsoft/phi-4-mini-instruct | $0.080 | $0.350 | 128K | 2025-10-17 |
Inconsistencias de datos entre proveedores
- context_window varies: 128000, 131072
- release_date varies (span 320d): 2024-12-01, 2024-12-11, 2025-10-17
Los proveedores reportan valores distintos para este modelo. Los datos clave de arriba usan un proveedor representativo; consulta la tabla para detalles por proveedor.
Frequently asked questions
How much does Phi 4 Mini Instruct cost?
Phi 4 Mini Instruct costs $0.080 per 1M input tokens and $0.350 per 1M output tokens, sourced from openrouter. Cache reads, audio tokens and >200K-context tiers (where applicable) are listed in the Pricing detail block above.
What is the context window of Phi 4 Mini Instruct?
Phi 4 Mini Instruct has a context window of 128K tokens, with a max output of 128K tokens per reply. This is the total combined size of prompt + completion.
Does Phi 4 Mini Instruct support tool calling?
No. Phi 4 Mini Instruct does not support tool calling (function calling). If your workflow requires it, look at the /capabilities/tool-calling list for alternatives.
Does Phi 4 Mini Instruct support structured output / JSON mode?
Yes. Phi 4 Mini Instruct supports structured output / JSON-schema-constrained decoding. This makes it suitable for production agent and automation workloads where the model has to invoke external functions reliably.
Can Phi 4 Mini Instruct accept image input?
No. Phi 4 Mini Instruct only accepts text as input. If you need image input, see our /capabilities/vision list for current vision-capable models.
Is Phi 4 Mini Instruct open-weight?
Yes. Phi 4 Mini Instruct's weights are publicly available, so you can self-host or fine-tune. Note that open weights ≠ open source — the training data and code are typically not released.
What are the best alternatives to Phi 4 Mini Instruct?
If Phi 4 Mini Instruct doesn't fit, consider Phi-4, WizardLM-2 8x22B, Phi-3.5-MoE-instruct. Each one targets the same use case — see the Related links below for direct head-to-head pages.
Where does this data come from?
All numbers are normalised into a single canonical model record and reconciled with each provider's official documentation. We re-pull daily and write any changes (price, context, capability) to the /changelog page.
Explore more
More Microsoft models
- Phi-4$0.06 in / $0.14 out
- WizardLM-2 8x22B$0.49 in / $0.49 out
- Phi-3.5-MoE-instruct$0.16 in / $0.64 out
- Phi-3-small-instruct (128k)$0.15 in / $0.60 out
- Phi-3.5-mini-instruct$0.13 in / $0.52 out
Capability lists this model is in
Última actualización:
Pricing and capabilities are refreshed daily and reconciled against each provider's official documentation. Always verify critical production decisions with the provider directly.