How to Use GPT Image 2 in ChatGPT: Prompts, Edits, Valid Sizes and the 2.6 Switch

OpenAI’s ChatGPT release notes introduced a new image model, ChatGPT Images 2.6, on 4 November 2026, and OpenAI’s deprecations page lists the API model gpt-image-2 as deprecated with a shutdown on 10 February 2027. “GPT Image 2” is therefore no longer a safe label for the newest image model in ChatGPT. The prompt and edit steps below use the release notes’ own wording, and the API sections show where the model string changes. For the 2.6 model itself, see our ChatGPT Images 2.6 launch report.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

Two names, two pages: where gpt-image-2 and Images 2.6 stand on 13 November

The release-note entry describes Images 2.6 as “Our new image generation model creates images faster and is better at preserving details across edits, like a character’s outfit when you change the background.” The deprecations page, for its part, names the replacement models gpt-image-2.6-sunburst and gpt-image-2.6-flare. This guide treats none of these names as a synonym for another.

API model stringStatus on 13 November 2026ShutdownReplacement OpenAI lists
gpt-image-2Deprecated10 February 2027gpt-image-2.6-sunburst or gpt-image-2.6-flare
gpt-image-2-2026-04-21Deprecated10 February 2027gpt-image-2.6-sunburst or gpt-image-2.6-flare

If an older script still names dall-e-2 or dall-e-3, note that OpenAI’s API changelog says both were removed from the API on 12 May 2026.

A first image with exact text: the request and the prompt order

You need a ChatGPT account to follow along; OpenAI’s ChatGPT Plus help page gives that plan as $20/month. In ChatGPT you ask for an image in an ordinary chat message (plan availability and the upload controls are not covered by the sources used here, so check OpenAI’s Help Center for both); the release notes’ own wording for the GIF feature is “Ask for a looping animation”. A workable order for the description is subject, setting, style, lighting, composition, then lens and colour treatment, because naming each element leaves the model less to guess.

Weak prompt:
"a futuristic city at night"

Structured prompt:
"An elevated night skyline of a futuristic city, glass towers with
warm amber window lights, low fog at street level, shot from a
rooftop looking down a wide avenue, cinematic lighting, shallow
depth of field, wide-angle lens look, muted teal and orange grade"

For text inside the image, Runway’s model page advises putting the exact headlines, taglines and labels in the prompt and being direct about layout. Runway also calls GPT Image 2 “the strongest choice for outputs where in-image text needs to be accurate and legible”, which is a vendor claim about its own catalogue, not a measured ranking. Put the literal words in quotation marks, keep them short, and close with “no other text” so the model adds no decorative lettering.

"A minimalist poster, dark navy background, the words 'SUMMER SALE'
in large bold white sans-serif letters centered near the top, a
single line of smaller yellow text below reading 'Free delivery on
all orders', clean flat design, no other text"

Changing one photo, reusing a subject and making a GIF

To edit, upload the photo with your message and describe the change in the same message. Say what must stay fixed as well as what changes: an instruction that names position, lighting and shadow direction leaves the model less to reinterpret.

Attached: photo of a product on a white studio background
"Replace the plain white background with a warm wooden kitchen counter,
keep the product's position, lighting and shadow direction unchanged.
Add soft natural window light from the left."

Two features are described as ChatGPT features in the same release notes. Saved reference images let you reuse a photo in later chats: save your dog as Pepper, then ask for a watercolor portrait of @Pepper without uploading the photo again. GIF creation lets you ask for a looping animation, or upload a sketch and ask for the character to wave, then adjust playback speed and share the result.

For a set that must share a look, write one style block and paste it unchanged at the end of every prompt in the set.

Style block (reuse verbatim):
"...flat vector illustration style, muted pastel palette of sage green
and terracotta, thin black outlines, soft grain texture, consistent
character proportions, no gradients"

