Flat $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)
$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
Model
Token billing (medium, 1024×1024)
Per-image -c version (1K)
GPT Image 2.6 Sunburst / Flare
139
24
GPT Image 2.5 Sunburst / Flare
460
30
GPT Image 2
114
40
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.
Every image below was generated with ChatGPT Images 2.0, which runs on gpt-image-2. Chinese typography, magazine infographics, photoreal shots and consistent comics all come out in one pass.
Chinese textComic page with Chinese dialogue, posters and chatsStore launch posterOpening poster for a matcha cafeMultilingual typePoster mixing Japanese, Arabic, Korean and morePhotoreal sceneTwo aliens having drinks at a street cafeExplainer graphicCantor's diagonal argument, explained visuallyTravel campaignMulti-panel brochure for a Korean hanok stayFlash snapshotFriends on a city street at night, shot on flashMerch mockupsT-shirt, cap, mug and more in one gridConsistent storyRetro comic page with consistent characters
Upload a product photo and swap the background or scene with the edits endpoint, while labels and packaging text stay sharp.
02 · Marketing
Posters, banners and ad creative
Generate finished posters with headlines, body copy and brand elements, up to 3840×2160.
03 · Content
Infographics and explainers
Science explainers, academic posters and data cards with layout and text right on the first try.
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
Sign up: create an AnyAIGC account. New accounts get 5 million tokens of trial credit, and top-ups start at $1.
Create an API key: generate a key in the console and store it in the ANYAIGC_API_KEY environment variable.
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 imagewith 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.
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.
Related model APIs
The same AnyAIGC API key works with these image models. Compare pricing and capabilities.