The error you get
What OpenAI answers a call to dall-e-2 once the model is gone, as recorded from real responses:
{"error":{"message":"The model `dall-e-2` 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 dall-e-2
Move to gpt-image-2.6-sunburst. Note that gpt-image-1 stopped working on October 23, 2026, while gpt-image-1-mini stops working on December 1, 2026, and gpt-image-2 stops working on February 10, 2027.
In OpenAI's words
Shutdown date: May 12, 2026; Affected model or feature: dall-e-2; Listed replacement: gpt-image-2 , gpt-image-1 , or gpt-image-1-mini; Notice date: Nov 14, 2025
Facts
- API
- OpenAI
api.openai.com - Model
dall-e-2- Kind
- Model retirement
- Takes effect
- May 12, 2026
- Calls after that day
- Fail
- Source
- Deprecations page
- Last updated
- Verified
- , against OpenAI's own pages
Questions
When does dall-e-2 shut down?
Calls to the model dall-e-2 on OpenAI stopped working on May 12, 2026.
What happens to calls after May 12, 2026?
They have failed since May 12, 2026.
What error does dall-e-2 return once it is shut down?
OpenAI answers HTTP 404: "The model `dall-e-2` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations". Send another model to fix it.
More from OpenAI 10
| Effective | Model | Status |
|---|---|---|
gpt-4-0125-preview | stopped working | |
gpt-4-turbo-preview | stopped working | |
gpt-4-turbo-preview-completions | stopped working | |
gpt-4o-audio-preview | stopped working | |
gpt-4o-mini-audio-preview | stopped working | |
gpt-4o-mini-realtime-preview | stopped working | |
gpt-4o-realtime-preview | stopped working | |
gpt-4o-realtime-preview-2024-12-17 | stopped working | |
gpt-4o-realtime-preview-2025-06-03 | stopped working | |
dall-e-3 | stopped working |