# GPT Image 1.5 deprecation: switch to GPT Image 2.6 Flare or Sunburst before Dec 1

> OpenAI removes gpt-image-1.5, gpt-image-1-mini and chatgpt-image-latest from the API on Dec 1, 2026. Scan your code and switch to gpt-image-2.6-sunburst or gpt-image-2.6-flare.

Level: Intermediate
Tool: ChatGPT
Category: Building
Time: About 20 minutes
Checked: 2026-11-10
Tools: [OpenAI deprecations page (GPT Image models)](https://developers.openai.com/api/docs/deprecations), [OpenAI: Image generation guide](https://developers.openai.com/api/docs/guides/image-generation), [OpenAI API reference: Images](https://developers.openai.com/api/reference/resources/images/), [OpenAI: GPT-Image-2.6 Flare](https://developers.openai.com/api/docs/models/gpt-image-2.6-flare), [OpenAI: GPT-Image-2.6 Sunburst](https://developers.openai.com/api/docs/models/gpt-image-2.6-sunburst)
HTML page: https://easyaihowtos.com/guides/switch-from-gpt-image-1-5-to-gpt-image-2-5

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

## What you need

- A project that makes images with the OpenAI API (the Image API or the image generation tool in the Responses API)
- Python 3.8 or newer to run the scan script (it reads code in any language, and needs nothing installed)
- An OpenAI API key and a few cents of credit, to compare the old and new models on your own prompts
- Your code in Git, so you can see and undo every change

## Steps

### 1. 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-2` and the snapshot `gpt-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 snapshot `gpt-image-1.5-2025-12-16`) | Dec 1, 2026 | `gpt-image-2.6-sunburst` or `gpt-image-2.6-flare` |
| `gpt-image-1-mini` | Dec 1, 2026 | `gpt-image-2.6-sunburst` or `gpt-image-2.6-flare` |
| `chatgpt-image-latest` | Dec 1, 2026 | `gpt-image-2.6-sunburst` or `gpt-image-2.6-flare` |
| `gpt-image-2` (and its snapshot `gpt-image-2-2026-04-21`) | Feb 10, 2027 | `gpt-image-2.6-sunburst` or `gpt-image-2.6-flare` |
| `gpt-image-1` | Already shut down on Oct 23, 2026 | The deprecations page listed `gpt-image-2.5-flare` or `gpt-image-2.5-sunburst` at shutdown. The current recommended models are `gpt-image-2.6-sunburst` or `gpt-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.

### 2. 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-flare` | `gpt-image-2.6-sunburst` |
| --- | --- | --- |
| OpenAI 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-flare` and `gpt-image-2.6-sunburst`), with no separate dated snapshot.

### 3. Scan your code for the old models

Model names hide in code, config files and `.env` files. This script walks a folder and prints every line that names a retiring model or a setting you'll need to change. Save it as `scan_image_models.py`:
```python
# 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:
```bash
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.

### 4. Change the model name

For most code this is a one-line change. In the **Image API** (the `images.generate` and `images.edit` calls), set `model`:
```python
# 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 `model` field, not the top-level `model` (that one is the chat model, such as `gpt-6-astra`):
```python
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 an `image_generation_call` output item.

Set `model` explicitly so you get the one you chose. OpenAI's Image API docs say to specify a model rather than relying on a default.

### 5. 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 for `gpt-image-1.5` (`high` or `low`) and `gpt-image-1-mini` (`low` only). The image prompting guide says to omit it on GPT Image 2.6 edits. If you used `high` to 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 as `safety_identifier` instead: a hashed user ID, not an email address.
- **`quality`**: GPT Image 2.6 accepts `auto`, `low`, `medium`, `high`, `xhigh`, and `max`. 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. Choose `low`, `medium`, or `high`. If you omit it, both Flare and Sunburst use `high`. OpenAI says this has no separate fee. Compare levels on your own prompts; keep `quality` fixed when you do.
- **`size`**: the three standard sizes still work (`1024x1024`, `1536x1024`, `1024x1536`), and `auto` is also accepted. GPT Image 2.6 also accepts custom sizes like `1536x864` (both sides multiples of 16, aspect ratio between 1:3 and 3:1). Sizes above `2560x1440` are experimental.
- **`response_format` and `style`**: 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.
```bash
pip install --upgrade openai
```

### 6. Compare 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`:
```python
# 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:
```bash
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.

### 7. 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](/guides/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.
- **Part of the Before it retires series:** [Move your custom GPT to a ChatGPT plugin](/guides/move-your-custom-gpt-to-a-chatgpt-plugin), [Find and replace retiring OpenAI models in your code](/guides/find-and-replace-retiring-openai-models), [Move your Agent Builder workflow to the Agents SDK](/guides/move-your-agent-builder-workflow-to-the-agents-sdk), [Turn your Gemini Gems into skills](/guides/turn-your-gemini-gems-into-skills), [Move your OpenAI Evals to Promptfoo](/guides/move-your-openai-evals-to-promptfoo), [Upgrade to Claude SDK 2.0](/guides/upgrade-to-claude-sdk-2-fix-400-errors).

## FAQ

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

---

This guide is from Easy AI How-To (https://easyaihowtos.com). It is independent of the tools named above. Screens and free-plan limits change, so check the date before you rely on a button name.
