# gpt-5-codex

Calls to the model gpt-5-codex on Azure AI Foundry stop working on March 17, 2027.

- API: Azure AI Foundry (*.services.ai.azure.com)
- Model: gpt-5-codex
- Kind: Model retirement
- Takes effect: March 17, 2027
- Calls after that day: fail
- Calls it hits: `model gpt-5-codex`
- Source: [Deprecations page](https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirement-schedule)
- Verified: October 29, 2026, against Azure AI Foundry's own pages
- Page: https://www.okapi.bot/models/azure-ai-foundry/gpt-5-codex/

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