GPT Image 2 Official API

GPT Image 2 Official

Actual Token billing per request. Choose n=1–4 outputs in one request; the total cost is rounded once, unused credits are released, and the charge never exceeds the reservation.

Multilingual text renderingComplex layout generationHigh-fidelity reference editing15 aspect ratiosUp to 4K output
Input
Aspect ratio
Resolution
Count
The Playground always screens prompts and input images. To disable screening via the API, set nsfw_check to false.
Advanced settings
Exact dimensionsExact dimensions override the resolution and aspect ratio presets. Width and height multiples of 16, each edge ≤ 3840 px, ratio ≤ 3:1, total 655,360–8,294,400 px. GIF uses per-frame pixels and upstream sheet limits.
Quality
Output format
Output
Example asset
/ Features

GPT Image 2 Official API

Legible in-image typography

Renders headlines, labels, signage, and short UI copy across Latin and CJK scripts within scene lighting. Check exact spelling and fine text before publishing.

15 aspect ratios including ultrawide and tall

Supports auto (1:1 square) plus 15 explicit ratios, including extended 3:1, 2:1, 21:9, 1:3, 1:2, and 9:21 frames for banners and vertical layouts.

Up to 16 reference images

Up to 16 references as public HTTP(S) image URLs. References increase input Tokens and the hold. File access, format and dimensions are checked upstream.

Native 1K, 2K, and 4K output tiers

Select 1K, 2K, or 4K before quoting to generate print-ready or web-ready files directly—up to 3840 px on the long edge depending on ratio—without a separate upscaler.

Grounded real-world visual detail

Generates believable storefronts, packaged goods, food textures, architectural materials, and software interfaces from detailed prompts with natural lighting.

Single-pass multi-element layouts

Follows structured prompts describing foreground subjects, background depth, typography placement, and framing in one pass, reducing layout rework.

1–4 outputs per request

n=1–4 stays in one upstream request and one execution item. Return every image produced and charge the task’s reported actual Token cost once, rounded up to 0.1 credits. Unused reserved credits are released; failed tasks with no images cost 0.

Multiple outputs, one capped charge

One request returns up to n outputs and settles its total actual Token cost once, rounded up to 0.1 credits. The hold scales with n. Partial success is charged at the reported actual cost; failed tasks with no images cost 0. Unused credits are released and there is no additional charge or fallback parameter.

/ Use cases

GPT Image 2 Official API · Use cases

Event & storefront posters

Marketing teams put exact titles, dates, and booth info into a 3:4 or 4:5 prompt at 2K to draft exhibition, cafe, or concert posters with integrated typography.

E-commerce product scenes

Online sellers upload clean packshots in image_urls to place cosmetics, bottles, or electronics onto marble, wood, or retail shelves while keeping labels recognizable.

Ultrawide web banners

Growth designers use GPT Image 2’s extended 3:1, 2:1, or 21:9 ratios at 4K to build homepage hero strips and marketplace headers without heavy cropping.

Tall vertical graphics

Editorial and mobile teams use 1:3, 9:21, or 9:16 framing to produce long-scroll campaign strips, mobile splash screens, and vertical story layouts in one generation.

App & web UI mockups

Product designers describe navigation bars, cards, buttons, and sample copy to generate quick screen concepts for stakeholder alignment before moving into Figma.

Food & menu photography

Restaurant brands and food editors specify plating, ceramic tableware, side daylight, and short menu labels at 2K or 4K to test visual directions before a studio shoot.

Illustrated diagrams

Educators and technical writers turn structured notes into botanical plates, cross-section drawings, or step-by-step infographics, then verify every label before release.

Multilingual ad variants

Cross-border teams reuse product references with localized English, Chinese, or Japanese headlines to generate regional campaign visuals without rebuilding the scene.

/ Examples

GPT Image 2 Official API · Examples

Shared reference examples from the corresponding GPT Image page; these are not official-channel verification samples.

GPT Image 2
GPT Image 2
GPT Image 2
Image1:1

GPT Image 2

A premium product photograph of a cobalt blue perfume bottle on limestone. Label reads AURA. Soft daylight and a crisp natural shadow.

134 chars
A 1990s Chinese high school class photo
A 1990s Chinese high school class photo
A 1990s Chinese high school class photo
Image

A 1990s Chinese high school class photo

Original prompt