Hosts that wrap the model accept several references in one edit: Runway takes a prompt plus up to 16 optional reference images and an optional scene sketch drawn on the canvas, and Cloudflare’s listing says its API accepts up to 16 base64 strings in one edit and blends the references, which it suggests for combining subjects, styles or reference shots.

Which output sizes pass: 1920×1080 fails, 1920×1088 works

Exact pixel sizes are documented for the API and for hosts that expose it. OpenAI’s image guide says the newer image models support custom dimensions as WIDTHxHEIGHT strings. Cloudflare’s GPT Image 2 page spells out the limits for its hosted copy:

  • each edge at most 3840 pixels;
  • both edges a multiple of 16;
  • aspect ratio between 1:3 and 3:1;
  • total pixels between 655,360 and 8,294,400.

The Azure Foundry catalog gives the same multiple-of-16 and 3:1 rules but says the maximum edge “must be less than 3840px”, where Cloudflare says at most 3840. The two hosts therefore disagree about any size with a 3840 edge. The table below applies these rules, by arithmetic, to 18 common sizes. 1920×1080 fails because 1080 divided by 16 is 67.5; 1920×1088 divides cleanly (1088 divided by 16 is 68) and is the nearest pass.

SizePixelsRatioResultRule broken
1024×10241,048,5761:1PassNone
1280×720921,60016:9PassNone
1536×8641,327,10416:9PassNone
864×15361,327,1049:16PassNone
1024×15361,572,8642:3PassNone
1680×7201,209,6007:3PassNone
1920×10882,088,96030:17PassNone
1200×640768,00015:8PassNone
2048×20484,194,3041:1PassNone
1920×10802,073,60016:9Fail1080 is not a multiple of 16
1080×19202,073,6009:16Fail1080 is not a multiple of 16
1200×630756,00040:21Fail630 is not a multiple of 16
1024×576589,82416:9FailBelow the 655,360 pixel floor
800×800640,0001:1FailBelow the 655,360 pixel floor
2560×6401,638,4004:1FailRatio wider than 3:1
3840×24009,216,0008:5FailAbove the 8,294,400 pixel cap
3840×12804,915,2003:1Depends on hostEdge of 3840: allowed by Cloudflare, excluded by Azure
3840×21608,294,40016:9Depends on hostEdge of 3840 as above; pixels exactly at the cap

On the chart below, 1024×576 misses the floor by 65,536 pixels and 800×800 by 15,360, while 3840×2400 overshoots the cap by 921,600. A size inside the window can still fail the multiple-of-16 rule, so use the table as the full check.

Total pixels of common sizes against the 655,360 floor and 8,294,400 cap
Pixel counts for 13 requested sizes, with the documented floor and cap as their own bars: 1024×576 and 800×800 fall short, 3840×2400 overshoots, and 3840×2160 lands exactly on the cap. Source: Limits from Cloudflare's GPT Image 2 page; pixels computed as width x height.

If you would rather not do pixel arithmetic, Runway’s menu offers 1K, 2K and 4K resolution, each at Low, Medium or High quality, and ten aspect ratios from 21:9 to 9:16. Runway states that GPT Image 2 is available on all paid and Enterprise plans.

The sources used here document no pixel-size control in ChatGPT, so name the format in the prompt. The sizes below are the ones from the check table that pass.

UseRatioPhrase to add to the promptSize that passes the check
Instagram or square post1:1“square format”1024×1024
YouTube thumbnail or blog header16:9“widescreen 16:9 format”1536×864
Phone wallpaper or Story9:16“vertical 9:16 format”864×1536
Print poster2:3“portrait 2:3 poster format”1024×1536
Website hero banner7:3“ultra-wide cinematic 21:9 banner format”1680×720

Calling the model from code: change the model string before 10 February 2027

From 13 November 2026 to 10 February 2027 is 89 days: 17 remain in November, then 31 in December, 31 in January and 10 in February. The migration is a one-line change if the model name lives outside your code, which the scripts below do by reading it from an environment variable. Take the name from OpenAI’s model page and the deprecations table above.

