GPT Image 2 API Pricing (2026): Cost per Image and Code
Unicorn API Team · · 11 min read
GPT Image 2 API pricing comes down to one question: what will each image cost you, and what changes that number? On Unicorn API the answer is short. GPT Image 2 costs 6 credits per image at 1K, 10 credits at 2K and 16 credits at 4K. Nothing else changes the price. Not the aspect ratio, not prompt length, not reference images. The only other factor is how many images you ask for in one request.
This post covers the per-image numbers in dollars, how that differs from the token-based billing you get when calling OpenAI directly, a worked budget for a real project, code that checks the price before generating, and how GPT Image 2 compares with its siblings and a cheaper Google model.
What GPT Image 2 is and what you are paying for
GPT Image 2 (model id gpt-image-2) is OpenAI’s image model released on 21 April 2026. It generates and edits images at three resolution tiers: 1K, 2K and 4K. “1K” means the long side of the image is roughly 1,000 pixels. 2K and 4K scale up from there. It accepts up to 16 reference images, which are pictures you pass in so the model can match a product, a face, a style or a layout. It also supports the widest aspect ratio range of OpenAI’s current image models: auto, 16:9, 1:1, 9:16, 21:9, 9:21, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2, 3:1, 1:3, 5:4 and 4:5.
The fields you can send are prompt, resolution, aspect_ratio, n (how many images to generate), background and ref_images. Only two of those touch GPT Image 2 API pricing: resolution and n. Everything else is free to tune.
That matters more than it sounds. With token billing, a long prompt and several reference images all add input cost. Here you can write a detailed 200-word prompt and attach a dozen reference images without paying a credit more than a one-line prompt would cost.
GPT Image 2 API pricing per image on Unicorn API
Unicorn API bills in credits. Monthly plans give you credits at $0.01 each: Starter is $25, Creator $50, Studio $100 and Pro $200 per month. If you run out, top-up credits cost $0.015 each and never expire. Here is GPT Image 2 API pricing converted to dollars:
| Resolution | Credits per image | Cost on a monthly plan | Cost with top-up credits |
|---|---|---|---|
| 1K (default) | 6 | $0.06 | $0.09 |
| 2K | 10 | $0.10 | $0.15 |
| 4K | 16 | $0.16 | $0.24 |
If you leave out resolution, the request is billed as 1K at 6 credits. When you set n, the price is multiplied by it: n: 4 at 2K costs 40 credits. Totals are rounded up to whole credits, but with these whole-number prices that never adds anything.
How many images each plan covers
If you spend a whole plan on one resolution, this is what you get:
| Plan | Credits | 1K images | 2K images | 4K images |
|---|---|---|---|---|
| Starter ($25) | 2,500 | 416 | 250 | 156 |
| Creator ($50) | 5,000 | 833 | 500 | 312 |
| Studio ($100) | 10,000 | 1,666 | 1,000 | 625 |
| Pro ($200) | 20,000 | 3,333 | 2,000 | 1,250 |
The same credits work on every other model in the catalog, so the plan isn’t locked to GPT Image 2. Full plan details are on the pricing page.

