OpenAI
gpt-4o-search-preview model retirement
Stopped workingSubscribe to OpenAIShare
Calls to model gpt-4o-search-preview fail since July 23, 2026. OpenAI retired this model along with snapshot gpt-4o-search-preview-2025-03-11 on that date, and requests using it are no longer served.
The error you get
What OpenAI answers a call to gpt-4o-search-preview once the model is gone, as recorded from real responses:
{"error":{"message":"The model `gpt-4o-search-preview` 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-4o-search-preview
Move to gpt-5.6-terra, which is recommended by OpenAI as the substitute model.
In OpenAI's words
Shutdown date: July 23, 2026; Model snapshot: gpt-4o-search-preview-2025-03-11; Substitute model: gpt-5.6-terra
Facts
- API
- OpenAI
api.openai.com - Model
gpt-4o-search-preview- Kind
- Model retirement
- Takes effect
- July 23, 2026
- Calls after that day
- Fail
- Source
- Deprecations page
- Last updated
- Verified
- , against OpenAI's own pages
Questions
When does gpt-4o-search-preview shut down?
Calls to the model gpt-4o-search-preview on OpenAI stopped working on July 23, 2026.
What happens to calls after July 23, 2026?
They have failed since July 23, 2026.
What error does gpt-4o-search-preview return once it is shut down?
OpenAI answers HTTP 404: "The model `gpt-4o-search-preview` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations". Send another model to fix it.
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
-
computer-use-previewModel retirement Stopped working -
computer-use-preview-2025-03-11Model retirement Stopped working -
gpt-4o-mini-search-previewModel retirement Stopped working -
gpt-4o-mini-search-preview-2025-03-11Model retirement Stopped working -
gpt-4o-search-preview-2025-03-11Model retirement Stopped working -
gpt-5-chat-latestModel retirement Stopped working -
gpt-5-codexModel retirement Stopped working -
gpt-5.1-chat-latestModel retirement Stopped working -
gpt-5.1-codexModel retirement Stopped working -
gpt-5.1-codex-maxModel 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.