# mai-image-2

Calls to the model mai-image-2 on Azure AI Foundry stopped working on August 15, 2026.

Calls to model mai-image-2 fail since August 15, 2026. Azure AI Foundry retired the model on that date, causing subsequent requests to fail rather than being redirected to a newer version. Anyone targeting this model id on Azure AI Foundry is affected.

## What to use instead

The original replacement was mai-image-2.5, but that model also stopped working on October 1, 2026. No replacement that holds is named yet.

- API: Azure AI Foundry (*.services.ai.azure.com)
- Model: mai-image-2
- Kind: Model retirement
- Takes effect: August 15, 2026
- Calls after that day: fail
- Calls it hits: `model mai-image-2`
- 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/mai-image-2/

## Azure AI Foundry's words

> Model: MAI-Image-2; Version: 2026-02-20; Lifecycle: Retired; Retirement date: 2026-08-15; Replacement: MAI-Image-2.5

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