Context16.4K tokens
Price (In / Out)$0.07/M / $0.14/M
CategoryLarge Language Model
Max Output16.4K tokens
About Phi 4
Phi 4 is a large language model from Microsoft. Supports up to 16,384 token context window. Available from $0.07/M input tokens.
Capabilities
textcode
Input Modalities
text
Output Modalities
text
Technical Details
- API Identifier
- microsoft/phi-4
- Category
- Large Language Model
- Context Window
- 16,384 tokens
- Max Output Tokens
- 16,384 tokens
Tags
budget-friendly
Pricing
Token pricing for Phi 4 API usage.
Input Tokens
$0.07/M
per million tokens
Output Tokens
$0.14/M
per million tokens
Pricing Calculator
Input cost$0.07
Output cost$0.07
Estimated monthly cost$0.14
Competing Models
Same pricing tier — direct alternatives to Phi 4
$0.13/M / $0.40/MCompare
$0.07/M / $0.28/MCompare
$0.03/M / $0.12/MCompare
$0.20/M / $0.60/MCompare
$0.10/M / $0.30/MCompare
$0.15/M / $0.60/MCompare
$0.02/M / $0.11/MCompare
$0.14/M / $0.57/MCompare
$0.10/M / $0.30/MCompare
$0.07/M / $0.28/MCompare
$0.04/M / $0.15/MCompare
$0.10/M / $0.20/MCompare
$0.15/M / $0.50/MCompare
$0.04/M / $0.15/MCompare
$0.30/M / $0.30/MCompare
$0.09/M / $0.29/MCompare
$0.48/M / $0.03/MCompare
$0.05/M / $0.20/MCompare
$0.04/M / $0.14/MCompare
Free / FreeCompare
AI Models by Microsoft
Large language models from the same organization.
| Model | Context Window | Price (In / Out per M) |
|---|---|---|
| WizardLM-2 8x22BCurrent | 66K | $0.62 / $0.62 |
MCP Servers by Microsoft
Connect this tool to AI assistants via the Model Context Protocol.
Related News
Latest coverage and updates.
Anthropic's 80x Growth Sends It Scrambling for SpaceX Compute as Musk Becomes AI Landlord
May 8, 2026
Brockman Defends $30B Stake as Musk v. Altman Trial Enters Week 2
May 5, 2026
OpenAI Missed Revenue and User Targets as Competition Gains Ground
May 4, 2026
Amazon's Best Quarter in Years Was Half-Built on a $16.8B Anthropic Paper Gain
May 4, 2026
How to Run Local AI Coding Agents Without Rate Limits or Bills
May 3, 2026
OpenAI Adds AI-Generated Pets to Codex App
May 3, 2026