How token-based GPT Image 2 pricing works when you call OpenAI directly
Many people search “openai gpt image 2 api pricing” and land on rate tables in dollars per million tokens. That is how OpenAI bills the model on its own platform. A token is a small unit of data, and image models charge for several kinds:
- Text input tokens: your prompt. Longer prompts cost more.
- Image input tokens: any reference or source images you send for edits.
- Image output tokens: the generated image. Larger and higher-quality images consume more of these, and output is usually the biggest part of the bill.
- Cached input tokens: repeated input billed at a discount when the provider can reuse it.
Token billing is precise, but hard to predict. To know what one image costs, you need to know how many output tokens your chosen size produces, how many tokens your prompt and reference images add, and whether any of it gets cached. That is why “gpt image 2 api pricing calculator” is a common search. People are trying to turn a per-million rate into a per-image number they can put in a budget.
Per-image credits skip that step. A 2K image is 10 credits whether your prompt is eight words or eighty, and whether you attach zero reference images or sixteen. You trade a little theoretical precision for a number you can multiply in your head. For most teams that is the better trade, because the risky cases in token billing are the heavy ones: long prompts and many reference images. Those are exactly the cases where flat pricing helps.
The other practical difference is the bill itself. If you also use video, audio or chat models, Unicorn API puts all of them on one key and one credit balance, instead of separate accounts and separate invoices for each provider.
A worked example: budgeting a 300-product catalog
Abstract per-image prices are easy to read and easy to misjudge. Here is a realistic job to show how GPT Image 2 API pricing adds up.
You sell 300 products and want one hero image for each, delivered at 4K for print and zoom. You don’t trust a single attempt, so the plan is:
- Drafts: generate 4 options per product at 1K with
n: 4. That’s 6 × 4 = 24 credits per product, or 7,200 credits for the catalog. - Finals: pick the best draft and render it at 4K, passing the chosen draft in
ref_imagesso the final matches it. That’s 16 credits per product, or 4,800 credits.
Total: 12,000 credits, which is $120 at the plan rate. You have three ways to pay for it:
| Option | How it covers 12,000 credits | Cost |
|---|---|---|
| Studio plan + top-up | 10,000 plan credits + 2,000 top-up credits | $100 + $30 = $130 |
| Pro plan | 20,000 plan credits, 8,000 left over | $200 |
| Top-ups only | 12,000 top-up credits | $180 |
For a one-off project, Studio plus a top-up is the cheapest of the three. If you run catalogs like this every month, Pro gives you room for retries and a second batch.
Where you can cut the bill
- Draft at 1K, finish at 4K. Drafting everything at 4K would cost 16 × 4 × 300 = 19,200 credits for the drafts alone. The 1K-then-4K approach saves 12,000 credits on drafts.
- Draft on a cheaper model. Nano Banana 2 Lite costs 4 credits per image. Drafts there cost 4,800 credits instead of 7,200, which brings the whole project to 9,600 credits and fits inside the $100 Studio plan. The catch is that a different model has a different look, so the 4K final may drift further from the draft you approved.
- Use fewer drafts for simple products. A plain mug on a white background rarely needs four attempts.
n: 2halves the draft cost for those items. - Ask whether you need 4K at all. If images only appear on web product pages, 2K finals at 10 credits save 1,800 credits across the catalog.
How to check the price and generate an image with code
You don’t have to do any of this math by hand. Unicorn API returns the exact price of a request before you run it, via POST /v1/models/price. Send it the same body you would send to create the job. This is the most reliable GPT Image 2 API pricing calculator because it uses the live billing rules, not a spreadsheet.
Image generation is asynchronous. You create a job with POST /v1/jobs, then poll GET /v1/jobs/{id} until status is "succeeded", and read the image URL from outputs[0].url. First, get a key from the API keys page and export it as UNICORN_API_KEY.
Quick check with curl
curl -X POST https://api.unicornapi.net/v1/models/price \
-H "Authorization: Bearer $UNICORN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-image-2","input":{"prompt":"A red fox resting in a snowy forest at dawn, soft light, highly detailed","resolution":"2K","aspect_ratio":"16:9","n":2}}'
That request should come back at 20 credits: 10 per 2K image, times 2.
Full Python example: price check, generate, download
import os
import time
import requests
API = "https://api.unicornapi.net"
HEADERS = {
"Authorization": f"Bearer {os.environ['UNICORN_API_KEY']}",
"Content-Type": "application/json",
}
body = {
"model": "gpt-image-2",
"input": {
"prompt": "A red fox resting in a snowy forest at dawn, soft light, highly detailed",
"resolution": "2K",
"aspect_ratio": "16:9",
},
}
# 1. Check the price before spending anything
price = requests.post(f"{API}/v1/models/price", headers=HEADERS, json=body, timeout=30)
price.raise_for_status()
print("Price:", price.json())
# 2. Create the job
job = requests.post(f"{API}/v1/jobs", headers=HEADERS, json=body, timeout=30)
job.raise_for_status()
job_id = job.json()["id"]
print("Job created:", job_id)
# 3. Poll until it finishes
while True:
r = requests.get(f"{API}/v1/jobs/{job_id}", headers=HEADERS, timeout=30)
r.raise_for_status()
data = r.json()
status = data["status"]
if status == "succeeded":
break
if status in ("failed", "canceled"):
raise RuntimeError(f"Job {job_id} ended with status {status}: {data}")
time.sleep(3)
# 4. Download the image
url = data["outputs"][0]["url"]
img = requests.get(url, timeout=60)
img.raise_for_status()
with open("fox-2k.png", "wb") as f:
f.write(img.content)
print("Saved fox-2k.png from", url)
In a batch script, put the price check in front of every job and add a running total. Stop the loop if the total passes your budget. That one guard prevents most surprise bills. Request shapes, error codes and the full field list are in the API documentation. If you’d rather try prompts before writing code, the image playground runs the same models in the browser. If you work inside Cursor or Claude Code, the agents setup lets your coding agent call these models directly.