90年代中国高中在教室拍的毕业合照

17 chars
Color-pop streetwear edit
Color-pop streetwear edit
Color-pop streetwear edit
Image

Color-pop streetwear edit

Adapted prompt · Add a reference image

Use the reference photo as the base. Keep the subject’s pose, camera angle, framing and surroundings. Redraw the jacket and sneakers as bold streetwear illustrations with painterly blocks of red, blue, green and yellow, black outlines and a few energetic strokes around the figure.

281 chars
A three-day Chengdu guide
A three-day Chengdu guide
A three-day Chengdu guide
Image

A three-day Chengdu guide

Adapted prompt

生成成都三天旅游攻略

10 chars
Personal color palette board
Personal color palette board
Personal color palette board
Image

Personal color palette board

Adapted prompt · Add a reference image

Create a diagram-first color analysis from this portrait. Compare warm and cool clothing palettes around the same face, using clearly labeled swatches and paired outfit colors. Keep the subject’s likeness, expression and lighting consistent, and use very little text.

267 chars
The chalkboard wall
The chalkboard wall
The chalkboard wall
Image

The chalkboard wall

Prompt reconstructed from the example

An editorial photograph of a lone writer standing partway up a ladder against a vast dark chalkboard. Dense, finely spaced handwritten text fills the entire wall. Frame the person small against the lettering, with diffuse natural light and a charcoal-gray palette.

264 chars
A scene with 100 objects
A scene with 100 objects
A scene with 100 objects
Image

A scene with 100 objects

Prompt reconstructed from the example

Create a busy illustrated scene with exactly 100 distinct everyday objects. Include an organized numbered inventory above the scene and make each object recognizable in the illustration. Keep the inventory legible, with small groups of text aligned in columns.

260 chars
Type on one grain of rice
Type on one grain of rice
Type on one grain of rice
Image

Type on one grain of rice

Prompt reconstructed from the example

Macro photograph of a pile of white rice. One sharply focused grain in the foreground bears the tiny text “wOw”. Keep every other grain unmarked. Use shallow depth of field and soft light to show the texture of the rice.

220 chars

GPT Image 2 Official · Token pricing

Billed on actual Token usage. Unused reserved credits are released automatically, and the charge never exceeds your quote.

+10%
Top up $1,500+ and get 10% bonus credits.
View top-up options

Price per 1M Tokens

TypeUSD / 1MCredits / 1M
Text inputWith bonus ≈ $4.318 / 1MRegular $4.750 / 1M950.0
Cached text inputWith bonus ≈ $1.080 / 1MRegular $1.188 / 1M237.5
Image inputWith bonus ≈ $6.909 / 1MRegular $7.600 / 1M1,520.0
Cached image inputWith bonus ≈ $1.727 / 1MRegular $1.900 / 1M380.0
Image outputWith bonus ≈ $25.909 / 1MRegular $28.500 / 1M5,700.0

Example cost per image

ResolutionHighest quality
1K$0.201 · 40.1 credits
2K$0.407 · 81.4 credits
4K$0.677 · 135.3 credits
  • Examples use measured Token counts for one square image at the highest quality, with no reference images.
  • Generating several images (n=1–4) scales cost and reservation by count; the request is settled once.
  • Quality, exact pixels, references and masks change usage. Your quote sets the reservation.
/ API

GPT Image 2 Official API · API integration

The request follows the form. The website uses your session; API clients use your API key. See the docs for parameters, task creation and task queries.

  1. Prepare input

    Write a prompt and optionally add references.

  2. Review the quote

    Choose aspect ratio or exact pixels, quality and n, then review the maximum before submitting.

  3. Retrieve images

    Query the returned task ID or receive a signed callback. Save result images within 14 days.

Parameter
Description
modelgpt-image-2-official
inputImage generation parameters.
input.promptGeneration or edit prompt.
input.aspect_ratioOutput aspect ratio (default 1:1). Ignored when size is set.
input.sizeExact WxH pixels; overrides aspect_ratio and resolution. Multiples of 16, edge ≤ 3840, ratio ≤ 3:1, area 655,360–8,294,400.
input.resolutionOutput resolution tier: 1K (default), 2K, or 4K. Ignored when size is set.
input.nNumber of images to generate (1–4, default 1) in one task.
{
  "model": "gpt-image-2-official",
  "input": {
    "prompt": "A premium product photograph of a cobalt blue perfume bottle on limestone. Label reads AURA. Soft daylight and a crisp natural shadow.",
    "aspect_ratio": "1:1",
    "resolution": "1K",
    "quality": "auto",
    "n": 1,
    "image_urls": [],
    "output_format": "png",
    "nsfw_check": true
  }
}

