# gpt-4o

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

Calls to model gpt-4o will fail starting January 14, 2027. This retirement applies to requests targeting the gpt-4o model, including gpt-4o-2024-08-06 and gpt-4o-2024-11-20. After that date, OpenAI will no longer serve responses for these calls.

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

HTTP 404

```json
{"error":{"message":"The model `gpt-4o` 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 the replacement recommended by OpenAI.

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

## OpenAI's words

> Shutdown date: January 14, 2027; Model / system: GPT-4o ( gpt-4o-2024-08-06 , gpt-4o-2024-11-20 ); 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
