Description
[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)
API Usage Examples
OpenAI Compatible Endpoint
Use this endpoint with any OpenAI-compatible library. Model: Microsoft: Phi 4 (microsoft/phi-4)
curl https://api.ridvay.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "microsoft/phi-4",
"messages": [
{
"role": "user",
"content": "Explain the capabilities of the Microsoft: Phi 4 model"
}
],
"temperature": 0.7,
"max_tokens": 1024
}'
Supported Modalities
- Text
API Pricing
- Input: 0.06$ / 1M tokens
- Output: 0.14$ / 1M tokens
Token Limits
- Max Output: 16,384 tokens
- Max Context: 16,384 tokens
Subscription Tiers
- free
- pro
- ultimate