API pricing and cost
Phi-4-mini-instruct (3.8B) pricing
Phi 4 mini instruct (3.8B) official API pricing is $0.075 per million input tokens and $0.30 per million output tokens.
Covers the 2025-02-27 Phi-4-mini-instruct (3.8B) release.
$0.075
Official input / 1M
Standard tier
$0.30
Official output / 1M
Standard tier
$0.12
Blended / 1M
4:1 input/output
$12.00
Example monthly cost
10K requests, 8K input + 2K output/request
Token charges only; tool calls, taxes, and other non-token fees are excluded.
Official API pricing
USD / 1M text tokens · Standard · Effective from 2026-11-14 · Last verified 2026-11-14
- InputStandard text tier, per million tokens
- $0.075
- OutputStandard text tier, per million tokens
- $0.30
API providers (1)
Published USD text API rates across hosting providers for Phi-4-mini-instruct (3.8B). Compare listed rates, effective dates, and service-tier notes for the same model.
| Provider | Input / 1M | Cached / 1M | Output / 1M | Additional tiers & notes |
|---|---|---|---|---|
| MicrosoftOfficialEffective from 2026-11-14 | $0.075 | — | $0.30 | — |
What Phi-4-mini-instruct (3.8B) costs to run
Four workloads costed at official standard rates. Cached-input share is an estimation assumption, not a provider guarantee; when no cached rate is published, all input is billed at the uncached rate. Non-token fees are excluded.
| Workload | Per request | Monthly tokens | Input | Output | Per month |
|---|---|---|---|---|---|
| Chatbotshort turns | 1,500 in · 500 out× 100,000 requests | 150M in · 50M out | $11.25 | $15.00 | $26.25$0.000263 / request |
| Assistant8K context · 90% cached | 8,000 in · 2,000 out× 10,000 requests | 80M in · 20M out | $6.00 | $6.00 | $12.00$0.0012 / request |
| RAGlong input, cached · 50% cached | 24,000 in · 800 out× 20,000 requests | 480M in · 16M out | $36.00 | $4.80 | $40.80$0.00204 / request |
| Coding agentlong output · 70% cached | 15,000 in · 4,000 out× 20,000 requests | 300M in · 80M out | $22.50 | $24.00 | $46.50$0.002325 / request |
Monthly cost
$12.00
on Phi-4-mini-instruct (3.8B)
Per request
$0.0012
80M in · 20M out a month
Split
$6.00 + $6.00
input + output
The same workload costs $8.24 on Step 3.5 Flash, the cheapest of the comparable models below.
- Step 3.5 FlashStepFunAI · $0.082 / 1M blended$8.24
- Gemma 3 - 27B (IT)Google Deep Mind · $0.096 / 1M blended$9.60
- Phi-4-multimodal-instructMicrosoft · $0.128 / 1M blended$12.80
- Llama3.3-70B-InstructFacebook AI Research Lab · $0.144 / 1M blended$14.40
- Llama-3.2-3BFacebook AI Research Lab · $0.15 / 1M blended$15.00
- DeepSeek-V3DeepSeek-AI · $0.434 / 1M blended$43.40
Phi-4-mini-instruct (3.8B) against comparable models
Benchmark-overlap peers and price-comparable same-type models, costed on the assistant workload above. All figures use the same workload and caching rule; lower price does not imply equivalent capability or service terms.
| Model | Basis | Blended / 1M | Per month | vs Phi-4-mini-instruct (3.8B) |
|---|---|---|---|---|
| Step 3.5 FlashStepFunAI | Lower-cost option | $0.082 | $8.24 | 31%cheaper |
| Gemma 3 - 27B (IT)Google Deep Mind | Shared benchmark coverage | $0.096 | $9.60 | 20%cheaper |
| Phi-4-mini-instruct (3.8B)Microsoft · this model | This model | $0.12 | $12.00 | — |
| Phi-4-multimodal-instructMicrosoft | Similar price | $0.128 | $12.80 | 6.7%dearer |
| Llama3.3-70B-InstructFacebook AI Research Lab | Similar price | $0.144 | $14.40 | 20%dearer |
| Llama-3.2-3BFacebook AI Research Lab | Shared benchmark coverage | $0.15 | $15.00 | 25%dearer |
| DeepSeek-V3DeepSeek-AI | Shared benchmark coverage | $0.434 | $43.40 | 262%dearer · 3.6× |
Catalog price position: #37 cheapest of 252 active priced models in the LLMLearner catalog (cheaper than 85% at the 4:1 mix; official headline rates).
Phi-4-mini-instruct (3.8B) pricing questions
- How much does Phi-4-mini-instruct (3.8B) cost per million tokens?
- Phi 4 mini instruct (3.8B) official API pricing is $0.075 per million input tokens and $0.30 per million output tokens. At the default 4:1 input-to-output mix, that is $0.12 per million blended tokens.
- What does Phi-4-mini-instruct (3.8B) cost per month, and what is included?
- On the example Assistant workload (10,000 requests/month, 8,000 input and 2,000 output tokens/request), Phi-4-mini-instruct (3.8B) costs about $12.00/month ($0.0012/request). This includes token charges at the official rate only; tool calls, off-peak or batch tiers, and taxes are excluded.
- Is there a cheaper alternative to Phi-4-mini-instruct (3.8B)?
- Among the comparable models shown on this page, Step 3.5 Flash is cheaper at $0.082 per million blended tokens vs $0.12 for Phi-4-mini-instruct (3.8B). Compare benchmarks before switching, as a lower rate does not guarantee equivalent quality or service terms. Across all 252 active priced models in the LLMLearner catalog, Phi-4-mini-instruct (3.8B) ranks 37th cheapest (cheaper than 85% at the default 4:1 mix).
- Does Phi-4-mini-instruct (3.8B) charge for cached input?
- Microsoft publishes no cached-input rate for Phi-4-mini-instruct (3.8B) here, so every input token is estimated at the full $0.075 per million.