Skip to content
Microsoft
microsoft/phi-4

About this model

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

Make a request

OpenAI-compatible: set the base URL and your Promptix API key, keep your existing SDK.

curl https://promptix.tn/api/v1/chat/completions \  -H "Authorization: Bearer $PROMPTIX_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "microsoft/phi-4",    "messages": [      {"role": "user", "content": "Hello! What can you do?"}    ]  }'

Pricing

In TND per 1M tokens. VAT and the platform fee are added at top-up.

Input tokens

0.233 TND

per 1M tokens

Output tokens

0.465 TND

per 1M tokens

1,000 requests with 1K input and 500 output tokens cost about 0.465 TND.

Specifications

Provider
Microsoft
Context window
16,384 tokens
Input modality
Text
Added
Jan 10, 2025
Supported parameters
frequency_penaltylogit_biasmax_tokensmin_ppresence_penaltyrepetition_penaltyresponse_formatseed