Okapi Okapi

OpenAI · Model retirement

dall-e-2

Stopped working

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

What to use instead of dall-e-2

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).

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

More from OpenAI

Know before your API calls break.

Okapi finds the calls a breaking change hits in your code and opens the pull request that fixes them.

Add to GitHub