Skip to main content
AnyAIGC

OpenAI · gpt-image-2

GPT Image 2 APIThe model behind ChatGPT Images 2.0

GPT Image 2, released in April 2026, is the previous generation at the same price as 2.5, about 92% off list.

GPT Image 2 pricing
Per tokenImage output, per 1M tokens$2.4710 $30.00
Per image1K output; 2K / 4K is $0.0154. Flat at any quality$0.0124 / image

USD. The struck-through price is OpenAI list price. Both are the lowest prices in the model catalog; live prices are shown there.

A newer version is available: OpenAI has since released GPT Image 2.5 and 2.6. gpt-image-2 still works and has no deprecation notice. For new projects, take a look at GPT Image 2.6 Flare.

  • Model ID gpt-image-2
  • Max size 3840×2160
  • Concurrency Unlimited
  • Enterprise Self-service invoices
Chinese text: Comic page with Chinese dialogue, posters and chats (generated with ChatGPT Images 2.0)
Macro detail: A mound of rice grains on burlap (generated with ChatGPT Images 2.0)
Period photo: A school computer lab from the early 2000s (generated with ChatGPT Images 2.0)

Sample images are from OpenAI's "Introducing ChatGPT Images 2.0" post, generated with ChatGPT Images 2.0. Images © OpenAI. Read the post ↗

GPT Image 2: a leap in text rendering and realism

OpenAI launched ChatGPT Images 2.0 on April 21, 2026, and released gpt-image-2 in the API at the same time (snapshot gpt-image-2-2026-04-21). OpenAI describes it as fast, high-quality image generation and editing with flexible sizes. Image inputs are always processed at high fidelity, so input_fidelity is neither needed nor accepted.

Quality levels are low, medium, high and auto. Sizes are flexible as long as the longest edge is at most 3840px, both sides are multiples of 16, the aspect ratio is no wider than 3:1, and the total pixel count is between 655,360 and 8,294,400. Common sizes include 1024×1024, 1536×1024, 1024×1536, 2048×2048, 2048×1152 and 3840×2160.

OpenAI has since released GPT Image 2.5 (Sunburst and Flare), and its guide recommends 2.5 for new integrations. gpt-image-2 still works in the API. 2.5 adds xhigh and max quality, while gpt-image-2 offers low, medium, high and auto. On AnyAIGC both cost the same, so existing integrations have no cost reason to migrate. For per-image billing, use gpt-image-2-c at $0.0124 per 1K image.

Released
2026-04-21
Performance (OpenAI)
Higher
Quality
low – high
Max size
3840×2160
Image input
Always high fidelity
Endpoints
generations · edits

GPT Image 2 API pricing

Billed per token at fixed rates, with no subscription or monthly fee. Text input, image input and image output all cost about 8% of the OpenAI list price.

  • Token billingPrompt text, reference images and output priced separately
  • 1–10 images per callSet with the n parameter
  • Unlimited concurrencyOn by default for every account
  • One balanceWorks across 300+ models
GPT Image 2 token pricing (USD per 1M tokens)
ItemAnyAIGCOpenAI listYou save
Text inputPrompt text$0.4118$5.0092%
Image inputReference images for edits$0.6589$8.0092%
Image outputGenerated images$2.4710$30.0092%
Cached text inputWhen upstream reports cache usage$0.1647$1.2587%
Cached image inputWhen upstream reports cache usage$0.2636$2.0087%

What one image costs

Estimated from OpenAI's per-image output prices for GPT Image 2, scaled by the ratio of the AnyAIGC output rate to the list rate. Input tokens are not included.

Estimated image output cost per image for GPT Image 2 (USD), scaled from OpenAI's per-image list prices
Quality1024×10241024×15361536×1024
low$0.0005List $0.006$0.0004List $0.005$0.0004List $0.005
medium$0.0044List $0.053$0.0034List $0.041$0.0034List $0.041
high$0.0174List $0.211$0.0136List $0.165$0.0136List $0.165

Per-image billing: gpt-image-2-c

AnyAIGC also offers a per-image version with the same endpoints. Just switch model to the -c ID. Each image has a flat price at any quality level: $0.0124 per image for 1K output (such as 1024×1024, 1536×1024 or 1024×1536) and $0.0154 per image for 2K and 4K output. Each request returns one image, and n, mask and transparent backgrounds are not supported.

Per-image pricing
Model1K output2K / 4K output
gpt-image-2-c$0.0124 / image$0.0154 / image

Compared with token billing at 1024×1024, counting image output tokens only.

Cost per 1024×1024 image (USD)
QualityPer image (1K)Token-billedOpenAI listVerdict
low$0.0124$0.0005$0.0060Token-billed is cheaper
medium$0.0124$0.0044$0.0530Token-billed is cheaper
high$0.0124$0.0174$0.2110Per-image is cheaper

Prices in USD, charged per successful request. The table shows the lowest price in the model catalog; custom sizes, transparent backgrounds and similar options cost more. Cached rates apply only when upstream reports cache usage. See the model catalog for live prices.

