# gpt-4o-mini

Calls to the model gpt-4o-mini on OpenAI stop working on January 14, 2027.

Requests using model gpt-4o-mini will fail starting on January 14, 2027. OpenAI is retiring this model on that date, which will cause any further calls targeting it to stop working.

## The error OpenAI returns once gpt-4o-mini is gone

HTTP 404

```json
{"error":{"message":"The model `gpt-4o-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-6-luna, which is recommended by OpenAI.

- API: OpenAI (api.openai.com)
- Model: gpt-4o-mini
- Released: July 18, 2024 (models.dev)
- Kind: Model retirement
- Takes effect: January 14, 2027
- Calls after that day: fail
- Calls it hits: `model gpt-4o-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/gpt-4o-mini/

## OpenAI's words

> Shutdown date: January 14, 2027; Model / system: GPT-4o mini ( gpt-4o-mini-2024-07-18 ); Recommended replacement: gpt-6-luna

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