Microsoft: Phi 4✓ Catalog verified
Microsoft Research 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 parameters, it was trained on a mix of high-quality synthetic datasets, data from curated websites, and academic materials. It has undergone careful improvement to follow instructions accurately and maintain strong safety standards. It works best with English language inputs. For more information, please see Phi-4 Technical Report
Overview
Microsoft Research 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 parameters, it was trained on a mix of high-quality synthetic datasets, data from curated websites, and academic materials. It has undergone careful improvement to follow instructions accurately and maintain strong safety standards. It works best with English language inputs. For more information, please see Phi-4 Technical Report
Access: available through the official Microsoft API. Context window: 16K.
Specifications
| API identifier | microsoft/phi-4 |
| Provider | Microsoft |
| Model type | Text LLM |
| Context window | 16K catalog |
| Input modalities | text |
| Output modalities | text |
| Released | Jan 10, 2025 |
| Moderated | No |
| Architecture modality | text->text |
Pricing
Live pricing components for microsoft/phi-4 as published in the catalog.
| Pricing component | Raw unit price | Normalized | Unit |
|---|---|---|---|
| Prompt tokens | $6.5e-8 | $0.07 / 1M | Per input token |
| Completion tokens | $1.4e-7 | $0.14 / 1M | Per output token |
| Request fee | N/A | N/A | Per request |
| Image fee | N/A | N/A | Per image unit |
| Web search fee | N/A | N/A | Per search request |
Cost calculator
Estimate monthly spend from your own token volumes.
Estimated Total Cost
$0.06Calculated from current list pricing in the ModelsAtlas catalog.Capabilities
| Capability | Status | What it means |
|---|---|---|
| Visual Understanding | Not advertised | Image and document analysis support |
| Audio Processing | Not advertised | Speech and voice aligned flows |
| Tool Calling | Not advertised | Supports tools / function calling |
| Self-Hosting | Not advertised | Deploy outside managed APIs |
Capability signals
Directional signals derived from model metadata and capability tags — not official benchmark submissions.
Quick start
Call Microsoft: Phi 4 through an OpenAI-compatible client.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="microsoft/phi-4",
messages=[{"role": "user", "content": "Explain quantum physics."}]
)
print(response.choices[0].message.content)Alternatives
Closest models by context window from a different provider.
| Model | Provider | Context | Input /1M | Actions |
|---|---|---|---|---|
| Magnum v4 72B | Anthracite Org | 16K | $3.00 | View → |
| meta-llama/Llama-3.1-8B-Instruct | Meta | 16K | $0.02 | View → |
Sources & attribution
Pricing and metadata are maintained in the ModelsAtlas catalog.
Frequently asked questions
How much does Microsoft: Phi 4 cost?
$0.07 per 1M input tokens and $0.14 per 1M output tokens on the official Microsoft API.
What is the context window of Microsoft: Phi 4?
Microsoft: Phi 4 supports up to 16K tokens of context.
Does Microsoft: Phi 4 support tool / function calling?
Microsoft: Phi 4 does not advertise first-class tool/function calling. Check vendor docs for the latest capabilities.
How do I access Microsoft: Phi 4?
Use the official Microsoft API with the model id `microsoft/phi-4`. See the Quick start section above for code examples.