Claude Opus 5.5 is live on SeedRouter
OpenAIImage generation

GPT Image 2 — Image Generation & Editing

GPT Image 2 generates images from text and edits reference images with optional masks. Create transparent backgrounds, choose your output size and quality, and try it directly in the Playground.

AvailableFrom $22.50 / 1M output tokens$30.00 / 1M-25%
  • Text-to-image
  • Batch up to 10
  • Task API
  • CDN URLs
  • Usage-based billing
  • No subscription
Model highlights
Fast, high-quality image generation billed by real token usage
Use cases
Marketing visuals, UI mockups, catalogue art, social variants
Input
Text and reference images, optional mask
Output
Up to 10 image URLs on a CDN

Try GPT Image 2 before you write any code

Generate or edit images with the same parameters and asynchronous API used by your integration.

Create image task

gpt-image-2-officialFrom $22.50 / 1M output tokens

Generate from a prompt or edit reference images. Submit once; results appear when the task completes.

52 / 32000

required · up to 32,000 characters

Reference images

Reference images for image-to-image and editing. Files are uploaded and sent as URLs; each one adds image input tokens.

0/16 files

Let the model choose the image dimensions.

auto or WIDTHxHEIGHT · custom sizes supported

Mask (optional)

Reference images for image-to-image and editing. Files are uploaded and sent as URLs; each one adds image input tokens.

0/1 files

PNG smaller than 4 MB, matching the first reference image dimensions. Transparent areas are edited.

default auto · biggest cost lever

1 to 10 · default 1

auto, opaque or transparent · transparency requires PNG

default png

Choose JPEG to set compression.

default auto

Greyed-out options relax content filtering. They are available through the API only, not in the playground.

Reference estimate~$0.00425

Reference estimate using a 1024×1024 sample at the selected quality and image count, priced at current rates. Auto uses a measured auto sample. Actual size, prompt and reference images can change the final cost.

…
Ready
Generated with gpt-image-2 through this API

Try one of these prompts

Generated with gpt-image-2: a two-tone ceramic vase, folded linen and a brass dish in window light
Generated with gpt-image-2: an unlabelled amber glass bottle on a sand pedestal
Generated with gpt-image-2: coral, olive and cream paper cards with a brass ruler

Generated with gpt-image-2 through this API.

What GPT Image 2 costs

Every figure below is computed from the rate that actually bills you, read live when the page loads. If that rate ever changes, these numbers change with it.

One 1024×1024 imageLow quality · 1024×1024 · 1 image
Official
$0.00448/image
Standard
$0.0315/image
A measured render on each channel at the current rate. About 31–223 images for a dollar.
A batch of 10Low quality · 1024×1024 · 10 images
Official
$0.04417/request
Standard
$0.315/request
Ten options from one call, billed as ten renders. Useful when you want to pick rather than re-prompt.
What a $20.00 top-up buysLow quality · 1024×1024
Official
4,466images
Standard
634images
Credits never expire, so an unused balance is still there next month.

On Official IDs, size and quality change token usage, so cost is not a fixed function of pixel dimensions. Standard IDs charge one flat price per delivered image. GPT Image 2 charges nothing when a request fails or comes back without an image.

Measured on real renders through the Official channel: 196 image output tokens for one 1024×1024 image at low quality, plus 18 tokens for the prompt itself. A longer prompt spends more input tokens.

Measured cost per quality tier

One 1024×1024 image, same prompt, one render per tier. Output tokens are what the model reported on the Official channel, priced at its current rate; Standard charges the same flat price at every tier.

QualityOutput tokensCost per image · OfficialCost per image · Standard
low196$0.00448$0.0315
medium1,756$0.03958$0.0315
high7,024$0.15811$0.0315
auto (model picks)186$0.00425$0.0315

Measured once per tier, not averaged. A render of a different subject at the same settings will land near these numbers, not exactly on them.

Price your own request

Move the controls and watch the figure. It is computed from the live rate and the token counts measured below, so it changes when the price does.

Price est.gpt-image-2-official
× 1 · real-time

A pre-submit estimate. Standard bills the images delivered; Official bills the text-input and image-output usage the model reports.

Your estimate
~$0.00441
Per $20.00
≈ 4,531images
low · 1024x1024 · × 1
List price· saves 25%
~$0.00589
Tokens for this request
Image output tokens196
Text input tokens1
Channel
Quality
Size
Count
1
Prompt
0 chars · ~1 tokens
ItemRuleRateBilled as
Official · Image output tokensOutput token usage depends on image size and quality.$22.50 / 1M$30.00 / 1MOutput tokens
Official · Text input tokensThe tokens your prompt spends.$3.75 / 1M$5.00 / 1MInput tokens
Standard · Per imageOne flat price per delivered image, at any size or quality.$0.0315 /image$0.042 /imageImages delivered
Failed requestsA request that returns no image.FreeNot billed

GPT Image 2 overview

Generate product shots, UI concepts and campaign variants with GPT Image 2 through SeedRouter. Start from a text prompt, pick a size and a quality tier, and get back image URLs you can download.

