Phi-3 pricing plans
★★★★ 4.1 CE

Phi-3 Pricing: Plans & API Token Cost Calculator 2026

Free to self-host under MIT, or roughly half a cent per thousand output tokens on Azure. Every cost here is hardware or a per-token rate, never a subscription.

Phi-3 interface screenshot

Phi-3 plans and pricing

High· Verified July 8, 2026
Custom

Phi-3-mini-4k-instruct

Custom
Input: $0.00013 per 1,000 tokens
Output: $0.00052 per 1,000 tokens
Context length: 4K tokens
Pay-As-You-Go offering via Serverless APIs
Contact sales
Custom

Phi-3-mini-128k-instruct

Custom
Input: $0.00013 per 1,000 tokens
Output: $0.00052 per 1,000 tokens
Context length: 128K tokens
Pay-As-You-Go offering via Serverless APIs
Contact sales
Custom

Phi-3.5-mini-instruct

Custom
Input: $0.00013 per 1,000 tokens
Output: $0.00052 per 1,000 tokens
Context length: 128K tokens
Pay-As-You-Go offering via Serverless APIs
Contact sales
Custom

Phi-3-small-8k-instruct

Custom
Input: $0.00015 per 1,000 tokens
Output: $0.0006 per 1,000 tokens
Context length: 8K tokens
Pay-As-You-Go offering via Serverless APIs
Contact sales
Custom

Phi-3-small-128k-instruct

Custom
Input: $0.00015 per 1,000 tokens
Output: $0.0006 per 1,000 tokens
Context length: 128K tokens
Pay-As-You-Go offering via Serverless APIs
Contact sales
Custom

Phi-3-medium-4k-instruct

Custom
Input: $0.00017 per 1,000 tokens
Output: $0.00068 per 1,000 tokens
Context length: 4K tokens
Pay-As-You-Go offering via Serverless APIs
Contact sales
Custom

Phi-3-medium-128k-instruct

Custom
Input: $0.00017 per 1,000 tokens
Output: $0.00068 per 1,000 tokens
Context length: 128K tokens
Pay-As-You-Go offering via Serverless APIs
Contact sales

Phi-3 pricing: the quick answer

Quick answerHigh· Verified July 8, 2026

Phi-3 Medium is a free open-source model, and hosted API access through Azure costs $0.14 per 1M input tokens and $0.56 per 1M output tokens as of July 8, 2026. The weights carry an MIT license, so downloading and self-hosting costs nothing beyond your own hardware. There is no subscription; the Azure serverless rate is pure pay-as-you-go across a context window up to 128k tokens. The output rate runs four times input, and both are low enough that a small on-device model like this is usually cheaper to run than any flat-rate chat plan, whether you host it yourself or route through Azure.

  • Phi-3-mini-4k-instructCustom
  • Phi-3-mini-128k-instructCustom
  • Phi-3.5-mini-instructCustom
  • Phi-3-small-8k-instructCustom
  • Phi-3-small-128k-instructCustom
  • Phi-3-medium-4k-instructCustom
  • Phi-3-medium-128k-instructCustom
Run your token volumes through the cost calculator to estimate the actual monthly API bill.
Free tier
Yes
Billing model
Usage-Based
Annual discount
Not offered

Phi-3 is free to start, against a $7.50/mo median across 12 large language models tools we track.


API Token Pricing

Phi-3 Medium (Azure)$0.14$0.56

Open-source. Free to self-host, API pricing via Azure.

Phi-3 cost calculator

Phi-3 Hidden Costs & Pitfalls

What sits on top of the plan fee

The model is free to download, so every cost here is infrastructure or a managed-hosting rate. What you pay depends on whether you run it locally or hand the hosting to Azure.

Self-hosting trades the API rate for hardware
Under the MIT license you can run Phi-3 Medium on your own machine at zero software cost, but you supply the compute. The model is small enough to run on a capable laptop or a single GPU, which is the point of the family, yet a local deployment may still push you into a hardware upgrade if your current machine cannot hold it. There is no per-token fee when you self-host, only the one-time cost of hardware that can run it.
your hardware, no license fee
Azure serverless bills per token with no floor
Routing through Azure instead of self-hosting costs $0.14 per 1M input tokens and $0.56 per 1M output. A workload processing 50M input and 10M output tokens a month runs about $7 in and $5.60 out, or roughly $13 total, with no monthly minimum. That pay-as-you-go structure means light usage stays near free, but unmonitored high-volume traffic can climb quietly since nothing caps it.
$0.14/1M in, $0.56/1M out
Fine-tuning and custom deployments are separate Azure charges
The serverless token rate covers inference on the base model. Fine-tuning Phi-3 or hosting a customized deployment on Azure incurs its own cloud compute charges on top, billed as infrastructure rather than per token. If your plan involves adapting the model to your data, budget that compute separately, because the low inference rate does not cover the training run.
separate Azure compute
The renewal jump, credit expiry and every discount worth having are in the Phi-3 true cost guide, with an email generator for negotiating team and enterprise rates.
Phi-3 Cost Analysis

Phi-3 pricing, read against its live plans and category

Positioning

Phi-3 Medium is free to download under an MIT license, and the only recurring cost is inference. On Azure's serverless API it runs $0.14 per 1M input tokens and $0.56 per 1M output, one of the cheapest hosted rates in the category. The family is built to run efficiently on small hardware, so self-hosting is genuinely viable, and the 128k context window comes without a flat-rate subscription. For developers who want a capable small model without monthly fees, the economics are hard to beat.

Cost drivers

  • 1The token rate is only the inference bill. Fine-tuning or hosting a custom deployment on Azure adds separate cloud compute charges. Self-hosting locally is free of per-token fees but may require a hardware upgrade if your machine cannot hold the model. And because the Azure rate has no monthly floor, high-volume usage can accumulate faster than expected if nobody is watching the token count.

Watch-outs

Complaints center on tooling rather than billing, with some open-source runtimes slow to support the architecture.

Strengths

What makes it worth running:

  • Runs efficiently on-device for offline AI on phones and modest hardware
  • A 128k context window on a small, cheap-to-serve model
  • MIT license with no per-token fee when you self-host

Editor’s take

Phi-3 Medium suits developers who want an efficient small model they can self-host for free or run on Azure for well under a cent per thousand tokens. If you need stronger reasoning on complex tasks than a small-parameter model delivers, step up to a larger open model or a managed frontier API instead.

Oleh KemOleh KemFounder & Lead Analyst
ComparEdge EditorialUpdated: July 8, 2026

Phi-3 price history


Price & Data Intelligence SyncLast verified: July 8, 2026 · CE-LLM-2026W21-BE15E0 · ✓ Pricing updated
Up to date

Cheaper Large Language Models tools


Frequently asked questions


Sources & verification

Verified by ComparEdgeMethod: Vendor docs, official pages, and selected independent sources
SourceWhat was checkedLast checked
Official Pricing PageSource of verified tiersJuly 8, 2026
Official WebsiteOfficial vendor website
G2G2 verified user reviews · 4/5
CapterraCapterra verified user reviews · 4/5

Every fact on this Phi-3 pricing page is tied to a named source and a verification date. Freshness-sensitive figures trace to the sources above; verify against the vendor before relying on them.

Explore Phi-3

Every page on Phi-3 in one place, you are on pricing.