Text model
Phi-4
microsoft/phi-4
microsoft/phi-4 is a language model from Microsoft you can call on the OceanToken API at $0.056 per 1M input tokens and $0.112 per 1M output tokens, with a 16K-token context window and up to 15K output tokens.
At a glance
| Model ID | microsoft/phi-4 |
|---|---|
| Type | Text |
| Publisher | Microsoft |
| Context window | 16,384 tokens |
| Max output | 14,745 tokens |
| Input price | $0.056 per 1M tokens |
| Output price | $0.112 per 1M tokens |
| Capabilities | text in, text out |
| Endpoint | /v1/chat/completions, /v1/responses |
| API shape | OpenAI-compatible |
| In the catalog since | 2025-01-10 |
Call it
Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.
curl https://api.oceantoken.ai/v1/chat/completions \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "microsoft/phi-4", "messages": [{"role": "user", "content": "Hello"}]}'
Compared with similar models
Text models on OceanToken closest to microsoft/phi-4 in price. Every price is what you pay, in US dollars, with no platform fee on top.
| Model | Publisher | Context | Price (per 1M tokens) |
|---|---|---|---|
| Phi-4 | Microsoft | 16,384 | $0.056 / $0.112 |
Granite 4.0 H Microibm-granite/granite-4.0-h-micro | IBM Granite | 131K | $0.017 / $0.112 |
Laguna Xs 2.1poolside/laguna-xs-2.1 | Poolside | 262K | $0.06 / $0.12 |
Ministral 3B 2512mistralai/ministral-3b-2512 | Mistral AI | 131K | $0.10 / $0.10 |
More from Microsoft
- Mai Image 2.5
microsoft/mai-image-2.5 - Mai Image 2.5 Pro
microsoft/mai-image-2.5-pro - Mai Image 2.6
microsoft/mai-image-2.6 - Mai Image 2.6 Flash
microsoft/mai-image-2.6-flash - Mai Transcribe 1.5
microsoft/mai-transcribe-1.5 - Mai Transcribe 2
microsoft/mai-transcribe-2 - Mai Voice 2
microsoft/mai-voice-2 - Mai Voice 2 Flash
microsoft/mai-voice-2-flash
All Microsoft models on OceanToken
Use it
Create an account All models and prices
Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.