GPT Image 2 is OpenAI's image model for everyday generation. Calling it here is a task: you POST a prompt, receive a task id, and poll that id until the images are ready. Nothing holds your HTTP connection open while a render takes its time.

Best fit: text-to-image for product, marketing and UI work · Cost basis: prompt length, image size and quality tier · Output boundary: up to 10 images per request, delivered as CDN URLs

Input
Text and reference images
Output
Image URLs
Size
Auto / square / landscape / portrait
Quality
Auto / low / medium / high
Model ID
gpt-image-2-official · gpt-image-2

Use GPT Image 2 your way

Call it from your own server for product features and batch jobs, or drive it from a coding agent for one-off creative work. Both use the same key, the same balance and the same task history.

Option 1

Integrate it in your backend

Best for: product features, batch jobs, automated pipelines

Call the image endpoint from your server and keep control of the prompt, the parameters, the queue and where the results are stored.

  1. 1Try a real brief in the playground above and check the cost
  2. 2Create an API key in your dashboard
  3. 3POST the prompt and keep the task id you get back
  4. 4Poll the task id and download the image URLs it returns
Option 2

Drive it from a coding agent

Best for: one-off creative work inside your editor or terminal

Give an agent the key and the endpoint and let it write the request, wait for the task and save the files, instead of hand-coding each step.

  1. 1Put the key in your environment as SEEDROUTER_API_KEY, never in a file you commit
  2. 2Paste the prompt below into Claude Code, Codex or Gemini CLI
  3. 3Fill in the subject, size, quality and how many images you want
  4. 4Approve the estimated cost, then let the agent submit, poll and download

What GPT Image 2 gives you

GPT Image 2 turns a text prompt into finished images and hands back URLs you can download. You send an OpenAI-shaped request body, get a task id back immediately, and poll it until the images are ready. Nothing stays open on your connection while a render takes its time.

A request body you already know

Model, prompt, n, size, quality. If you have called an image endpoint before, you have already written your first GPT Image 2 request.

Submit once, get results asynchronously

GPT Image 2 returns a task id right away. Poll it when you like. No long-held HTTP connections to babysit.

Downloadable URLs, not base64 blobs

Finished images land on a CDN. GPT Image 2 gives you links you can hand straight to a browser or a job queue.

Up to 10 images in one call

Ask GPT Image 2 for a batch when you want options. You pay for the images that come back, not for the number you asked for.

Usage you can check

Every finished task reports its input and output tokens, so you can audit any GPT Image 2 charge against the response that produced it.

Credits that never expire

Top up once and spend it whenever. No subscription, no monthly minimum, no plan to outgrow.

What teams build with GPT Image 2

Product and marketing visuals

Generate hero shots and campaign variants from a brief. One GPT Image 2 call per variant, same pipeline.

UI and concept mockups

Fill a design draft with plausible imagery before a photo shoot exists. One GPT Image 2 call per placeholder.

Catalog and listing art

Drive GPT Image 2 from your catalog and get consistent imagery across a long list of items, without booking a studio.

Social variants at volume

One idea, ten framings. Ask GPT Image 2 for a batch and post the best.

Editorial and blog art

One GPT Image 2 call illustrates a post in the time it takes to write the headline.

Image features inside your app

Let your own users generate. The task id makes it easy to show progress in your UI.

Calling GPT Image 2 takes four steps

  1. 01

    Create a key

    Sign in, open the dashboard, create a key. The same key calls GPT Image 2 and every other model you have access to.

  2. 02

    Add credits

    Top up once. Credits do not expire and there is no plan attached to them.

  3. 03

    Submit a prompt

    POST your prompt to GPT Image 2. You get a task id back immediately.

  4. 04

    Poll and download

    GET the task until GPT Image 2 reports completed, then download the image URLs it returns.

Create your key

Choose an image model for the job

Everything on this table is read from the same catalogue that bills you. Models SeedRouter does not serve are not listed.

FeatureGPT Image 2
Billing modelPer token of actual usage
InputText and reference images
OutputUp to 10 image URLs per request
Request shapeOpenAI-style: model, prompt, n, size, quality
Failed requestNot charged

Other image models will appear here as they are added to the catalogue.

GPT Image 2 limits worth planning for

Text inside an image still needs review

Words rendered into an image can come back misspelled or mangled. Check anything with type on it before it ships.

Editing uses reference image URLs

Provide up to 16 reference images and an optional PNG mask. The mask must match the first image dimensions; transparent pixels identify the area to edit.

Result URLs are a handoff, not storage

Download what you intend to keep and put it wherever your product already stores assets.

A batch takes longer than a single image

Asking for ten images is one request but ten renders. Poll on a schedule instead of blocking a user on it.

Why call GPT Image 2 through SeedRouter

One key for every model

The key that calls GPT Image 2 calls the rest of the catalog too. One integration, one balance.

Billing you can check

Every GPT Image 2 charge traces back to the usage in the response, and the price on the site is the price that bills.

