Back to Models

Microsoft: Phi-3 Medium 128K Instruct

microsoft/phi-3-medium-128k-instruct

Description

Phi-3 128K Medium is a powerful 14-billion parameter model designed for advanced language understanding, reasoning, and instruction following. Optimized through supervised fine-tuning and preference adjustments, it excels in tasks involving common sense, mathematics, logical reasoning, and code processing. At time of release, Phi-3 Medium demonstrated state-of-the-art performance among lightweight models. In the MMLU-Pro eval, the model even comes close to a Llama3 70B level of performance. For 4k context length, try [Phi-3 Medium 4K](/models/microsoft/phi-3-medium-4k-instruct).

API Usage Examples

OpenAI Compatible Endpoint

Use this endpoint with any OpenAI-compatible library. Model: Microsoft: Phi-3 Medium 128K Instruct (microsoft/phi-3-medium-128k-instruct)

curl https://api.ridvay.com/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "microsoft/phi-3-medium-128k-instruct",
    "messages": [
      {
        "role": "user",
        "content": "Explain the capabilities of the Microsoft: Phi-3 Medium 128K Instruct model"
      }
    ],
    "temperature": 0.7,
    "max_tokens": 1024
  }'

Supported Modalities

  • Text

API Pricing

  • Input: 1$ / 1M tokens
  • Output: 1$ / 1M tokens

Token Limits

  • Max Output: 128,000 tokens
  • Max Context: 128,000 tokens

Subscription Tiers

  • free
  • pro
  • ultimate