GPT Image 1.5 Deprecated: Migrate to 2.6 Before December 1
Replace retiring GPT Image IDs before December 1, 2026. Choose Sunburst or Flare, generate and edit an image through BetterToken, adapt requests for OpenAI, scan repository references with shutdown_date, and verify output quality and actual charges.
Contents

gpt-image-1.5 is deprecated and shuts down on December 1, 2026, alongside gpt-image-1-mini and chatgpt-image-latest. This affects applications, bots, and production pipelines that generate or edit images through OpenAI’s API. Move both operations to gpt-image-2.6-flare or gpt-image-2.6-sunburst, then verify the returned files and charges before switching traffic.
Choose the endpoint before changing the model
Choose the provider, account, and payment route together. An API-compatible request still needs the correct provider’s key.
| Route | Requirements and billing | When to choose it |
|---|---|---|
| OpenAI directly | An OpenAI API account/key, a supported location, and an accepted payment card issued in a supported region. Image requests have text and image token charges. Russia is not on the supported-country list. | You already meet OpenAI’s access and payment conditions, or need its documented model-specific controls. |
| BetterToken Images API | Your own BetterToken account, API Key, and balance. GPT Image 2.6 uses per-request billing. Ruble payments are supported, and its API endpoint is reachable from Russia without a VPN. | You need pay-as-you-go access with 1K still-image output. Payment channels and fees depend on the console at payment time; endpoint reachability does not cover third-party websites, downloads, or logins. |
Generate your first GPT Image 2.6 image through BetterToken
As of 2026-11-23, BetterToken lists both gpt-image-2.6-flare and gpt-image-2.6-sunburst. Its current 2.6 documentation limits still images to 1K; do not carry a 2K or 4K request into this migration unchanged. The model-specific instructions distinguish these limits from the older GPT Image tables.
Create your own key in the console. This OpenAI-compatible API route belongs to your BetterToken account, with billing separate from OpenAI accounts and web subscriptions.
Use Bash with curl and Python 3. Paste the key at the hidden input, then press Enter. The helper saves every returned image and checks its actual file format instead of assuming the response contains PNG bytes.
set +x
read -rs BETTERTOKEN_API_KEY && export BETTERTOKEN_API_KEY
decode_images() {
python3 - "$1" "$2" <<'PY'
import base64
import json
import sys
from pathlib import Path
result = json.loads(Path(sys.argv[1]).read_text(encoding="utf-8"))
items = result.get("data") or []
if not items:
raise SystemExit("No images returned; inspect the response before retrying.")
for index, item in enumerate(items, 1):
encoded = item.get("b64_json")
if not encoded:
raise SystemExit(f"Image {index} has no b64_json")
content = base64.b64decode(encoded.split(",", 1)[-1], validate=True)
if content.startswith(b"\x89PNG\r\n\x1a\n"):
suffix = ".png"
elif content.startswith(b"\xff\xd8\xff"):
suffix = ".jpg"
elif content.startswith(b"RIFF") and content[8:12] == b"WEBP":
suffix = ".webp"
else:
raise SystemExit("Unexpected image format; inspect before using it.")
target = Path(f"{sys.argv[2]}-{index}{suffix}")
target.write_bytes(content)
print(target)
billing = result.get("bettertoken_image_billing")
print(json.dumps(billing) if billing is not None else
"Billing receipt unavailable; check usage records.")
PY
}
curl --fail-with-body --silent --show-error --max-time 650 \
"https://www.bettertoken.ai/v1/images/generations" \
-H "Authorization: Bearer $BETTERTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2.6-flare",
"prompt": "A studio photograph of a green ceramic mug on a white table.",
"size": "1024x1024",
"n": 1,
"response_format": "b64_json",
"output_format": "png"
}' -o generation.json &&
decode_images generation.json generated
This is a synchronous request: the image arrives in the response, without a task-polling step. Success means the saved file opens, contains the requested subject, and has acceptable dimensions. Check bettertoken_image_billing and the console’s matching model, status, and charge; a missing receipt is not evidence of a zero charge. The generation reference documents the response and file-format checks.
For OpenAI’s own route, follow its Create image reference. Send to https://api.openai.com/v1/images/generations with Authorization: Bearer $OPENAI_API_KEY. Collect that key with read -rs OPENAI_API_KEY && export OPENAI_API_KEY. Keep only model and prompt in the JSON body for this first request. Omit size, n, response_format, and output_format. OpenAI’s GPT Image API returns base64 without response_format; use OpenAI’s usage and billing records for this route.
Which model IDs stop accepting requests?
The alias and dated snapshot are included. Neither is a safe fallback for the retiring base model.
OpenAI’s deprecation schedule, checked on 2026-11-23, lists these dates:
| Model IDs | Shutdown date | Status at the check date |
|---|---|---|
gpt-image-1-mini | December 1, 2026 | Deprecated |
gpt-image-1.5, gpt-image-1.5-2025-12-16 | December 1, 2026 | Deprecated |
chatgpt-image-latest | December 1, 2026 | Deprecated |
gpt-image-2, gpt-image-2-2026-04-21 | February 10, 2027 | Deprecated |
gpt-image-1 | October 23, 2026 | Already shut down |
At shutdown, the model stops accepting requests through OpenAI’s standard API. The first three rows recommend gpt-image-2.6-sunburst or gpt-image-2.6-flare. Do not treat gpt-image-2 as a durable replacement: it already has its own retirement date.
The 2.5 variants are not in the December 1 shutdown group and remain listed in the current generation reference. That is not a promise of future availability. For this migration, start with the replacements named in the retirement notice.
Should you choose Sunburst or Flare?
Start with Flare for frequent generation and interactive edits. Test Sunburst first when detailed composition or editing precision determines whether an output is usable. OpenAI describes these as the models’ intended roles, not a guarantee that one wins every workload.
Use your own acceptance tests to reverse that initial choice. For example, a faster first result is not useful when it needs several additional edits.
On OpenAI’s Image API, the complexity control sets planning effort before rendering. Its supported values are low, medium, and high; omitting it selects high. The separate quality field controls rendering quality, and changing complexity has no separate fee. Higher complexity can also increase latency or introduce unwanted changes, so test focused edits at lower settings.
Keep the BetterToken smoke test to its documented fields. Do not assume that every provider forwards every OpenAI-specific control.
Update the image-edit request too
Changing generation alone leaves editing workers on the old model. Replace the edit request’s model field and test with a real reference file.
For the BetterToken route, place a PNG image of a mug at reference.png. Run this in the same Bash session so the key and decode_images function remain available. The editing reference uses multipart form data; let curl -F construct its boundary. The model-specific 2.6 example documents this single-reference request.
curl --fail-with-body --silent --show-error --max-time 650 \
"https://www.bettertoken.ai/v1/images/edits" \
-H "Authorization: Bearer $BETTERTOKEN_API_KEY" \
-F 'model=gpt-image-2.6-flare' \
-F 'prompt=Change the mug to blue. Keep its shape and the background unchanged.' \
-F 'image=@reference.png;type=image/png' \
-F 'size=1024x1024' \
-F 'quality=low' \
-F 'n=1' \
-F 'response_format=b64_json' \
-F 'output_format=png' \
-o edit.json &&
decode_images edit.json edited
Open the saved edit beside the reference. Check the requested color change, preserved shape, background, file format, and actual dimensions. A successful HTTP response alone does not establish acceptable editing quality.
For OpenAI directly, send the multipart request to https://api.openai.com/v1/images/edits with Authorization: Bearer $OPENAI_API_KEY. Keep model, prompt, and image, but set quality=medium, as in OpenAI’s 2.6 edit example. Remove size, n, response_format, and output_format instead of inheriting the BetterToken values.
OpenAI’s edit response reference specifies that GPT Image edits return data[].b64_json by default, without setting response_format. Keep -o edit.json and decode_images edit.json edited to save the returned images. Check charges in OpenAI’s records; the helper’s BetterToken-specific billing message does not apply to this route.
Start with this small request before restoring optional fields from your old wrapper. Add masks, fidelity settings, or other controls only after checking their current support for the selected model and route.
Scan repository references with shutdown_date
OpenAI’s List models endpoint exposes an optional shutdown_date. The value is a date string or null when no shutdown has been announced. A missing date is not a guarantee of permanent availability.
Use Bash, curl, Python 3, and Git. Run both blocks in the same Bash session from anywhere inside the repository. With an eligible OpenAI API account, retrieve the catalog below. A BetterToken key does not authenticate this OpenAI endpoint.
The download targets openai-models.json at the repository root. It exports that absolute path only after a successful 2xx transfer. The scan reads exactly that path, rather than looking in its current directory.
set +x
read -rs OPENAI_API_KEY && export OPENAI_API_KEY
unset OPENAI_MODELS_CATALOG
if repo_root="$(git rev-parse --show-toplevel)"; then
catalog="$repo_root/openai-models.json"
if status="$(curl --fail-with-body --silent --show-error \
"https://api.openai.com/v1/models" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-o "$catalog" -w '%{http_code}')" &&
[[ "$status" == 2?? ]]; then
export OPENAI_MODELS_CATALOG="$catalog"
fi
fi
Run the next block even if the download fails. It checks for a valid data array before merging live dates into the published deadlines. Missing, unreadable, or malformed catalogs leave the published-deadlines scan available.
Without direct OpenAI access, skip the download and run unset OPENAI_MODELS_CATALOG before the scan. Refresh its fixed dates from the public deprecation page. These entries also retain retired models that the live catalog may omit.
python3 - <<'PY'
import json
import os
import re
import subprocess
import sys
from pathlib import Path
deadlines = {
"gpt-image-1": "2026-10-23",
"gpt-image-1-mini": "2026-12-01",
"gpt-image-1.5": "2026-12-01",
"gpt-image-1.5-2025-12-16": "2026-12-01",
"chatgpt-image-latest": "2026-12-01",
"gpt-image-2": "2027-02-10",
"gpt-image-2-2026-04-21": "2027-02-10",
}
root = subprocess.run(
["git", "rev-parse", "--show-toplevel"],
capture_output=True, text=True,
)
if root.returncode:
raise SystemExit(root.stderr.strip())
repo_root = root.stdout.strip()
catalog_path = os.environ.get("OPENAI_MODELS_CATALOG")
if catalog_path:
try:
payload = json.loads(Path(catalog_path).read_text(encoding="utf-8"))
data = payload.get("data") if isinstance(payload, dict) else None
if not isinstance(data, list):
raise ValueError("Expected a data array.")
except (OSError, ValueError):
print("Invalid live catalog; using published deadlines.", file=sys.stderr)
else:
for item in data:
if not isinstance(item, dict):
continue
model, shutdown = item.get("id"), item.get("shutdown_date")
if isinstance(model, str) and model and isinstance(shutdown, str) and shutdown:
deadlines[model] = shutdown
else:
print("No successful catalog download; using published deadlines.", file=sys.stderr)
for model, shutdown in sorted(deadlines.items()):
pattern = (r"(^|[^[:alnum:]_.-])" + re.escape(model)
+ r"([^[:alnum:]_.-]|$)")
match = subprocess.run(
["git", "grep", "-I", "-l", "-E", pattern, "--", "."],
cwd=repo_root, capture_output=True, text=True,
)
if match.returncode not in (0, 1):
raise SystemExit(match.stderr)
if match.returncode == 0:
print(f"{model}: shutdown {shutdown}\n{match.stdout}", end="")
PY
The report prints filenames rather than matching source lines. Review each hit: documentation and test fixtures do not necessarily represent live traffic. The token boundaries avoid reporting gpt-image-2.6-flare as a reference to gpt-image-2.
The scan runs Git’s filename-only search from the repository root, including when started in a subdirectory. git grep searches tracked working-tree files by default. Inspect deployment settings, untracked configuration, saved jobs, and model names assembled at runtime separately. An empty report therefore means no tracked-file matches, not proof that production is migrated.
Teams maintaining several integrations can track Copilot’s separate model-deprecation schedule alongside this direct API inventory.
Verify output quality and charges before rollout
Run representative generation and editing requests before switching production traffic. Use the same prompts, reference files, requested dimensions, and output counts. Record quality settings, elapsed time, accepted outputs, and total charges rather than comparing mismatched defaults. OpenAI’s migration guidance recommends comparing outputs, latency, and cost.
For direct OpenAI calls, account for text input, image input, and image output using current OpenAI pricing. For BetterToken, use its 2.6 per-request billing and the actual receipt, not the older models’ resolution-tier examples. Check current BetterToken prices before budgeting; these billing units do not establish a price winner by themselves.
Compare costs in the same currency using:
cost per accepted image = total charges across all attempts / accepted image count
The cost-per-accepted-image method also applies here, but its older model rates should not be copied into a 2.6 estimate.
If the minimal request fails, inspect the saved response’s error object when available. Check the endpoint/key pairing, account access, balance, model ID, and request fields. For OpenAI, also check its supported countries and payment-card requirements; changing the prompt will not resolve those conditions.
On BetterToken, a timeout or ambiguous server error does not prove that generation was uncharged. Do not automatically repeat a generation or edit POST. Check consumption records and retain any returned request ID before deciding whether to resend.
After deployment, inspect fresh generation and editing records for the selected 2.6 ID. Update fallback settings and queued jobs that still store a retiring ID. Keep rollback traffic on a tested, available model rather than restoring chatgpt-image-latest.