No subscription

Buy credits, spend them whenever. Nothing expires and nothing renews.

Failures are free

A GPT Image 2 request that produces no image produces no charge.

The bill follows the response

GPT Image 2 charges are computed from the token usage the model reports, not from the size of your request.

Nothing rendered, nothing charged

If a request ends without an image, it costs nothing. That is the one reliability promise worth making.

Short batches are billed short

Ask GPT Image 2 for ten and get seven, and you pay for seven.

Size and quality drive the price

Both change how many output tokens a GPT Image 2 render spends. Prototype at low quality, ship at the quality you need.

Images live on a CDN

Download what you want to keep. GPT Image 2 hands you a URL, not permanent storage.

Other image models on SeedRouter

Same key, same balance, same task API. Read live from the catalogue, so nothing here is a model you cannot actually call.

GPT Image 2.5
gpt-image-2.5-flare · gpt-image-2.5-sunburst · gpt-image-2.5-flare-official · gpt-image-2.5-sunburst-official

Generate and edit images with GPT Image 2.5 Flare or Sunburst on SeedRouter. Six quality steps up to max, transparent backgrounds, a live playground and pay-as-you-go pricing.

View pricing
Nano Banana 2
gemini-3.1-flash-image-official · gemini-3.1-flash-image

Create and edit images with Nano Banana 2 (Gemini 3.1 Flash Image): 512px to 4K, 14 aspect ratios, up to 14 references. Pay per image or per token.

View pricing
Nano Banana Pro
gemini-3-pro-image-official · gemini-3-pro-image

Create and edit images with Nano Banana Pro (Gemini 3 Pro Image): 1K to 4K output, built-in thinking, up to 14 references. Pay per image or per token.

View pricing
Nano Banana 2 Lite
gemini-3.1-flash-lite-image-official

Create and edit images with Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image), Google's fastest and cheapest image model: 1K output, 14 aspect ratios.

View pricing

GPT Image 2 guides

Practical guides to costs, prompts, batch requests, and integration.

GPT Image 2 API key: how to get access and make a first request

Get a GPT Image 2 API key, store it safely, add credits, and make a first request with curl, Python or JavaScript, plus the errors a new key most often hits.

GPT Image 2 API parameters: size, resolution, aspect ratio and quality

The GPT Image 2 API parameters that shape the image: model name, size and resolution, aspect ratios, 4K limits, quality, formats and the errors they return.

GPT Image 2 API in Python: a complete example

A complete GPT Image 2 API example in Python: submit a request, poll the task, download the images to disk, edit with references and handle errors safely.

Use GPT Image 2 in Codex, Claude Code and other coding agents

Let Codex, Claude Code or another coding agent make images with GPT Image 2 through your API key, with a reusable prompt that asks before every paid request.

Batch GPT Image 2 requests without losing track of tasks

Submit a set of GPT Image 2 prompts, save task IDs, resume polling after interruptions, and download completed images without resubmitting them.

How much does GPT Image 2 cost?

Estimate GPT Image 2 costs from current SeedRouter rates, understand sample token usage, and budget for drafts, revisions, and final images.

GPT Image 2 prompts that are easier to revise

Write clearer GPT Image 2 prompts, specify exact text, preserve details in reference edits, and revise one visual constraint at a time.

Move an image integration to SeedRouter

Migrate a GPT Image 2 integration to SeedRouter by mapping request fields, handling asynchronous tasks, and validating URL-based image delivery.

Common questions

What is GPT Image 2?+

GPT Image 2 is an image model you call over HTTP: you POST a prompt, get a task id, then poll that id until the images are ready and download the URLs it returns.

How much does GPT Image 2 cost?+

It depends on the channel. Official IDs bill the tokens each render reports: a 1024×1024 image at low quality measures about $0.00448. Standard IDs charge a flat $0.0315 per delivered image at any size or quality. Every figure on this page is computed from the rate that bills you.

Do failed GPT Image 2 requests cost anything?+

No. If a request ends without an image, nothing is charged. Ask for ten images and receive seven, and you are billed for seven.

Why does GPT Image 2 return a task id instead of the image?+

Because a render takes longer than an HTTP request should stay open. The task id lets you poll on your own schedule and show progress in your own UI.

How many images can one GPT Image 2 request return?+

Up to ten. You are billed for the images that come back, which makes batching a cheap way to get options.

Do credits expire?+

No. GPT Image 2 credits are a one-time purchase with no subscription attached. Top up when you need to and spend the balance whenever you like.

Will my existing image code work with GPT Image 2?+

Use the official GPT Image 2 parameters with asynchronous submission and polling. Submit once, save the task id, then poll for image URLs and token usage. An official synchronous or streaming SDK call needs this polling step added.

How long do GPT Image 2 image URLs stay up?+

Treat them as a handoff. Download anything you intend to keep and store it wherever your product already stores assets.

Start building with GPT Image 2

Try your first prompt in the Playground, or explore the API docs to add image generation to your app.