MicrosoftPaidOperational

Phi 4

API model name: phi-4

Phi 4 is Microsoft's chat model, served on the Api.Airforce unified API. It is priced at $0.08 per million input tokens and $0.16 per million output tokens. That is below the provider's $0.07 official input rate. Access it through the OpenAI-compatible API with one key, alongside 100+ other models on Api.Airforce.

Pricing

Input / 1M tokens
$0.08
Output / 1M tokens
$0.16
Cache read / 1M tokens
$0.01
Official input rate
$0.07
Official output rate
$0.14

Api.Airforce price vs. the provider's official rate.

Specifications

Provider
Microsoft
Type
chat model

Benchmarks

Independent evaluations and measured speed from Artificial Analysis.

MMLU-Pro71%
GPQA Diamond57%
Humanity's Last Exam4%
LiveCodeBench23%
AIME 202518%
MATH-50081%
Output speed43.2 tok/s
Time to first token0.91 s

Phi-4

Source: Benchmark data by Artificial Analysis (artificialanalysis.ai)

What is Phi 4 used for?

  • Chatbots & assistants — conversational AI, drafting, summarizing and Q&A.

Phi 4 vs. similar models

ModelIntelligenceContextInput / 1MOutput / 1M
Phi 4——$0.08$0.16
GPT-5.2 Chat Latest—400K$1.84$14.70
GPT-5.2 Codex——$1.84$14.70
GPT-5.2 Pro——$22.05$176.40

Prices are Api.Airforce pay-as-you-go rates per 1M tokens. Context is the maximum input length.

Related models

Phi 4 — frequently asked questions

How much does Phi 4 cost?
Phi 4 is billed pay-as-you-go at $0.08 per 1M input tokens and $0.16 per 1M output tokens. There is no subscription — you only pay for what you use.
What can Phi 4 do?
Phi 4 is Microsoft's chat model, accessible through the Api.Airforce API.
Is Phi 4 free to use?
Phi 4 is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
How do I use Phi 4 via the API?
Phi 4 is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID phi-4 with your Api.Airforce API key.
Who makes Phi 4?
Phi 4 is Microsoft's chat model, served through the unified Api.Airforce gateway alongside 100+ other models.