Skip to content
ModelsRankingsChatDocsPricing
mi

Microsoft: Phi 4

microsoft/phi-4

AvailableMicrosofttext intext out

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

Context

16K

tokens in

Max output

15K

tokens out

Price

$0.070 / $0.140

per 1M in / out

Quick start

curl https://api.token265.com/v1/chat/completions \
  -H "Authorization: Bearer ${OPENROUTER_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "microsoft/phi-4",
    "messages": [{"role": "user", "content": "hello"}]
  }'
from openai import OpenAI

client = OpenAI(base_url="https://api.token265.com/v1", api_key="sk-...")
client.chat.completions.create(
    model="microsoft/phi-4",
    messages=[{"role": "user", "content": "hello"}],
)

Supported parameters

frequency_penaltylogit_biasmax_tokensmin_ppresence_penaltyrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetop_ktop_p