MicrosoftReasoningReleased 10 January 2025

Phi 4 pricing, context and benchmark

[Microsoft Research](/microsoft) Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed.

16K
Input context
15K
Output context
$0.07
Official input
$0.14
Official output
n/a
AA index

Everything that matters, in one table

Context, pricing, cache, modalities and tooling, from the model registry and Artificial Analysis.

ModelPhi 4
Model IDmicrosoft/phi-4
ProviderMicrosoft
Release date10 January 2025
StatusGenerally available
Input context16,384 tokens
Output context14,745 tokens
Official input pricing$0.07 per 1M tokens
Official output pricing$0.14 per 1M tokens
Cache read pricingNot published
Market input pricing$0.056 per 1M (cheapest route)
Market output pricing$0.112 per 1M (cheapest route)
Input modalitiestext
Output modalitiestext
Reasoning controlNot exposed
Tool supportText generation only
TokenizerOther
Provider routes2 endpoints
Artificial Analysis indexNot published
SpeedNot published
Knowledge cutoffNot publicly stated

Input and output support

ModalityInputOutputBilled at
Text✓ yes✓ yes$0.07 in
Imagenononot supported
Audionononot supported
Videonononot supported
File (PDF)nononot supported

What is Phi 4?

[Microsoft Research](/microsoft) Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed.

At 14 billion...

Phi 4 carries a 16K token window, uses the Other tokenizer and is served by Microsoft. On Hoodgen it sits in the Reasoning tier of the model menu next to its siblings, so you can switch mid conversation without losing the thread.

Release and what changed from the previous version

Released10 January 2025

This is the only release of Phi 4 on OpenRouter, released 10 January 2025. The provider has not published a knowledge cutoff, so treat training data as recent but unconfirmed for very new events.

Features and capabilities

{ }
Structured outputs
Schema constrained JSON with response_format, so no parse and retry loop in your code.
⌁
Seeds
A seed can be pinned so the same prompt is reproducible across test runs.

What can you do with Phi 4?

Debugging and root cause
Multi file failures where the model has to hold a causal chain before answering.
Architecture and planning
Design docs, migration plans and trade off analysis over long context.
Data analysis
Spreadsheets and logs read in one pass, then summarised with the numbers quoted back.
Agentic coding
Repo wide changes that need plan, edit and verify loops.

Phi 4 pricing

Official pricing

List price
$0.07 / 1M in
$0.14 / 1M out
  • 16K context
  • text input
Cheapest route
$0.056 / 1M in
$0.112 / 1M out
  • 2 routes on OpenRouter
  • What Hoodgen routes to first
  • Same model, lower bill

Market pricing, every route

ProviderTierInputOutputCache readUptime 24h
DeepInfrastandard$0.056$0.112n/an/a
DeepInfrastandard$0.07$0.14n/a100.0%

API pricing and cost calculator

RatePer callTotalCredits
Cheapest route$0.0013$0.64612
List price$0.0016$0.81765

API and developer information

Model IDmicrosoft/phi-4
Endpointhttps://openrouter.ai/api/v1/chat/completions
Parametersfrequency_penalty · logit_bias · max_tokens · min_p · presence_penalty · repetition_penalty · response_format · seed · stop · structured_outputs · temperature · top_k · top_p
StreamingYes, server sent events
Modality stringtext->text
Max prompt tokens16,384
Max completion tokens14,745
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "microsoft/phi-4",
    "messages": [{ "role": "user", "content": "Summarise this document." }],
    "max_tokens": 1024
  }'

Model limitations

Text only outputIt cannot generate images, audio or video. Pair it with an image model on Hoodgen when you need visuals.
Output cap14,745 tokens per request. Long deliverables have to be chunked.
Benchmarks not publishedArtificial Analysis does not publish an Intelligence Index for this release, so no benchmark score is claimed here.
Knowledge cutoffThe provider does not state a fixed cutoff for every release. Verify very recent events against search.

Phi 4 vs other Microsoft models

ModelContextInput /1MOutput /1MAA indexReleased
Phi 416K$0.07$0.14n/a2025

Privacy and data policy

  • On Hoodgen, prompts and attachments answer that request and stay in your conversation history so you can reopen it. They are not used to train models.
  • Requests route through OpenRouter to Microsoft and are covered by that provider's API terms.
  • Do not paste secrets or personal data you would not send to any hosted model.

Phi 4 questions, answered

Phi 4 is a reasoning model from Microsoft, released 10 January 2025. [Microsoft Research](/microsoft) Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed.
✦

Start chatting with Phi 4

Free to try on Hoodgen AI, with a live credit estimate before every send. No API key, no setup.