# phi-4-mini-instruct

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

On January 17, 2027, Azure AI Foundry will retire model phi-4-mini-instruct. Calls targeting this model will fail after that date.

## What to use instead

Migrate your workloads to microsoft--phi-4 (Foundry Managed Compute), which is the replacement recommended by Microsoft.

- API: Azure AI Foundry (*.services.ai.azure.com)
- Model: phi-4-mini-instruct
- Released: February 26, 2025 (models.dev)
- Kind: Model retirement
- Takes effect: January 17, 2027
- Calls after that day: fail
- Calls it hits: `model phi-4-mini-instruct`
- 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-mini-instruct/

## Azure AI Foundry's words

> Model: Phi-4-mini-instruct; 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
