Phi 4 Reasoning

Microsoft chatreasoning Free

API ID: microsoft/phi-4-reasoning-04-30

Input Price
Free
/1M tokens
Output Price
Free
/1M tokens

About Phi 4 Reasoning

Phi-4 is Microsoft's latest small language model, pushing the boundaries of what's achievable with efficient architectures. Building on the Phi series' success, Phi-4 introduces significant improvements in reasoning, coding, and general capability while maintaining a practical parameter count. The model demonstrates state-of-the-art performance for its size class, often matching or exceeding much larger models on key benchmarks. Phi-4 features an extended context window and excels at mathematical reasoning, code generation, and complex analysis. Its efficient design enables deployment on consumer hardware and cost-effective cloud instances. The model represents Microsoft's continued research into efficient AI, showing that careful training can substitute for raw scale. For developers seeking cutting-edge capability with minimal resources, Phi-4 offers the latest advances in efficient model design. It's particularly valuable for local deployment, edge computing, and applications requiring strong capability without massive compute.

๐Ÿ†
Price Ranking
#1 lowest price among 950 Chat models โ€” Top 20% cheapest!

Model Specifications

Context Length
33k
Max Output
โ€”
Release Date
2025-05-01
Capabilities
chat reasoning
Input Modalities
text
Output Modalities
text

Best For

  • Complex reasoning, math problems, multi-step logic
  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)
  • Simple Q&A (cheaper models available)
๐ŸŽ‰

This model is completely free!

No token costs - use it without worrying about API bills.

Estimate Token Usage

Microsoft Model Lineup

Compare all models from Microsoft to find the best fit

Model Input Output Context Capabilities
Phi 4 Reasoning Current Free Free 33k chat reasoning
Phi-3 Medium 4K Instruct Free Free 4k chat
Phi-3 Medium 4K Instruct Free Free 4k chat
WizardLM-2 7B Free Free 32k chat
WizardLM-2 7B Free Free 32k chat
Phi 4 Multimodal Instruct Free Free 131k chat vision

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Google Gemma 3n 4B
Input: Free
Output: Free
Context: 33k
Meta Llama 3.2 3B Instruct
Input: Free
Output: Free
Context: 80k
Alibaba Qwen Qwen2.5-VL 7B Instruct
Input: Free
Output: Free
Context: 33k
ByteDance Seedream 4.5
Input: Free
Output: Free
Context: 4k

๐Ÿš€ Quick Start

Get started with Phi 4 Reasoning API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="microsoft/phi-4-reasoning-04-30",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)