microsoftChat
Microsoft: Phi 4
microsoft/phi-4
16KContext Window
16KMax Output
Supported Protocols:structured_outputsmax_tokenstemperaturetop_pstopfrequency_penaltypresence_penaltyresponse_formatlogprobstop_logprobs
Normal
[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)
Capabilities
Text GenerationCode GenerationAnalysis & ReasoningReasoning
Technical Specs
Input Modality
Text
Output Modality
Text
Arch
—
Default Temperature
0.7
Default Top_P
1
Pricing
Pay per use, no monthly fees| Billing Type | Unit | Price |
|---|---|---|
| Text Input | — | $0.0650/M tokens |
| Text Output | — | $0.1400/M tokens |
Quick Start
from openai import OpenAI
client = OpenAI(
base_url="https://api.uniontoken.ai/v1",
api_key="YOUR_UNIONTOKEN_API_KEY",
)
response = client.chat.completions.create(
model="microsoft/phi-4",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)FAQ
Microsoft: Phi 4
microsoft/phi-4
In< ¥0.001/1K
Out< ¥0.001/1K
Context Window16K
Max Output16K
Related Models
View All → →Ready to get started?
Get 1M free tokens on registration, no monthly fees or minimum spend
Register Now →