ai.canshu.com
中文
VRAM Calculator Advisor & TCO API Pricing Compare Models Leaderboard GPUs

Search models, GPUs, and tools

↑↓ Navigate · Enter Open · ★ Watchlist prioritized ai.canshu.com
Microsoft
Open-Weight Microsoft · phi-4 · Text

Phi 4 Official Specifications, Pricing & Benchmarks

Phi 4 (phi-4) by Microsoft, released 2025-01-10, featuring 16,384 context window, 14,745 max output tokens, and Text input.

📋 Phi 4 Official API & System Card Specifications

Verified against official Microsoft developer documentation & pricing

API Model ID: phi-4

1. Identity & Capabilities

API Spec
API Model ID
phi-4
Release Date
2025-01-10
Weight License
Open-Weight (API Spec)
Native Reasoning
—
Function Calling & JSON Schema
部分支持
Batch API 异步批处理
✅ Supported (50% off)

2. Context, Output & Modalities

Limits
Max Context Window
16,000 tokens (16K)
Max Output Tokens
14,745 tokens
Input Modalities
Text
Output Modalities
Text
Direct China Access
🌐 Global / OpenRouter
Deployment Mode
Open-Weight + Cloud API

3. Official Pricing & Cache

USD / 1M
Input / 1M Tokens
$ 0.07
Cached Input / 1M
$ 0.014 -80%
Output / 1M Tokens
$ 0.14

🎛️ Official Sampling & Reasoning Parameters

Recommended generation settings & API parameter constraints

Standard Generation Config
temperature=0.7 top_p=0.95 max_tokens=14,745

📊 Phi 4 Full Benchmark Scorecard

13 public benchmarks · ranks among 154 models · synced 2026-11-20

⚔️ Compare head-to-head

📐 Math 7 items

MMLU #7/11 84.8%

Massive Multitask Language Understanding benchmark testing knowledge across 57 diverse subjects including STEM, humanities, social sciences, and professional domains.

MGSM #6/7 80.6%

MGSM (Multilingual Grade School Math) is a benchmark of grade-school math problems. Contains 250 grade-school math problems manually translated from the GSM8K dataset into ten typologically diverse languages: Spanish, French, German, Russian, Chinese, Japanese, Thai, Swahili…

MATH #3/9 80.4%

MATH dataset contains 12,500 challenging competition mathematics problems from AMC 10, AMC 12, AIME, and other mathematics competitions.

DROP #3/4 75.5%

DROP (Discrete Reasoning Over Paragraphs) is a reading comprehension benchmark requiring discrete reasoning over paragraph content.

MMLU-Pro #32/39 70.4%

A more robust and challenging multi-task language understanding benchmark that extends MMLU by expanding multiple-choice options from 4 to 10, eliminating trivial questions, and focusing on reasoning-intensive tasks.

PhiBench #1/1 56.2%

PhiBench is an internal benchmark designed to evaluate diverse skills and reasoning abilities of language models, covering a wide range of tasks including coding (debugging, extending incomplete code, explaining code snippets) and mathematics (identifying proof errors…

LiveBench #25/27 47.6%

LiveBench is a challenging, contamination-limited LLM benchmark that addresses test set contamination by releasing new questions monthly based on recently-released datasets, arXiv papers, news articles, and IMDb movie synopses.

Source: ZeroEval / llm-stats.com (✓ = third-party verified, others vendor-reported).

Closest Self-Hostable Open-Weight Alternatives to Phi 4

Open-weight models with full HuggingFace weights for private GPU / Mac deployment

Compare with these →

Frequently Asked Questions

Is Phi 4 open-source or proprietary?

Phi 4 (phi-4) is a proprietary commercial model by Microsoft. Weights and internal layer dimensions are undisclosed; it is accessed via cloud API.

What are the context limit and API pricing of Phi 4?

Phi 4 supports 16K input context and 14,745 max output tokens, priced at $0.07/1M input ($0.014/1M cached) and $0.14/1M output.