Skip to main content
AnyAIGC

OpenAI · GPT Image

GPT Image APIgpt-image-2 through GPT Image 2.6

One API key for every OpenAI GPT Image model, from $0.0124 per image.

GPT Image pricing
Per tokenImage output, per 1M tokens$2.4710 $30.00
Per image$0.0124 – $0.0206 depending on the model, flat at any qualityfrom $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.

  • Models 5 + per-image
  • Endpoints /v1/images/generations · edits
  • Max size 3840×2160
  • Concurrency Unlimited
  • Enterprise Self-service invoices
Collage poster: Art, science, maps and architecture in one collage (generated with ChatGPT Images 2.0)
Store launch poster: Opening poster for a matcha cafe (generated with ChatGPT Images 2.0)
Candid portrait: A glance back at a coastal lookout (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 API pricing

The 5 models are billed per token, so cost varies with size and quality. Each also has a per-image -c version with a flat price.

  • Two billing modesPer token or flat per image
  • One keyWorks for the whole lineup
  • Unlimited concurrencyOn by default for every account
  • One balanceWorks across 300+ models
GPT Image pricing (USD)
ModelText input / 1MImage input / 1MImage outputOff list
Token-billed · vs OpenAI list: text input $5.00, image input $8.00, image output $30.00 / 1M
GPT Image 2.6 Sunburstgpt-image-2.6-sunburst$0.4118$0.6589$2.471092%
GPT Image 2.6 Flaregpt-image-2.6-flare$0.4118$0.6589$2.471092%
GPT Image 2.5 Sunburstgpt-image-2.5-sunburst$0.4118$0.6589$2.471092%
GPT Image 2.5 Flaregpt-image-2.5-flare$0.4118$0.6589$2.471092%
GPT Image 2gpt-image-2$0.4118$0.6589$2.471092%
Per image (-c versions)
GPT Image 2.6 Sunburst-Cgpt-image-2.6-sunburst-c1K/2K/4K $0.0206$0.0206 / image-
GPT Image 2.6 Flare-Cgpt-image-2.6-flare-c1K/2K/4K $0.0206$0.0206 / image-
GPT Image 2.5 Sunburst-Cgpt-image-2.5-sunburst-c1K $0.0165 · 2K/4K $0.0206from $0.0165 / image-
GPT Image 2.5 Flare-Cgpt-image-2.5-flare-c1K $0.0165 · 2K/4K $0.0206from $0.0165 / image-
GPT Image 2-Cgpt-image-2-c1K $0.0124 · 2K/4K $0.0154from $0.0124 / image-

Choose by use case

Which GPT Image model to use
If you needUseWhy
GIFs, SVG icons, markup edits2.6 Flare / 2.6 SunburstOnly 2.6 supports GIF and SVG output and markup-guided edits
Consistent characters or products across edits2.6 SunburstOpenAI says it keeps edits more consistent at medium and high quality
Retouching, edits, commercial posters2.5 SunburstOpenAI positions it as the most precise editor, with xhigh and max quality
Real-time generation in your product, bulk jobs2.5 FlareRated Very fast by OpenAI, same price as Sunburst
Existing gpt-image-2 integrationsGPT Image 2Same token price as 2.5 (about 92% off list), so there is no cost reason to migrate. 2.5 adds xhigh and max quality
A fixed, predictable price per image on 2.52.5 Sunburst-c / Flare-cFlat $0.0165 per 1K image at any quality. Token billing costs less in most settings; -c is cheaper only at max quality in some sizes (about $0.0174 token-billed at 1024×1024)
A fixed price per image on gpt-image-2GPT Image 2-c$0.0124 per 1K image at any quality. Cheaper than token billing only at high quality (about $0.0174 at 1024×1024)

Prices in USD. Token rates are the lowest listed in the model catalog; custom sizes, transparent backgrounds and similar options may cost more. -c prices: gpt-image-2.6-sunburst-c and flare-c $0.0206 per image at 1K, 2K or 4K; gpt-image-2.5-sunburst-c and flare-c $0.0165 per 1K image and $0.0206 per 2K/4K image; gpt-image-2-c $0.0124 and $0.0154. See the model catalog for live prices.

Cost examples

Calculated from the rates above and output tokens from OpenAI's official calculator, excluding prompt text tokens.

  • E-commerce product shots in bulk

    1,000 images at 1536×1024, quality=medium, about 343 output tokens each × $2.4710 / 1M

    $0.85

    List $10.29

  • 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

  • 1,000 product images

    1,000 × $0.0124, same price at any quality

    $12.40

    1K output

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: Images you can generate with the free credit
ModelToken billing (medium, 1024×1024)Per-image -c version (1K)
GPT Image 2.6 Sunburst / Flare13924
GPT Image 2.5 Sunburst / Flare46030
GPT Image 211440

Counts cover image output tokens only. Prompt text and reference images add input tokens, so you will get slightly fewer. Live prices are in the model catalog.

Where teams use it

  • Store launch poster: Opening poster for a matcha cafe (generated with ChatGPT Images 2.0)
    01 · E-commerce

    Product shots and lifestyle scenes

    Upload a product photo and swap the background or scene with the edits endpoint, while labels and packaging text stay sharp.

  • Travel campaign: Multi-panel brochure for a Korean hanok stay (generated with ChatGPT Images 2.0)
    02 · Marketing

    Posters, banners and ad creative

    Generate finished posters with headlines, body copy and brand elements, up to 3840×2160.

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

    Infographics and explainers

    Science explainers, academic posters and data cards with layout and text right on the first try.

  • Multilingual type: Poster mixing Japanese, Arabic, Korean and more (generated with ChatGPT Images 2.0)
    04 · Localization

    Multilingual versions

    Renders Chinese, Japanese, Korean, Arabic and more, so one design can ship in several languages quickly.

Get started with the GPT Image 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.5-flare. 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.5-flare",
        "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.5-flare",
    "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.5-sunburst",
        "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"])