The request follows the form. The website uses your session; API clients use your API key. See the docs for parameters, task creation and task queries.

/ Compare

Compare GPT Image models

Choose a model by the kind of image or edit you need. All three support text-to-image and reference editing at up to 4K on APIstable.

ModelBest forResolution
GPT Image 2 OfficialYou’re hereProduct images, text posters and edits; 15 ratios, exact pixels, up to 16 references and masks.1K / 2K / 4K
GPT Image 2.5 OfficialUse Flare for drafts and batches, or Sunburst for finished artwork and detailed edits. Supports up to 16 reference images.1K / 2K / 4K
GPT Image 2.6 OfficialStill images, reference edits, annotations, GIF and SVG; quality, planning, frame controls and writer models.1K / 2K / 4K
/ FAQ

GPT Image 2 Official API FAQ

Find answers about pricing, generation results, and API access.

What is GPT Image 2, and is it the same as ChatGPT Images 2.0?

GPT Image 2 (model ID gpt-image-2-official) is OpenAI’s image generation and editing model released in April 2026 alongside ChatGPT Images 2.0. On APIstable you call it through the asynchronous task API and Workbench rather than a ChatGPT subscription.

How do the three official GPT Image models differ?

All three support 15 ratios, exact pixels, quality, masks, JPEG/WebP compression and up to 16 references. GPT Image 2 has no variant selector. 2.5 adds Flare/Sunburst, transparent backgrounds and six quality levels. 2.6 adds complexity, annotation layers, reference-capable GIFs and SVG writers.

Which sizes are supported?

Use aspect_ratio for auto or 15 ratios, resolution=1K/2K/4K, or size for exact WxH pixels (overrides both). Exact static sizes require multiples of 16, edges ≤3840, ratio ≤3:1 and area 655360–8294400.

What does aspect_ratio: "auto" do on GPT Image 2?

On GPT Image 2, auto defaults to a 1:1 square image. Pick an explicit aspect ratio whenever your layout requires fixed framing.

How do I supply reference images?

Up to 16 references as public HTTP(S) image URLs. References increase input Tokens and the hold. File access, format and dimensions are checked upstream.

How is the official channel billed?

One request returns up to n outputs and settles its total actual Token cost once, rounded up to 0.1 credits. The hold scales with n. Partial success is charged at the reported actual cost; failed tasks with no images cost 0. Unused credits are released and there is no additional charge or fallback parameter.

How do reference images affect the price?

Up to 16 references as public HTTP(S) image URLs. References increase input Tokens and the hold. File access, format and dimensions are checked upstream.

Which advanced editing and format parameters are supported?

2 supports masks, exact pixels, quality and JPEG/WebP compression. 2.5 adds transparent backgrounds and six quality levels. 2.6 adds annotation layers, GIF frame controls and SVG writers. GIF/SVG allow references but exclude masks, annotations and compression.

What happens if a request returns fewer than n images?

n=1–4 stays in one upstream request and one execution item. Return every image produced and charge the task’s reported actual Token cost once, rounded up to 0.1 credits. Unused reserved credits are released; failed tasks with no images cost 0.

Is exact spelling or subject preservation guaranteed?

No. Although GPT Image 2 handles in-image text and references well, outputs are not guaranteed to preserve every character, face, or brand mark verbatim. Inspect generated assets before commercial use.

How do async polling, timeouts, and result retention work?

Submit tasks via POST /api/v1/tasks/create_task, then poll the task query endpoint or configure callback_url. Generated files are retained for 14 days—download them before expiry. Unfinished tasks older than 24 hours are automatically failed during the daily 00:00 Beijing time cleanup with unspent reservations released, and late results cannot reopen or re-bill a closed task.

Can I use a seed to reproduce an image identically?

No. Seed control is not exposed for GPT Image 2 on APIstable, and generation is nondeterministic, so rerunning the same prompt and parameters can produce different details.

CREATE IMAGES

Try GPT Image 2 Official now

Write a prompt or add references to generate an image.