Microsoft, released Jan 10, 2025
Phi 4
Phi 4 is Microsoft's compact open-weights model, sitting on the small end of their lineup at 14 billion parameters (it came out January 10, 2025). It's built for complex reasoning tasks where you still want quick replies and a very cheap API bill, instead of throwing a heavyweight model at every prompt. Small footprint, reasoning first.
Already paying for ChatGPT or Claude?
Phi 4 costs $0.14 per 1M output tokens. Use GPT-6 and Claude through your plan instead, $0 per token.
Updated
Phi 4 pricing and specs
- Input
- $0.07per 1M tokens
- Output
- $0.14per 1M tokens
- Context window
- 16K16,384 tokens
- Max output
- 15K14,745 tokens
- Released
- Jan 10, 2025
- Knowledge cutoff
- Jun 2024
- Retires
- Dec 31, 2026
- Accepts
- Text
- Features
- Structured outputsOpen weights
What Phi 4 is good at
- Reasoning-heavy prompts on a tight budget. It's very cheap to call and responds quickly, so it makes sense when you're running a lot of complex text tasks and don't want a big bill.
- Structured JSON pipelines - it supports structured JSON output directly.
- Tasks that need long replies from short prompts. Its max output is nearly as big as the entire context window, so you can send a short prompt and still get a lot of text back.
- Prototyping something you might self-host later. The weights are open and it's built to run with limited memory, so you aren't stuck on an API if you decide to move it onto your own machines.
Good to know
- The context window is tight. Don't pick Phi 4 if you want to dump long documents or big chat histories into every request.
- Text only. It doesn't accept images or other media, so look elsewhere if your app needs anything beyond text.
- Its knowledge cuts off in June 2024. So anything newer has to go into the prompt, and with a small context window you won't have much room left over.
Phi 4 vs similar models
| Model | Input | Output | Plan2API | Context |
|---|---|---|---|---|
| Phi 4 | $0.07 | $0.14 | Not available | 16K |
| gpt-oss-120b | $0.03 | $0.187 | $0 on Gemini | 131K |
| Nova Micro 1.0 | $0.035 | $0.14 | Not available | 128K |
| Schematron V2 Turbo | $0.03 | $0.15 | Not available | 128K |
| Granite 4.2 8B | $0.06 | $0.15 | Not available | 131K |
| Ministral 3 8B 2512 | $0.15 | $0.15 | Not available | 262K |
Phi 4 cost per month
| Workload | API price |
|---|---|
| Side project2M in, 500K out | $0.21 |
| Production app25M in, 5M out | $2.45 |
| Agents at scale250M in, 50M out | $24.50 |
FAQ
How much does the Phi 4 API cost?
Phi 4 costs $0.07 per 1M input tokens and $0.14 per 1M output tokens.
What is the Phi 4 context window?
Phi 4 takes 16,384 tokens of context, with up to 14,745 output tokens per request.
When was Phi 4 released?
Microsoft released Phi 4 on Jan 10, 2025.
Can I use Phi 4 with my subscription?
Plan2API turns Claude, ChatGPT, Gemini and Kimi subscriptions into one OpenAI-compatible API. GPT-6 and Claude models run through your ChatGPT or Claude plan at $0 per token instead.
Can I self-host Phi 4 instead of using an API?
Yes. Microsoft released it with open weights under microsoft/phi-4, and it's built to run well in limited memory, so hosting it yourself is a real option if you'd rather not stay on an API.
Does Phi 4 support structured JSON?
It does. It supports structured JSON output, so you can plug it into workflows where you need a predictable format back instead of freeform text.
Already paying for ChatGPT or Claude? Use GPT-6 and Claude through your plan, $0 per token.
- Free: 1 subscription, no daily cap, no card
- Pro: $12 a month