To switch models, change only the model field: gpt-image-2.6-sunburst, gpt-image-2.6-flare, gpt-image-2.5-sunburst, gpt-image-2.5-flare, gpt-image-2, or a per-image -c version. Do not send n or mask to -c versions.

The output format field is format (png / jpeg / webp), and the response returns data[0].url. Pass response_format=b64_json to get base64 instead. See the generations docs and edits docs for every parameter.

GPT Image 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.

GPT Image API FAQ

How much does the GPT Image API cost?

Token-billed models: GPT Image 2.6 Sunburst and Flare cost $0.4118 for text input, $0.6589 for image input and $2.4710 for image output per 1M tokens, about 92% off list. GPT Image 2.5 Sunburst and Flare cost $0.4118 for text input, $0.6589 for image input and $2.4710 for image output per 1M tokens, about 92% off list. GPT Image 2 costs $0.4118, $0.6589 and $2.4710, about 92% off list. Per-image -c versions: gpt-image-2.6-sunburst-c and gpt-image-2.6-flare-c are $0.0206 per image at 1K, 2K or 4K; gpt-image-2.5-sunburst-c and gpt-image-2.5-flare-c are $0.0165 per 1K image and $0.0206 per 2K/4K image; gpt-image-2-c is $0.0124 and $0.0154. See the model catalog for live prices.

What is the difference between Sunburst, Flare and GPT Image 2?

GPT Image 2.6, released by OpenAI in November 2026, is the newest generation. It also comes as Sunburst (more detail, steadier multi-round edits) and Flare (faster), and adds GIF and SVG output, markup-guided edits and a complexity setting. Sunburst and Flare in GPT Image 2.5 were released in September 2026. OpenAI positions Sunburst as the model with the highest editing precision and Flare as the fastest high-quality model for everyday work. They share the same official token rates and both add xhigh and max quality levels. GPT Image 2 is the previous generation, released in April 2026, with low, medium, high and auto quality. It costs the same as 2.5 on AnyAIGC.

Token billing or per-image billing (-c): which should I pick?

With token billing, cost depends on size and quality. On GPT Image 2.5 at 1024×1024, a low-quality image costs about $0.0005, a high-quality one about $0.0043 and a max-quality one about $0.0174, so token billing costs less in most settings. The -c versions charge a flat price per image at any quality ($0.0165 for 1K and $0.0206 for 2K/4K on 2.5), which makes budgets easy to predict. They come out cheaper only at the top end, and only for some sizes: 2.5 at max quality, or gpt-image-2 at high quality (about $0.0174 token-billed at 1024×1024 versus $0.0124 on gpt-image-2-c). They return one image per request and do not support n, mask or transparent backgrounds.

Which endpoints are supported? Can I edit images?

Every GPT Image model, including the per-image -c versions, supports POST /v1/images/generations (text to image) and POST /v1/images/edits (image to image and multi-image compositing). Edits accept fewer than 16 reference images, 50MB in total. Token-billed models also support inpainting with a mask. See the AnyAIGC API docs for every field.

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.

One key for the whole GPT Image lineup

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