export OPENAI_API_KEY="sk-your-key-here"
export IMAGE_MODEL="your-model-name"
pip install --upgrade openai

Quality is the second thing to revisit. As of 13 November 2026 OpenAI’s image guide lists the values low, medium, high, xhigh, max and auto for the newer image models, so check which list applies to the model you call: gpt-image-2 itself takes only low, medium and high, while the replacement models take the longer list.

The first script checks the size against the limits above before spending a request, reads the key and model from the environment, and reports only the error type if the call fails, so the key never reaches your logs. Save it as make_image.sh, make it executable and run ./make_image.sh 1920x1088; it writes reading_nook.png. The size constants follow Cloudflare’s documented limits; edit them if the model you move to documents different ones.

#!/bin/sh
set -eu

: "${OPENAI_API_KEY:?Set OPENAI_API_KEY before running}"
: "${IMAGE_MODEL:?Set IMAGE_MODEL to the model name on OpenAI's model page}"
SIZE="${1:-1920x1088}"
QUALITY="${QUALITY:-auto}"
PROMPT="${PROMPT:-A cozy reading nook by a window, sage green armchair, wooden shelves, warm afternoon light, shallow depth of field}"
export SIZE QUALITY PROMPT

python3 - <<'PY'
import base64
import os
import sys

from openai import OpenAI

width, height = (int(v) for v in os.environ["SIZE"].split("x"))
problems = []
if max(width, height) > 3840:
    problems.append("edge over 3840")
if width % 16 or height % 16:
    problems.append("edge not a multiple of 16")
if max(width, height) > 3 * min(width, height):
    problems.append("ratio wider than 3:1")
if not 655360 <= width * height <= 8294400:
    problems.append("pixels outside 655360 to 8294400")
if problems:
    sys.exit(f"{width}x{height} rejected: " + ", ".join(problems))

client = OpenAI()
try:
    result = client.images.generate(
        model=os.environ["IMAGE_MODEL"],
        prompt=os.environ["PROMPT"],
        size=f"{width}x{height}",
        quality=os.environ["QUALITY"],
    )
except Exception as exc:
    sys.exit(f"Request failed: {type(exc).__name__}")

image_bytes = base64.b64decode(result.data[0].b64_json)
with open("reading_nook.png", "wb") as f:
    f.write(image_bytes)
print("Saved reading_nook.png")
PY

For transparent PNGs, Cloudflare’s listing for GPT Image 2 says to “use openai/gpt-image-1.5”.

Editing a photo from code

OpenAI’s image generation guide lists “Edits” as modifying existing images using a new prompt, either partially or entirely. That mirrors the chat workflow in script form: a source image plus a text instruction. The script below applies the kitchen-counter edit from earlier to a file called product_photo.jpg and saves product_photo_edited.png. For a folder of photos, call the same request inside a loop.

import base64
import os
import sys

from openai import OpenAI

client = OpenAI()
try:
    with open("product_photo.jpg", "rb") as source:
        result = client.images.edit(
            model=os.environ["IMAGE_MODEL"],
            image=source,
            prompt=(
                "Replace the plain white background with a warm wooden kitchen counter, "
                "keep the product's position, lighting and shadow direction unchanged, "
                "add soft natural window light from the left"
            ),
        )
except Exception as exc:
    sys.exit(f"Request failed: {type(exc).__name__}")

image_bytes = base64.b64decode(result.data[0].b64_json)
with open("product_photo_edited.png", "wb") as f:
    f.write(image_bytes)
print("Saved product_photo_edited.png")

What one request costs: the token formula and the Batch half price

The API bills gpt-image-2 per million tokens, with image input, text input and image output priced separately. OpenAI’s pricing page lists the standard rates, and the Batch rates in the API pricing docs are exactly half of each line, cached lines included. Rates for the 2.6 model are in our launch report.

To price your own job, set the three rate constants to the dollars per 1M tokens on the pricing page for the model you call, multiply by the token counts you expect and divide by one million. Because Batch halves every line, it halves the total whatever the mix of image and text tokens.

