Phi-4

Open weights16k context

Phi-4 is an open-weights model from Microsoft with a 16k-token context window. 2 providers list it; as of 25 Oct 2026, the cheapest listing (DeepInfra) charges $0.07 per million input tokens and $0.14 per million output tokens.

$0.07
Lowest input, per 1M
$0.14
Lowest output, per 1M
2
Providers listed
170th
GPQA Diamond rank
of 221 models with a score

Providers serving Phi-4

DeepInfra charges $0.07 in · $0.14 out; Microsoft Azure charges $0.12 in · $0.50 out. Cheapest first, by the blended rate of three input tokens to one output token. Prices in US dollars per million tokens, checked 25 Oct 2026; the source link opens where the price is published.

Providers serving Phi-4, cheapest first by blended rate
ProviderInputOutputContextCapabilitiesModel IDSource
DeepInfra$0.07$0.1416.4kToolsphi-4
Microsoft Azure$0.12$0.50128kNo tools · Not OpenAI-compatiblephi-4

How each provider handles your prompts

For each provider's paid API, from its own pages, checked 26 Oct 2026. Where a promise lives matters: a signed agreement binds the provider, while a docs page can change without notice. Not legal advice.

How each provider serving Phi-4 handles your prompts
ProviderTrains on your promptsKeeps promptsZero retentionData processing agreement
DeepInfra

Google and Anthropic models served via DeepInfra follow those companies' own training and logging terms, not DeepInfra's zero-retention promise.

Google and Anthropic models served via DeepInfra follow those companies' own training and logging terms, not DeepInfra's zero-retention promise.MoreLess
No
Not kept past the request (held in memory only); batch jobs and image outputs kept briefly per feature docs
Yes, by default
Public
Microsoft Azure
Approved 'modified abuse monitoring' turns off the storage and human review; stateful features (Responses API, stored completions, Assistants threads) keep history as you configure them.MoreLess
No
Prompts and outputs flagged by abuse monitoring may be stored for human review; no retention period stated
Enterprise plans only
Public

Published scores only, each linked to its source. Ticks are every other model's best published score.

Show as table
Benchmark scores for Phi-4
BenchmarkScore
GPQA Diamond
PhD-level scientific reasoning, pass@1, no tools
57.5%, source: Artificial Analysis
Humanity's Last Exam (text-only)
Reasoning & knowledge, no tools
3.8%, source: Artificial Analysis
τ²-Bench Telecom
Agentic tool use (telecom), with a Qwen3 model as the simulated user
0%, source: Artificial Analysis
LiveCodeBench
Competitive programming, Artificial Analysis's problem set (dates not published)
23.1%, source: Artificial Analysis
IFBench
Instruction following, 294 prompts, 5 runs each
23.5%, source: Artificial Analysis
Terminal-Bench Hard
Agentic coding & terminal use, Artificial Analysis's 44-task hard subset
3.8%, source: Artificial Analysis
LCR
Long-context reasoning, AA-LCR v1.1
0%, source: Artificial Analysis
Omni Accuracy
Omniscience knowledge accuracy
14.1%, source: Artificial Analysis
Non-Hallucination
1 − hallucination rate
18.8%, source: Artificial Analysis

More from Microsoft

QAI lists these prices; it does not serve or resell these models. Prices are each provider's standard on-demand list price in US dollars per million tokens (default region, standard tier, peak hours, base context tier), checked on the date shown against the provider's own published prices or, where it has no public price page, its listing on OpenRouter. Most benchmark scores come from Artificial Analysis; Epoch AI (GPQA Diamond), MathArena (AIME 2026) and the APEX-Agents and CritPt leaderboards add the rest, and where none of them has a model, or none ran it at full capability, a figure its maker published may stand in (marked v); in some benchmarks it was run the maker's own way, which its note names. Each benchmark follows one test setup, the one used by the source that covers the most models, and leaves results from other setups out. Each score is the best its source published across the model's settings, names any non-default setting, and links to its source.

An AIME 2026 score noted “released after the exam” comes from a model released after the exam, so the problems may have been in its training data. GDPval-AA is a rating against other models (Elo), not a percentage. Data as of 26 Oct 2026.

Sources and licences