0
tutorial 10 min readBy Marco Reyes

GPT Image 2 API Guide: Pricing, Endpoints, and First Request (May 2026)

OpenAI's GPT Image 2 API rolls out the first week of May 2026 — the same week DALL-E 3 retires. Here's the endpoint shape, real pricing, an authenticated cURL example, and the migration path you should plan today.

GPT Image 2 API Guide: Pricing, Endpoints, and First Request (May 2026)

GPT Image 2 API access opens the first week of May 2026. That's also the week DALL-E 3 shuts down (May 12, 2026 is the hard cutoff). If you've shipped anything against DALL-E 3 — and most production AI image pipelines have — this is your migration window. This guide walks through the GPT Image 2 API endpoint shape, the pricing that's been confirmed in OpenAI's developer announcements, an authenticated request you can copy-paste, and the migration path off DALL-E that minimizes broken behavior in your existing code.

What the GPT Image 2 API ships with

The GPT Image 2 API exposes the same capabilities ChatGPT users got on April 21: 2K native output, 4K upscale, multi-frame generation up to 8 frames per call, and an optional Thinking mode for complex compositions. The endpoint matches the pattern of the existing OpenAI image APIs — POST to /v1/images/generations with a model parameter set to gpt-image-2. The response shape adds two fields: a frames array (length 1–8 depending on the request) and an upscale_url that's populated when 4K upscaling is requested.

Pricing (confirmed)

Pricing per image lands roughly 20% above GPT Image 1, with multi-frame calls billed per frame. Standard mode at 2K runs ~$0.045 per frame; 4K upscaled output runs ~$0.07 per frame. Thinking mode applies a flat 1.8× multiplier on whichever resolution you generate at. Multilingual prompts are billed identically — there's no language premium.

Sponsored

Your first GPT Image 2 API request

The minimum-viable request is six fields: model, prompt, size, n (number of frames), response_format, and quality. The default response_format is url, which returns time-limited URLs to the generated images. Use b64_json if you need to ingest the bytes directly into a pipeline without a second HTTP fetch.

Single-image cURL example

curl https://api.openai.com/v1/images/generations \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-image-2", "prompt": "A transparent isolated red maple leaf on white background, photoreal, 2K", "size": "2048x2048", "n": 1, "quality": "standard", "response_format": "url" }'

Multi-frame request

For animation source material, set n to a value between 2 and 8 and add a frames_consistency: "high" parameter. The model maintains character identity across the returned frames so you can stitch them directly into a GIF or sprite sheet.

Free tool

Make your GPT Image 2 output transparent

Remove backgrounds and turn any GPT Image 2 image into a transparent PNG or GIF. Free.

Try transparentimagegenerator.com

GPT Image 2 vs DALL-E 3: API migration path

If you're migrating off DALL-E 3 before May 12, you have two options. Option one — minimum-change migration — swap the model field from dall-e-3 to gpt-image-2 and you're functional. Output quality jumps but cost goes up roughly 20% per call. Option two — optimized migration — refactor the call to use multi-frame mode where it makes sense, drop external upscaling steps now that 4K is native, and consolidate any post-generation text-overlay code (GPT Image 2's text rendering removes the need to overlay captions externally for most use cases).

API parameterDALL-E 3GPT Image 1GPT Image 2
modeldall-e-3gpt-image-1gpt-image-2
max size1024x10241024x10242048x2048 native
n (per call)11–101–8 (frame-consistent)
qualitystandard / hdstandardstandard / thinking
frames_consistencyn/an/alow / high
upscaleexternalexternalnative 4K param
price per image (~)$0.04$0.038$0.045
statusRetiring May 12, 2026ActiveCurrent

Sponsored

Three things that will trip you up

First, image dimensions. DALL-E 3 accepted 1024x1024, 1024x1792, 1792x1024. GPT Image 2 's allowed sizes are 1024x1024, 2048x2048, 2048x1152, 1152x2048. If you have hardcoded size strings in client code, audit them now.

Second, response time. GPT Image 2 in standard mode runs ~25% slower than GPT Image 1 due to the higher native resolution. In Thinking mode it's roughly 2× slower. If you've got synchronous user-facing code paths, push these to async or you'll start tripping timeouts.

Third, content policy returns. The error shape stayed identical, but the policy itself tightened on photoreal celebrity likenesses and explicit branded character generation. Anything that worked on DALL-E 3 in those areas may now return a content policy error. Add error-handling for the policy_violation code if you don't have it already.

Building a transparent-image pipeline on GPT Image 2

Free tool

Make your GPT Image 2 output transparent

Remove backgrounds and turn any GPT Image 2 image into a transparent PNG or GIF. Free.

Try transparentimagegenerator.com

Frequently asked questions

When does the GPT Image 2 API launch?+
The first week of May 2026 — confirmed in the same announcement that ships GPT Image 2 inside ChatGPT (April 21, 2026). Multilingual prompt support across 14 languages is included from day one.
How much does the GPT Image 2 API cost?+
Standard 2K output runs roughly $0.045 per image. 4K upscaled output runs roughly $0.07 per image. Thinking mode applies a 1.8× multiplier. Multi-frame calls bill per frame.
Can I migrate from DALL-E 3 just by changing the model name?+
Yes — but audit your size strings and timeout values first. DALL-E 3 supported 1024x1792 which GPT Image 2 doesn't, and GPT Image 2 calls run slower so synchronous code paths may timeout.
Does GPT Image 2 API support transparent backgrounds natively?+
Not directly — it returns RGB images. For transparent output, prompt with 'isolated subject, plain white background' and run the result through a background-removal step or use transparentimagegenerator.com to handle the alpha cut automatically.
Is there a multi-frame API parameter?+
Yes. Set n to 2–8 and frames_consistency to 'high' to get a frame-consistent multi-image response in a single API call. This is the parameter that makes GIF generation pipelines economical.

The bottom line

GPT Image 2 API access is the inflection point that turns generative imaging from a single-image tool into an animation primitive. Frame-consistent multi-image responses, native 2K output, and the simplest migration path OpenAI has shipped in years. If you're on DALL-E 3 today, your migration deadline is May 12 — and the version you're migrating to is genuinely better, not just newer.

Free tool

Make your GPT Image 2 output transparent

Remove backgrounds and turn any GPT Image 2 image into a transparent PNG or GIF. Free.

Try transparentimagegenerator.com
Marco Reyes

About the author

Marco Reyes — Technical Writer — Image APIs · Marco builds and breaks generative-image APIs for a living. He writes the technical guides that explain what changed when a new model ships, why it matters, and how to ship code against it within the hour.

#gpt-image-2-api#gpt-image-2#openai-api#ai-image-api#transparent-image-generator