# phi-4

Calls to the model phi-4 on Azure AI Foundry stop working on January 17, 2027.

On January 17, 2027, model phi-4 will be retired. Calls targeting this model will fail after that day. This retirement affects all requests sent to model phi-4 on Azure AI Foundry.

## What to use instead

Move to microsoft--phi-4 (Foundry Managed Compute), as recommended by Microsoft.

- API: Azure AI Foundry (*.services.ai.azure.com)
- Model: phi-4
- Released: December 11, 2024 (models.dev)
- Kind: Model retirement
- Takes effect: January 17, 2027
- Calls after that day: fail
- Calls it hits: `model phi-4`
- Source: [Deprecations page](https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirement-schedule)
- Verified: November 6, 2026, against Azure AI Foundry's own pages
- Page: https://www.okapi.bot/models/azure-ai-foundry/phi-4/

## Azure AI Foundry's words

> Model: Phi-4; Version: —; Lifecycle: GA; Retirement date: 2027-01-17; Replacement: microsoft--phi-4 (Foundry Managed Compute)

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
