Back to Models
microsoft logoMicrosoft
microsoft/phi-4
Not Available

Phi 4

[Microsoft Research](/microsoft) 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](https://arxiv.org/pdf/2412.08905)

1/10/2025
16,384 tokens
#238 Text (Japanese)

Specifications

Modalities

Input
text
Output
text

Supported Parameters

frequency_penalty
max_tokens
min_p
presence_penalty
repetition_penalty
response_format
seed
stop
structured_outputs
temperature
top_k
top_p

Max Output Tokens

16,384

Data policy

Prompt retention
Unknown — we could not confirm
Training
Unknown — not declared

"Unknown" does not mean "safe". It means we could not confirm it.

Whether a provider trains on prompts is a declared value from our terms with them. Retention is determined from the upstream listing for every host this model can reach. Neither is guessed.

Frequently asked questions

Is Phi 4 available on FastMetal?
Not at the moment. GLM 5.3 Flash, from the same lab, is available on the FastMetal API today.
What is the context window of Phi 4?
16,384 tokens, shared between the prompt and the response.
How does Phi 4 rank?
#238 on the public arena's Japanese board (ELO 1,194). Ranks move as the leaderboard is updated.

Leaderboard

Text
spanishELO: 1,270
#258
russianELO: 1,247
#315
CodingELO: 1,306
#309
MathELO: 1,265
#289
Creative WritingELO: 1,210
#321
Instruction FollowingELO: 1,245
#317
Hard PromptsELO: 1,278
#311
Multi-TurnELO: 1,242
#316
OverallELO: 1,256
#322
JapaneseELO: 1,194
#238
ChineseELO: 1,268
#311
KoreanELO: 1,196
#248
EnglishELO: 1,272
#320
frenchELO: 1,267
#259
germanELO: 1,256
#252

Rankings: LMArena leaderboard dataset (lmarena-ai/leaderboard-dataset), CC BY 4.0, snapshot 2026-10-22; category names mapped and ratings rounded by FastMetal.