Microsoft Azure
Microsoft Azure

Phi 4

Phi 4 is a Microsoft Azure model with function calling capabilities. It is priced at $0.07 per million input tokens and $0.14 per million output tokens, and has a 16K token context window. Access the Phi 4 API through Inworld Router or Realtime API.
Function Calling
curl --location 'https://api.inworld.ai/router/v1/routers' \ --header 'Content-Type: application/json' \ --header 'Authorization: Basic <your-api-key>' \ --data '{ "name": "compare-frontier-models", "default_route": { "route_id": "default", "variants": [ { "variant": {
"variant_id": "deepinfra", "model_id": "deepinfra/phi-4"
}, "weight": 33 }, { "variant": { "variant_id": "deepinfra", "model_id": "deepinfra/phi-4" }, "weight": 33 }, { "variant": { "variant_id": "deepinfra", "model_id": "deepinfra/phi-4" }, "weight": 34 } ] } }'

Inference providers

Access Phi 4 through DeepInfra via Inworld Router or Realtime API.
CapabilitiesInput modalitiesOutput modalities
DeepInfraDeepInfra16.4K16.4K$0.07$0.14

Start building with Phi 4

Access Phi 4 and every other model through Inworld Router or Realtime API. Create your free account and start routing in minutes.
Copyright © 2021-2026 Inworld AI