Cost examples

Calculated from the rates above, counting image output tokens only and excluding prompt text.

  • E-commerce product shots in bulk

    1,000 images at 1024×1024, quality=medium, OpenAI list $0.053 per image scaled by the $2.4710 / 1M output rate

    $4.37

    List $53.00

  • High-quality banners

    100 images at 1536×1024, quality=high, OpenAI list $0.165 per image scaled by the $2.4710 / 1M output rate

    $1.36

    List $16.50

  • Quick drafts

    1,000 images at 1024×1024, quality=low, OpenAI list $0.006 per image scaled by the $2.4710 / 1M output rate

    $0.49

    List $6.00

How many images the 5M free tokens cover

New accounts get 5M free tokens, worth about $0.5. At the prices above, this is how many images each quality and size covers (rounded down).

GPT Image 2: Images you can generate with the free credit
Quality1024×10241024×15361536×1024
low101112141214
medium114148148
high283636

Counts cover image output tokens only. Prompt text and reference images add input tokens, so you will get slightly fewer. The flat per-image gpt-image-2-c version costs $0.0124 at 1K (about 40 images) and $0.0154 at 2K / 4K (about 32 images). Live prices are in the model catalog.

What GPT Image 2 is good for

  • Chinese text: Comic page with Chinese dialogue, posters and chats (generated with ChatGPT Images 2.0)
    01 · CJK text

    Posters and comics with Chinese text

    Chinese headlines, dialogue and signage render cleanly, which helps for China-market creative.

  • Macro detail: A mound of rice grains on burlap (generated with ChatGPT Images 2.0)
    02 · Photoreal

    Photography-style assets

    Macro, street and period photos with a texture close to real shots.

  • Explainer graphic: Cantor's diagonal argument, explained visually (generated with ChatGPT Images 2.0)
    03 · Education

    Explainers and course visuals

    Math proofs, science explainers and slide illustrations with a clear structure.

  • Period photo: A school computer lab from the early 2000s (generated with ChatGPT Images 2.0)
    04 · Existing integrations

    Keep running on gpt-image-2

    Same token price as 2.5, so an integration already built on gpt-image-2 needs no migration. A low-quality image costs less than a tenth of a cent.

Get started with the GPT Image 2 API in three steps

  1. Sign up: create an AnyAIGC account. New accounts get 5 million tokens of trial credit, and top-ups start at $1.
  2. Create an API key: generate a key in the console and store it in the ANYAIGC_API_KEY environment variable.
  3. Send a request: call https://anyaigc.ai/v1/images/generations with model set to gpt-image-2. Use /v1/images/edits to edit images.
POST /v1/images/generations
import os
import requests

API_KEY = os.environ["ANYAIGC_API_KEY"]

resp = requests.post(
    "https://anyaigc.ai/v1/images/generations",
    headers={"Authorization": "Bearer " + API_KEY},
    json={
        "model": "gpt-image-2",
        "prompt": "Product still life: matte black mechanical keyboard, studio lighting, no text",
        "size": "1536x1024",
        "quality": "medium",
        "format": "webp",
        "response_format": "url",
        "n": 1,
    },
    timeout=300,
)
resp.raise_for_status()
image_url = resp.json()["data"][0]["url"]

# Download the image
with open("output.webp", "wb") as f:
    f.write(requests.get(image_url, timeout=120).content)
print("Saved output.webp")
POST /v1/images/generations
curl https://anyaigc.ai/v1/images/generations \
  -H "Authorization: Bearer $ANYAIGC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "Product still life: matte black mechanical keyboard, studio lighting, no text",
    "size": "1536x1024",
    "quality": "medium",
    "format": "webp",
    "response_format": "url",
    "n": 1
  }'
POST /v1/images/edits
import os
import requests

API_KEY = os.environ["ANYAIGC_API_KEY"]

# Upload several reference images (fewer than 16, 50MB total) by repeating the image field
files = [
    ("image", open("product.png", "rb")),
    ("image", open("background.png", "rb")),
]
# Inpainting: transparent areas of the mask are redrawn (PNG, under 4MB, same size as the image)
# files.append(("mask", open("mask.png", "rb")))

resp = requests.post(
    "https://anyaigc.ai/v1/images/edits",
    headers={"Authorization": "Bearer " + API_KEY},
    data={
        "model": "gpt-image-2",
        "prompt": "Place the product from the first image into the scene from the second image. Keep the product and its label text unchanged.",
        "size": "1024x1024",
        "quality": "high",
    },
    files=files,
    timeout=300,
)
resp.raise_for_status()
print(resp.json()["data"][0]["url"])

Want a flat price per image? Change model to gpt-image-2-c ($0.0124 per 1K image, $0.0154 at 2K/4K) and drop n and mask.

The response returns data[0].url; pass response_format=b64_json to get base64. Prompts can be up to 1000 characters. See the generations docs for every parameter.

GPT Image 2 API for teams and enterprises

