IntermediateChatGPTBuilding
GPT Image 1.5 deprecation: switch to GPT Image 2.6 Flare or Sunburst before Dec 1
Updated Nov 10, 2026: OpenAI's recommended replacements for the December 1, 2026 shutdown are now gpt-image-2.6-sunburst or gpt-image-2.6-flare, not GPT Image 2.5. The same day, OpenAI deprecated gpt-image-2 and gpt-image-2-2026-04-21, which shut down on February 10, 2027.
Searching for "GPT Image 1.5 deprecation" or how to use the GPT Image 2.6 API? OpenAI is removing gpt-image-1.5, gpt-image-1-mini and chatgpt-image-latest from the API on December 1, 2026. If your app makes images with one of them, it stops working that day. This guide finds every place your code names an old model, switches it to GPT Image 2.6 Flare or Sunburst, cleans up the settings that changed, and compares old against new on your own prompts before you ship.
- Time
- About 20 minutes
- Checked
If a button name on the screen does not match this guide, follow the action. These products rename buttons often.
Steps
Know what's being removed, and when
On June 2, 2026, OpenAI announced the deprecation and removal from the API on December 1, 2026 of its older GPT Image models. After that date, a request that names one of them fails instead of returning an image. On November 10, 2026, it also deprecated
gpt-image-2and the snapshotgpt-image-2-2026-04-21, which shut down on February 10, 2027. Here's the list with the replacements OpenAI's deprecations page recommends:Model name in your code Removed from the API Use instead gpt-image-1.5(and its snapshotgpt-image-1.5-2025-12-16)Dec 1, 2026 gpt-image-2.6-sunburstorgpt-image-2.6-flaregpt-image-1-miniDec 1, 2026 gpt-image-2.6-sunburstorgpt-image-2.6-flarechatgpt-image-latestDec 1, 2026 gpt-image-2.6-sunburstorgpt-image-2.6-flaregpt-image-2(and its snapshotgpt-image-2-2026-04-21)Feb 10, 2027 gpt-image-2.6-sunburstorgpt-image-2.6-flaregpt-image-1Already shut down on Oct 23, 2026 The deprecations page listed gpt-image-2.5-flareorgpt-image-2.5-sunburstat shutdown. The current recommended models aregpt-image-2.6-sunburstorgpt-image-2.6-flare.A deprecated model still works today but has a shutdown date. This affects the API only. Making images in the ChatGPT app isn't affected: ChatGPT started rolling out Images 2.5 to all users on Sept 8, 2026.
Pick Flare or Sunburst
GPT Image 2.6 comes as two models. Both generate and edit images from text and image inputs, and both cost the same per token. The difference is speed against detail:
gpt-image-2.6-flaregpt-image-2.6-sunburstOpenAI describes it as "Image generation and editing for fast iteration" "Image generation and editing for detailed visual work" Best for Workflows where response time matters most, including ones that already used GPT Image 2 or GPT Image 2.5 Flare Workflows that need more detail, layout accuracy, or precise edits, including ones that already used GPT Image 2.5 Sunburst Start with Flare if speed matters most, or with Sunburst if the image has to meet demanding requirements for detail, layout, or edit accuracy. OpenAI's image prompting guide says that if Sunburst meets your requirements, try Flare with the same prompts, reference images, dimensions, and quality setting, then compare the results and response times.
The 2.6 model pages currently list only the alias names (
gpt-image-2.6-flareandgpt-image-2.6-sunburst), with no separate dated snapshot.Scan your code for the old models
Model names hide in code, config files and
.envfiles. This script walks a folder and prints every line that names a retiring model or a setting you'll need to change. Save it asscan_image_models.py:# scan_image_models.py: find OpenAI image models and settings to change before Dec 1, 2026 # usage: python scan_image_models.py [folder] (default: the current folder) import pathlib, re, sys CHECKS = [ (r"gpt-image-1\.5", "gpt-image-1.5: removed from the API Dec 1, 2026"), (r"gpt-image-1-mini", "gpt-image-1-mini: removed from the API Dec 1, 2026"), (r"chatgpt-image-latest", "chatgpt-image-latest: removed from the API Dec 1, 2026"), (r"gpt-image-2-2026-04-21", "gpt-image-2-2026-04-21: removed from the API Feb 10, 2027"), (r"gpt-image-2(?![.\-\w])", "gpt-image-2: removed from the API Feb 10, 2027"), (r"gpt-image-1(?![.\-\w])", "gpt-image-1: already shut down Oct 23, 2026"), (r"dall-e-[23]", "DALL-E: already shut down May 12, 2026"), (r"input_fidelity", "input_fidelity: not supported on GPT Image 2.6, remove it"), (r"response_format", "response_format: GPT Image models always return base64 (check it's not an image call)"), (r"\bstyle\s*[=:]", "style: unsupported for GPT Image models, describe the style in the prompt"), ] SKIP_DIRS = {".git", "node_modules", ".venv", "venv", "__pycache__", "dist", "build", ".next"} EXTENSIONS = {".py", ".ts", ".tsx", ".js", ".mjs", ".cjs", ".go", ".java", ".kt", ".cs", ".rb", ".php", ".json", ".yaml", ".yml", ".toml", ".env", ".sh", ".ini", ".cfg"} root = pathlib.Path(sys.argv[1] if len(sys.argv) > 1 else ".") hits = 0 for path in sorted(root.rglob("*")): if any(part in SKIP_DIRS for part in path.parts) or not path.is_file(): continue if path.suffix.lower() not in EXTENSIONS and path.name != ".env": continue try: lines = path.read_text(errors="ignore").splitlines() except OSError: continue for number, line in enumerate(lines, 1): for pattern, why in CHECKS: if re.search(pattern, line): print(f"{path}:{number}: {why}\n {line.strip()[:120]}") hits += 1 print(f"\n{hits} line(s) to check." if hits else "Nothing found. Also check models set in env vars or a database.")Run it from your project folder:
python3 scan_image_models.py .Each hit shows a file, a line number and a reason. Some hits are false alarms (a CSS
style:line, for example). You decide which ones are image requests. If your app reads the model name from an environment variable, a database or a settings screen, check those too: the scan can only see files.Change the model name
For most code this is a one-line change. In the Image API (the
images.generateandimages.editcalls), setmodel:# Before result = client.images.generate(model="gpt-image-1.5", prompt=prompt) # After result = client.images.generate(model="gpt-image-2.6-flare", prompt=prompt)In the Responses API, the image model goes in the image generation tool's
modelfield, not the top-levelmodel(that one is the chat model, such asgpt-6-astra):response = client.responses.create( model="gpt-6-astra", input="Make a poster for a bake sale on Saturday", tools=[{"type": "image_generation", "model": "gpt-image-2.6-flare"}], )The way you read the result doesn't change. The Image API still returns the image as base64 in
result.data[0].b64_json, and the Responses API still returns it in animage_generation_calloutput item.Set
modelexplicitly so you get the one you chose. OpenAI's Image API docs say to specify a model rather than relying on a default.Clean up the old settings
Most settings carry over (
prompt,size,quality,n,background,output_format,output_compression,moderation,partial_images). A few need a look:input_fidelity: OpenAI's API reference documents it only forgpt-image-1.5(highorlow) andgpt-image-1-mini(lowonly). The image prompting guide says to omit it on GPT Image 2.6 edits. If you usedhighto keep faces and details from a reference photo, compare your edits after the switch.user: deprecated in the Images API. It still works, but send the same value assafety_identifierinstead: a hashed user ID, not an email address.quality: GPT Image 2.6 acceptsauto,low,medium,high,xhigh, andmax. The same quality name can use a different number of tokens on the new model, so recheck your costs (next step).complexity: a GPT Image 2.6 setting that controls how much the model plans before rendering. Chooselow,medium, orhigh. If you omit it, both Flare and Sunburst usehigh. OpenAI says this has no separate fee. Compare levels on your own prompts; keepqualityfixed when you do.size: the three standard sizes still work (1024x1024,1536x1024,1024x1536), andautois also accepted. GPT Image 2.6 also accepts custom sizes like1536x864(both sides multiples of 16, aspect ratio between 1:3 and 3:1). Sizes above2560x1440are experimental.response_formatandstyle: these were for the old DALL-E models. GPT Image models don't support them. Delete them and describe the style in your prompt.
Update your SDK too, so its type hints know the new names.
pip install --upgrade openaiCompare the old and new model on your own prompts
Before you ship, run your real prompts through both models and look at the images side by side. Until Dec 1 the old model still answers, so this is the time to compare. Save this as
compare_image_models.py:# compare_image_models.py: same prompt, old model vs GPT Image 2.6, saved side by side # usage: python compare_image_models.py "your prompt" (needs OPENAI_API_KEY) import base64, sys, time from openai import OpenAI client = OpenAI() prompt = sys.argv[1] if len(sys.argv) > 1 else "A product photo of a blue ceramic mug on a wooden table" models = ["gpt-image-1.5", "gpt-image-2.6-flare", "gpt-image-2.6-sunburst"] for model in models: start = time.time() try: result = client.images.generate( model=model, prompt=prompt, size="1024x1024", quality="medium" ) except Exception as error: # e.g. the old model after Dec 1 print(f"{model}: failed: {error}") continue seconds = time.time() - start filename = f"compare-{model}.png" with open(filename, "wb") as f: f.write(base64.b64decode(result.data[0].b64_json)) usage = result.usage.output_tokens if result.usage else "n/a" print(f"{model}: {seconds:.1f}s, output tokens: {usage}, saved {filename}")Run it with one of your real prompts:
export OPENAI_API_KEY="sk-..." # your key; never commit it python3 compare_image_models.py "A flyer for a Saturday bake sale, with the date in large letters"You get three PNG files, the time each one took, and the output tokens it used (when the API reports them). Each run makes three paid images. Output tokens are what you pay for: images are billed per token, and the same quality setting can use a different number of tokens on the new model. Check the real cost on your Usage page in the OpenAI dashboard after a few runs.
If the API says your organization must be verified, complete API Organization Verification in your developer console. OpenAI says GPT Image models may require it.
Check the results, then ship before Dec 1
Open the images and check what matters for your app, with your own eyes:
- Text in the image: spelling, dates and prices. OpenAI still lists precise text placement as a known limit.
- Edits: did the parts you didn't ask to change stay the same?
- Faces and products from reference photos: do they still look like the originals?
- Speed and cost: are they acceptable for your traffic?
If Flare passes, ship it. If edits miss, try Sunburst for those requests only. Release the change before Dec 1, then run the scan once more to make sure nothing still names an old model. If your code still uses
gpt-image-2, plan that move too: it shuts down on February 10, 2027.
Tips
Put the model name in one setting (an environment variable like IMAGE_MODEL) instead of in every call. Next time a model retires, you change one line.
Your OpenAI account can tell you about retirements too. GET /v1/models returns a shutdown_date for each model that has one. Our Find and replace retiring OpenAI models guide has a script that checks it.
Generated images still come back as base64 text, not a link. If you saved URLs from DALL-E days, those calls already stopped working on May 12, 2026.
Don't paste your API key into a chat or commit it to Git. Keep it in the OPENAI_API_KEY environment variable or your CI secrets.
Common questions
What happens if I don't switch by Dec 1?
Requests that name gpt-image-1.5, gpt-image-1-mini or chatgpt-image-latest stop returning images and return an error instead. Your app's image feature breaks until you change the model name. gpt-image-2 keeps working until February 10, 2027, then it shuts down too.
Does this affect making images in ChatGPT?
No. The deprecation covers the API. In the ChatGPT app, Images 2.5 started rolling out to all users on Sept 8, 2026, and ChatGPT picks the image model for you.
Flare or Sunburst: which one is better?
OpenAI says to start with Flare if response time matters most, and with Sunburst if you need more detail, layout accuracy, or precise edits. Both have the same per-token prices, so run the comparison script on your prompts and pick the one that passes your checks.
Will my images cost more?
Maybe more, maybe less. Both GPT Image 2.6 models charge $30 per million image output tokens and $8 per million image input tokens (as of Nov 10, 2026). They also bill text tokens on the prompt ($5 per million input tokens, $1.25 per million cached). The number of tokens per image depends on the model, size and quality, so measure with your own prompts and check the pricing page for current prices.
Can I keep using gpt-image-2?
Only until February 10, 2027. On November 10, 2026, OpenAI deprecated gpt-image-2 and gpt-image-2-2026-04-21 and scheduled them for removal on that date. The recommended replacements are gpt-image-2.6-sunburst or gpt-image-2.6-flare. If you're changing code anyway for the Dec 1 shutdown, move to 2.6 now so you don't have to migrate twice.
More guides
BeginnerChatGPTEveryday
Plan a week of meals
Give free ChatGPT your people, your time, and foods to skip. Get a 7-day plan and a shopping list you can edit.
About 10 minutes using ChatGPT
BeginnerChatGPTWriting
Write a social media caption
Ask free ChatGPT for three short captions from what really happened, then post one yourself.
About 6 minutes using ChatGPT
BeginnerChatGPTWriting
Make a message sound kinder
Paste a blunt draft into free ChatGPT and get a kinder version that does not add apologies or new facts.
About 6 minutes using ChatGPT