# dall-e-2

Calls to the model dall-e-2 on OpenAI stopped working on May 12, 2026.

- API: OpenAI (api.openai.com)
- Model: dall-e-2
- Kind: Model retirement
- Takes effect: May 12, 2026
- Calls after that day: fail
- Calls it hits: `model dall-e-2`
- Source: [Deprecations page](https://developers.openai.com/api/docs/deprecations)
- Page: https://www.okapi.bot/models/openai/dall-e-2/

## What to use instead

Move to gpt-image-2. gpt-image-1, also named, stops working on 2026-10-23. gpt-image-1-mini, also named, stops working on 2026-12-01.

gpt-image-2 always returns base64 (data[].b64_json), never a URL: response_format is unsupported, so store or serve the decoded bytes yourself. There is no equivalent of the DALL·E 2 variations call (/v1/images/variations).
