# Microsoft: Phi 4

- Model id: `microsoft/phi-4`
- Served by: -
- List price per 1M tokens, input / output, from: -, with 0% platform fee. A request is billed at the list price of the host that served it.
- Context: 16K, max output 15K
- Prices read 2026-11-15 09:33 UTC
- Page: https://plaingateway.com/models/microsoft/phi-4

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

## Hosts

| Host | Endpoint | In / out /M | Cache read /M | Context | Served |
|---|---|---|---|---|---|
| DeepInfra | `deepinfra/bf16/flex` | $0.056 / $0.112 | - | 16K | no |
| DeepInfra | `deepinfra/bf16` | $0.07 / $0.14 | - | 16K | no |

## First request

```sh
curl https://api.plaingateway.com/api/v1/chat/completions \
  -H "Authorization: Bearer $PLAINGATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "microsoft/phi-4", "messages": [{"role": "user", "content": "Say hello in five words."}]}'
```

Sign up at https://plaingateway.com/signup (no card), create a key, send a test call, and add credits when you want more. New accounts may get a small starting credit. The whole bootstrap for agents: https://plaingateway.com/llms.txt