GPT Image 2 vs GPT Image 2.5, GPT Image 1.5 and Nano Banana 2 Lite
Price only tells you something next to the alternatives. Here is how GPT Image 2 sits against the models you are most likely to weigh it against:
| Model | Price per image | Resolutions / quality | Reference images | Aspect ratios |
|---|---|---|---|---|
| GPT Image 2 | 6 / 10 / 16 credits | 1K / 2K / 4K | Up to 16 | 16 options incl. 3:1, 1:3, 2:1 |
| GPT Image 2.5 Flare | 6 / 10 / 16 credits | 1K / 2K / 4K | Up to 16 | 9 options |
| GPT Image 2.5 Sunburst | 6 / 10 / 16 credits | 1K / 2K / 4K | Up to 16 | 9 options |
| GPT Image 1.5 | 3 / 4 / 22 credits | low / medium / high quality | Up to 4 | 1:1, 3:2, 2:3 |
| Nano Banana 2 Lite | 4 credits | 1K | Up to 10 | 7 options |
GPT Image 2.5 Flare and Sunburst
Both GPT Image 2.5 variants were released on 11 November 2026, and both cost the same as GPT Image 2. GPT Image 2.5 Flare is the faster variant for everyday generation and edits. GPT Image 2.5 Sunburst is the premium variant: tighter control and more polished output, but slower. Since price is identical, the choice is about speed, quality and shape. The one concrete reason to stay on GPT Image 2 is aspect ratio. It supports 9:21, 2:1, 1:2, 3:1, 1:3, 5:4 and 4:5, which the 2.5 variants don’t. If you make ultra-wide banners, tall phone wallpapers or 4:5 social posts, GPT Image 2 is the model that covers them.
GPT Image 1.5
GPT Image 1.5 prices by quality instead of resolution: 3 credits at low, 4 at medium, 22 at high. Low and medium are cheaper than any GPT Image 2 tier, which makes 1.5 a good fit for thumbnails, placeholders and drafts where legible text and prompt adherence matter more than size. High quality, at 22 credits, costs more than a 4K GPT Image 2 image. If you’re reaching for 1.5 high, compare it against GPT Image 2 at 2K or 4K first. It also tops out at 4 reference images and three aspect ratios.
Nano Banana 2 Lite
Google’s Nano Banana 2 Lite is the cheapest Gemini image model at a flat 4 credits, built for fast 1K images and edits with up to 10 reference images. It’s the natural choice for high-volume 1K work where GPT Image 2’s 2K and 4K tiers and extra aspect ratios don’t matter.
Mistakes that inflate your GPT Image 2 bill
Most overspending on image APIs comes from a few habits, not from the rate card. Watch for these:
- Defaulting to 4K. 4K costs about 2.7x as much as 1K. If the image will be shown at 800 pixels wide on a web page, 4K is wasted. Choose the resolution for where the image ends up.
- Forgetting that
nmultiplies.n: 8at 4K is 128 credits per request. A loop over 100 prompts with that setting spends 12,800 credits. Checknbefore running any batch. - Retrying blindly on failure. A retry loop with no cap can quietly repeat jobs. Cap retries, log every job id, and look at failed jobs before resubmitting.
- Rendering finals without the draft as a reference. Generating a fresh 4K image from the same prompt gives you a different picture, not a bigger version of the draft you approved. Pass the chosen draft in
ref_images, or you may pay for several 4K rerolls trying to get it back. - Buying top-ups for steady usage. Top-up credits cost 50% more than plan credits. They suit spiky or occasional work because they never expire. If you spend similar amounts every month, a plan is cheaper.
- Paying a premium tier for draft work. Exploration is where volume is highest. Run it on GPT Image 2 at 1K, GPT Image 1.5 low or Nano Banana 2 Lite, and save higher tiers for the images you’ll actually ship.
- Trying to save by shortening prompts. Under per-image pricing, prompt length is free. Cutting detail from your prompt saves nothing and usually costs you rerolls. Write the full prompt.
Is GPT Image 2 API pricing worth it for your project?
GPT Image 2 API pricing makes the most sense when you need one of three things: 2K or 4K output, unusual aspect ratios, or many reference images in a single request. At 6 credits for 1K it’s not the cheapest option for small images, but the price scales predictably, and you never pay extra for long prompts or reference images.
A sensible setup for most teams looks like this:
- Prototype prompts in the playground or with a few 1K API calls.
- Decide on a final resolution based on where images will be displayed.
- Put
POST /v1/models/pricein front of every batch job and enforce a budget cap in code. - Pick the plan that covers your expected monthly credits, and keep top-ups for spikes.
If you’re also deciding between image models for a specific use like product photos or logos, our business logo generator guide and the Seedream 4.5 vs Nano Banana Pro comparison walk through cost and quality trade-offs for other models on the same credit balance. For GPT Image 2 itself, the summary of GPT Image 2 API pricing fits on a sticky note: 6, 10, 16 credits, multiplied by n.
Frequently asked questions
How much does GPT Image 2 cost per image?
On Unicorn API, GPT Image 2 costs 6 credits per image at 1K, 10 credits at 2K and 16 credits at 4K. Monthly plans price credits at $0.01, so that works out to $0.06, $0.10 or $0.16 per image. Top-up credits cost $0.015 each, which makes the same images $0.09, $0.15 or $0.24. The aspect ratio and the length of your prompt do not change the price.
Is there a free way to use GPT Image 2?
The API is not free, because every generation runs on paid GPU time. The cheapest way to test it is to generate a handful of 1K images at 6 credits each. A dozen test images at 1K cost 72 credits, which is $0.72 on a monthly plan. Use the price endpoint before each run so you never spend more than you expect while you experiment.
Does the aspect ratio change GPT Image 2 API pricing?
No. GPT Image 2 supports 16 aspect ratio options, from 1:1 and 16:9 to extreme shapes like 3:1 and 1:3. The price depends only on the resolution tier (1K, 2K or 4K) and the number of images you request with n. A 21:9 banner at 2K costs the same 10 credits as a 1:1 square at 2K.
Is GPT Image 2.5 more expensive than GPT Image 2?
No. GPT Image 2.5 Flare and GPT Image 2.5 Sunburst both cost exactly the same as GPT Image 2: 6 credits at 1K, 10 at 2K and 16 at 4K. Flare is the faster variant for everyday work, Sunburst is slower with tighter control and more polished output. GPT Image 2 offers more aspect ratio options than either 2.5 variant.
How do I calculate GPT Image 2 API costs before running a job?
Multiply the per-image credits for your resolution by n and by the number of requests. For exact figures, send the same body you would send to POST /v1/jobs to POST /v1/models/price, and Unicorn API returns the price of that request before anything runs. This works as a built-in pricing calculator for scripts and batch jobs.
What is the cheapest model for draft images?
Among the models compared here, GPT Image 1.5 at low quality is the cheapest at 3 credits per image, followed by Nano Banana 2 Lite and GPT Image 1.5 medium at 4 credits. GPT Image 2 at 1K costs 6 credits. Drafting on a cheaper model saves credits, but the look may not match a final render made with GPT Image 2.