microsoftChat
Microsoft: Phi 4
microsoft/phi-4
16KContext Window
16KMax Output
Supported Protocols:structured_outputsmax_tokenstemperaturetop_pstopfrequency_penaltypresence_penaltyresponse_formatlogprobstop_logprobs
Online
[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 & Reasoningmodels.reasoning
Technical Specs
Input Modality
Text
Output Modality
Text
Arch
—
Pricing
Pay per use, no monthly feesInput Token< ¥0.001/1K Token
Output Token< ¥0.001/1K Token
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 → →Microsoft: Phi-3.5 Mini 128K Instruct
microsoft/phi-3.5-mini-128k-instruct
< ¥0.001/1K
Microsoft: Phi-3 Medium 4K Instruct
microsoft/phi-3-medium-4k-instruct
< ¥0.001/1K
Microsoft: Phi-3 Mini 128K Instruct
microsoft/phi-3-mini-128k-instruct
< ¥0.001/1K
Microsoft: Phi-3 Medium 128K Instruct
microsoft/phi-3-medium-128k-instruct
< ¥0.001/1K
Ready to get started?
Get 1M free tokens on registration, no monthly fees or minimum spend
Register Now →