standard = (image_in * IMAGE_IN + text_in * TEXT_IN + image_out * IMAGE_OUT) / 1000000
batch    = standard / 2

Read the rates for the replacement models on OpenAI’s pricing page before budgeting past February; Cloudflare’s listing is a host price list, not OpenAI’s.

Queueing many images through Batch

OpenAI’s Batch guide says “Each batch completes within 24 hours (and often more quickly)”, so Batch suits work that does not need an immediate reply. The workflow has four steps: write one request per line to a JSONL file, upload the file through the Files endpoint, create a batch job that references it, and poll the status until it reports completed. The output file has one result per line, matched to your custom_id values. The script below turns every .txt file in a prompts folder into one request; check the url value against the Batch guide before a large run.

import base64
import json
import os
import time

from openai import OpenAI

client = OpenAI()
MODEL = os.environ["IMAGE_MODEL"]
BATCH_FILE = "batch_requests.jsonl"


def build_batch_file():
    count = 0
    with open(BATCH_FILE, "w") as out:
        for filename in sorted(os.listdir("prompts")):
            if not filename.endswith(".txt"):
                continue
            with open(os.path.join("prompts", filename)) as p:
                prompt = p.read().strip()
            request = {
                "custom_id": filename,
                "method": "POST",
                "url": "/v1/images/generations",
                "body": {"model": MODEL, "prompt": prompt, "size": "1920x1088", "quality": "medium"},
            }
            out.write(json.dumps(request) + "\n")
            count += 1
    return count


if build_batch_file() == 0:
    raise SystemExit("No .txt prompt files found in prompts/")

with open(BATCH_FILE, "rb") as f:
    uploaded = client.files.create(file=f, purpose="batch")

batch = client.batches.create(
    input_file_id=uploaded.id,
    endpoint="/v1/images/generations",
    completion_window="24h",
)
while batch.status not in ("completed", "failed", "expired", "cancelled"):
    time.sleep(60)
    batch = client.batches.retrieve(batch.id)
print("Batch status:", batch.status)

if batch.status == "completed":
    content = client.files.content(batch.output_file_id)
    for line in content.text.splitlines():
        row = json.loads(line)
        if not row.get("response"):
            continue
        image_bytes = base64.b64decode(row["response"]["body"]["data"][0]["b64_json"])
        with open(row["custom_id"].replace(".txt", ".png"), "wb") as f:
            f.write(image_bytes)

Which route fits the job

NeedRouteReason
A one-off image, an edit, a reused subject or a GIFChatGPTThe release notes describe saved @references and GIF creation as ChatGPT features.
An exact pixel sizeOpenAI API, or Cloudflare Workers AICustom WIDTHxHEIGHT strings; run the size table first.
A scripted edit of a photoOpenAI API editsThe image guide lists Edits as modifying existing images using a new prompt.
Resolution and ratio from a menuRunway1K, 2K and 4K with three quality levels and ten ratios; paid and Enterprise plans.
A transparent PNGopenai/gpt-image-1.5 on CloudflareCloudflare’s GPT Image 2 listing says to use openai/gpt-image-1.5 for transparent PNGs.
Hundreds of assets with no deadlineOpenAI BatchHalf the standard rate on every line; each batch completes within 24 hours.
A Microsoft-hosted deploymentAzure FoundryThe catalog still calls gpt-image-2 the latest model while OpenAI lists it as deprecated, so confirm your deployment’s retirement date.

Other generators are compared in our AI image generator comparison.

API users should move the model name into an environment variable, re-run the size check and the quality value against the replacement’s own page, and finish before 10 February 2027.

Elias Virtanen

Elias Virtanen

Games and consoles

Elias Virtanen covers games and consoles for Tech Insider: console and handheld hardware, game releases, emulators and the business of the games industry. His comparisons start from the makers' specifications and published independent results, and he says plainly what the evidence supports.

View all articles