# Phi 4 Mini API pricing

No price from the maker itself is on record for Phi 4 Mini. The lowest of 1 providers is NanoGPT: $0.17 per 1M input tokens and $0.68 per 1M output tokens (as of 2026-11-12). Context window: 128K tokens, up to 16.4K output tokens per request.

- Type: Text
- Context: 128K
- Max output: 16.4K
- Released: 2025-02-26
- Open weights: Yes

## Price by provider (USD per 1M tokens)

| Provider | Model id | Input | Output | Cached | Notes |
| --- | --- | --- | --- | --- | --- |
| [NanoGPT](https://docs.nano-gpt.com) | phi-4-mini-instruct | $0.17 | $0.68 | $0.085 | Lowest |

Providers are those listed by models.dev. This site has not vetted them one by one; each provider's own page has the binding price.

Prices and specs come from models.dev (MIT licence), updated 2026-11-12. Each provider's name links to its official docs. A provider priced at 0 usually includes the model in a subscription; it is not necessarily a free API.

https://apibook.ai/models/microsoft/phi-4-mini/
