Model specifications
- Context
- 16,384 tokens
- Maximum output
- 14,745 tokens
- Architecture
- text->text
- Tokenizer
- Other
- Knowledge cutoff
- 2024-06-30
- Moderated
- No
Complete pricing
Synchronized OpenRouter rates. Token prices are shown per one million tokens.
- Input
- $0.07 /M tokens
- Output
- $0.14 /M tokens
Quick start
Call this exact model ID through OpenRouter’s OpenAI-compatible API.
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"microsoft/phi-4","messages":[{"role":"user","content":"Hello!"}]}'Input → Output
Supported API parameters
frequency_penaltylogit_biasmax_tokensmin_ppresence_penaltyrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetop_ktop_p1 Provider
Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.
DeepInfra
bf16- Context
- 16K
- Maximum output
- 15K
- Input
- $0.070
- Output
- $0.140
- Cache read
- Not provided
- Cache write
- Not provided