Back to Models

Microsoft: Phi 4

microsoft/phi-4

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...

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.065$ / 1M tokens
  • Output: 0.14$ / 1M tokens

Token Limits

  • Max Output: 16,384 tokens
  • Max Context: 16,384 tokens

Subscription Tiers

  • free
  • pro
  • ultimate