Skip to content

Migrate image generation from DALL‑E to gpt-image-1-mini#23

Merged
Bullrich merged 8 commits into
mainfrom
copilot/migrate-from-dall-e-to-gpt-image-mini-1
May 12, 2026
Merged

Migrate image generation from DALL‑E to gpt-image-1-mini#23
Bullrich merged 8 commits into
mainfrom
copilot/migrate-from-dall-e-to-gpt-image-mini-1

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 12, 2026

DALL‑E deprecation requires moving image generation to gpt-image-1-mini and updating the OpenAI SDK usage accordingly. This change updates the library to the latest OpenAI client and adapts outputs to GPT image model responses.

  • API migration
    • Switch image model defaults/types to gpt-image-1-mini
    • Generate PNG base64 data URLs from GPT image responses
  • Docs & examples
    • Update README and E2E example usage to reflect the new model and data URL outputs

Example:

const imageUrl = await imageGen.generateImage(
  "A sunset over mountains",
  "1024x1024",
  "gpt-image-1-mini"
);
// imageUrl is a PNG data URL

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • developers.openai.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue May 12, 2026 that may be closed by this pull request
Copilot AI and others added 7 commits May 12, 2026 09:33
Agent-Logs-Url: https://github.com/CodingBull-dev/story-gpt/sessions/a1acf4ba-732c-4ca0-b8f3-6ce1bfaffbef

Co-authored-by: Bullrich <8524599+Bullrich@users.noreply.github.com>
Agent-Logs-Url: https://github.com/CodingBull-dev/story-gpt/sessions/a1acf4ba-732c-4ca0-b8f3-6ce1bfaffbef

Co-authored-by: Bullrich <8524599+Bullrich@users.noreply.github.com>
Agent-Logs-Url: https://github.com/CodingBull-dev/story-gpt/sessions/a1acf4ba-732c-4ca0-b8f3-6ce1bfaffbef

Co-authored-by: Bullrich <8524599+Bullrich@users.noreply.github.com>
Agent-Logs-Url: https://github.com/CodingBull-dev/story-gpt/sessions/a1acf4ba-732c-4ca0-b8f3-6ce1bfaffbef

Co-authored-by: Bullrich <8524599+Bullrich@users.noreply.github.com>
Agent-Logs-Url: https://github.com/CodingBull-dev/story-gpt/sessions/a1acf4ba-732c-4ca0-b8f3-6ce1bfaffbef

Co-authored-by: Bullrich <8524599+Bullrich@users.noreply.github.com>
Agent-Logs-Url: https://github.com/CodingBull-dev/story-gpt/sessions/a1acf4ba-732c-4ca0-b8f3-6ce1bfaffbef

Co-authored-by: Bullrich <8524599+Bullrich@users.noreply.github.com>
Agent-Logs-Url: https://github.com/CodingBull-dev/story-gpt/sessions/a1acf4ba-732c-4ca0-b8f3-6ce1bfaffbef

Co-authored-by: Bullrich <8524599+Bullrich@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate from DALL-E to gpt-image-mini-1 due to deprecation Migrate image generation from DALL‑E to gpt-image-1-mini May 12, 2026
Copilot AI requested a review from Bullrich May 12, 2026 09:49
@Bullrich Bullrich marked this pull request as ready for review May 12, 2026 10:12
@Bullrich Bullrich merged commit e5e0698 into main May 12, 2026
7 checks passed
@Bullrich Bullrich deleted the copilot/migrate-from-dall-e-to-gpt-image-mini-1 branch May 12, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DALL-E Deperecation

2 participants