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.

Published USD API provider rates for Phi-4-mini-instruct (3.8B)
ProviderInput / 1MCached / 1MOutput / 1MAdditional tiers & notes
Microsoft⁠OfficialEffective 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.

Estimated monthly cost of four workloads on Phi-4-mini-instruct (3.8B)
WorkloadPer requestMonthly tokensInputOutputPer month
Chatbotshort turns1,500 in · 500 out× 100,000 requests150M in · 50M out$11.25$15.00$26.25$0.000263 / request
Assistant8K context · 90% cached8,000 in · 2,000 out× 10,000 requests80M in · 20M out$6.00$6.00$12.00$0.0012 / request
RAGlong input, cached · 50% cached24,000 in · 800 out× 20,000 requests480M in · 16M out$36.00$4.80$40.80$0.00204 / request
Coding agentlong output · 70% cached15,000 in · 4,000 out× 20,000 requests300M in · 80M out$22.50$24.00$46.50$0.002325 / request
Start from

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

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.

Blended price and monthly cost of Phi-4-mini-instruct (3.8B) and comparable models
ModelBasisBlended / 1MPer monthvs Phi-4-mini-instruct (3.8B)
Step 3.5 FlashStepFunAILower-cost option$0.082$8.2431%cheaper
Gemma 3 - 27B (IT)Google Deep MindShared benchmark coverage$0.096$9.6020%cheaper
Phi-4-mini-instruct (3.8B)Microsoft · this modelThis model$0.12$12.00—
Phi-4-multimodal-instructMicrosoftSimilar price$0.128$12.806.7%dearer
Llama3.3-70B-InstructFacebook AI Research LabSimilar price$0.144$14.4020%dearer
Llama-3.2-3BFacebook AI Research LabShared benchmark coverage$0.15$15.0025%dearer
DeepSeek-V3DeepSeek-AIShared benchmark coverage$0.434$43.40262%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.