Design teams, e-commerce companies and content platforms can buy through a standard business process, with support for finance, legal and engineering.

  • Invoices

    Issue them yourself

    Issue an invoice in the console for the amount you actually topped up, whenever you need one.

  • Dedicated support

    Account and technical contacts

    Work with a dedicated support contact and technical engineer for onboarding, migration and troubleshooting.

Payment methods
  • WeChat Pay
  • Alipay
  • USDT
  • Credit card

Why teams trust AnyAIGC

Trial credit, top-ups, refunds, data handling and billing, spelled out up front.

  • 5M free tokens to start

    New accounts get trial credit, so you can test before you top up.

  • Top up from $1, refundable

    Top up from $1. Unused balance can be refunded with no fee.

  • Official channels, real models

    Requests go to official model channels, never cheaper or reverse-engineered substitutes.

  • No retention, no training

    Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.

  • Transparent billing, spend caps

    See tokens and cost for every request in the console, and set a quota on each API key.

  • 24/7 support

    Contact support any time about integration, billing or incidents.

Specs and how to choose it

OpenAI describes GPT Image 2 as its state-of-the-art image model for fast, high-quality generation and editing, with flexible image sizes and high-fidelity image inputs.

It takes text and image input and returns images; audio and video are not supported. The official ratings are higher performance and medium speed.

The pinned snapshot listed on the official page is gpt-image-2-2026-04-21.

This page lists Text input at $0.4118, Image input at $0.6589, Image output at $2.4710, Cached text input at $0.1647, matching the pricing table above.

Compared with gpt-image-2.5-flare: OpenAI says GPT-Image-2.5 Flare produces higher-quality images at 50% lower latency than GPT-Image-2.

Specs come from the vendor's official documentation (developers.openai.com). The table on this page is the price, and the model catalog is authoritative for live rates.

GPT Image 2 API FAQ

How much does the GPT Image 2 API cost?

On AnyAIGC, gpt-image-2 is billed per token: $0.4118 for text input, $0.6589 for image input and $2.4710 for image output per 1M tokens, with cached text input at $0.1647 and cached image input at $0.2636. OpenAI lists $5.00, $8.00 and $30.00. A 1024×1024 image at medium quality costs about $0.0044 in image output (about $0.0530 at list). See the model catalog for live prices.

Can I still use gpt-image-2? Should I switch to GPT Image 2.5?

Yes, it still works. OpenAI's guide recommends GPT Image 2.5 for new integrations, but there is no deprecation notice for gpt-image-2 and it runs normally on AnyAIGC. GPT Image 2.5 adds xhigh and max quality, while gpt-image-2 offers low, medium, high and auto. Both cost the same on AnyAIGC (image output $2.4710 per 1M tokens), so existing integrations have no cost reason to migrate. Switching only means changing the model field, so you can run the same prompts against 2.5 Flare and compare.

Which sizes, quality levels and formats are supported?

Common sizes are 1024×1024, 1536×1024, 1024×1536, 2048×2048, 2048×1152, 3840×2160, 2160×3840 and auto. Custom sizes work as long as the longest edge is at most 3840px, both sides are multiples of 16, the aspect ratio is no wider than 3:1, and the total pixel count is between 655,360 and 8,294,400. Quality levels are low, medium, high and auto. Pick png, jpeg or webp with the format field, and get back an image URL or base64. The lowest price covers the preset sizes above; custom sizes and transparent backgrounds cost more, as listed in the model catalog.

How do I do image-to-image edits and inpainting?

Call POST /v1/images/edits with multipart/form-data. The image field accepts fewer than 16 reference images, 50MB in total. For inpainting, also send a mask: its transparent areas are what gets redrawn, and it must be a PNG under 4MB with the same size as the first image. See the edits docs for parameters.

Is there a per-image version? How is gpt-image-2-c priced?

Yes. gpt-image-2-c on AnyAIGC is the per-image version of GPT Image 2. It uses the same endpoints; only the model field changes. Each image has a flat price at any quality: $0.0124 for 1K output and $0.0154 for 2K and 4K output. Each request returns one image, and n, mask and transparent backgrounds are not supported. Token billing costs less at low and medium quality (a medium 1024×1024 image is about $0.0044); at high quality it is about $0.0174, so -c is cheaper there.

Can I get an invoice from AnyAIGC?

Yes. You can issue invoices yourself in the console, for the amount you actually topped up.

Which payment methods are supported?

You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.

Is there free trial credit for new users?

Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.

Can I get a refund on my balance?

Yes. Unused balance can be refunded with no fee. Contact support to start a refund.

Are these the real models? Is my data safe?

Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.

Can I use the generated images commercially?

Usage rights and content policies follow OpenAI's official terms. AnyAIGC only provides API access and adds no extra restrictions on how you use the output. If an image involves real people's likenesses or third-party trademarks, make sure you have the rights you need.

Start building with GPT Image 2

New accounts get 5 million tokens of trial credit. Generate a few images and see the results.