OpenAI
gpt-4 model retirement
Stopped workingSubscribe to OpenAIShare
Calls targeting model gpt-4 fail since October 23, 2026. OpenAI retired this model on that date, and requests using it are no longer served.
The error you get
What OpenAI answers a call to gpt-4 once the model is gone, as recorded from real responses:
{"error":{"message":"The model `gpt-4` 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 of gpt-4
Move to gpt-5.6-sol, recommended by OpenAI.
In OpenAI's words
Shutdown date: October 23, 2026; Model snapshot: gpt-4-0613 | gpt-4 , gpt-4-0613-completions , gpt-4-completions; Substitute model: gpt-5.6-sol
Facts
- API
- OpenAI
api.openai.com - Model
gpt-4- Released
- November 6, 2023 (models.dev)
- Kind
- Model retirement
- Takes effect
- October 23, 2026
- Calls after that day
- Fail
- Source
- Deprecations page
- Last updated
- Verified
- , against OpenAI's own pages
Questions
When does gpt-4 shut down?
Calls to the model gpt-4 on OpenAI stopped working on October 23, 2026.
What happens to calls after October 23, 2026?
They have failed since October 23, 2026.
What error does gpt-4 return once it is shut down?
OpenAI answers HTTP 404: "The model `gpt-4` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations". Send another model to fix it.
When was gpt-4 released?
gpt-4 was released on November 6, 2023, according to models.dev.
How do I find the calls this hits in my code?
Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.
More from OpenAI 10
-
ft-babbage-002Model retirement Stopped working -
ft-davinci-002Model retirement Stopped working -
ft-gpt-3.5-turboModel retirement Stopped working -
ft-gpt-4Model retirement Stopped working -
ft-gpt-4.1-nanoModel retirement Stopped working -
ft-gpt-4.1-nano-2025-04-14Model retirement Stopped working -
ft-o4-miniModel retirement Stopped working -
ft-o4-mini-2025-04-16Model retirement Stopped working -
gpt-3.5-turboModel retirement Stopped working -
gpt-3.5-turbo-0125Model retirement Stopped working
You fixed this one by hand.
Okapi opens the pull request with the fix before the next breaking change reaches your code.