# o4-mini

Calls to the model o4-mini on OpenAI stopped working on October 23, 2026.

On October 23, 2026, the o4-mini model was retired. Requests targeting model o4-mini fail since that day. This shutdown also affected the o4-mini-2025-04-16 snapshot.

## The error OpenAI returns once o4-mini is gone

HTTP 404

```json
{"error":{"message":"The model `o4-mini` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations","type":"invalid_request_error","param":null,"code":"model_not_found"}}
```

## What to use instead

Move to gpt-5.6-terra, which is recommended by OpenAI as the substitute model.

- API: OpenAI (api.openai.com)
- Model: o4-mini
- Released: April 16, 2025 (models.dev)
- Kind: Model retirement
- Takes effect: October 23, 2026
- Calls after that day: fail
- Calls it hits: `model o4-mini`
- Source: [Deprecations page](https://developers.openai.com/api/docs/deprecations)
- Verified: November 6, 2026, against OpenAI's own pages
- Page: https://www.okapi.bot/models/openai/o4-mini/

## OpenAI's words

> Shutdown date: October 23, 2026; Model snapshot: o4-mini-2025-04-16 | o4-mini; Substitute model: gpt-5.6-terra

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