Sora

GPT Image 2 API

Image APIHOT

GptImage6 offers GPT Image 2 for text-to-image generation and reference-based editing. Try either workflow in the playground or use the same model in your own application.

The two standard GPT Image 2 modes offer 1K, 2K, and 4K. Available aspect ratios and settings depend on the selected model and resolution.

Model Type:
Pricing

Lowest cost starts at $0.005/s

Selected model
GPT Image 2.5 Flare Text to Image

1K: 6 credits - Text to Image - Fixed per generation

2K: 10 credits - Text to Image - Fixed per generation

4K: 16 credits - Text to Image - Fixed per generation

1024x768: 1 credits/image - Text to Image - Images × 1

1024x768: 2 credits/image - Text to Image - Images × 2

1024x768: 8 credits/image - Text to Image - Images × 8

1024x768: 13 credits/image - Text to Image - Images × 13

1024x768: 29 credits/image - Text to Image - Images × 29

768x1024: 1 credits/image - Text to Image - Images × 1

768x1024: 2 credits/image - Text to Image - Images × 2

768x1024: 8 credits/image - Text to Image - Images × 8

768x1024: 13 credits/image - Text to Image - Images × 13

768x1024: 29 credits/image - Text to Image - Images × 29

1024x1024: 2 credits/image - Text to Image - Images × 2

1024x1024: 3 credits/image - Text to Image - Images × 3

1024x1024: 11 credits/image - Text to Image - Images × 11

1024x1024: 19 credits/image - Text to Image - Images × 19

1024x1024: 43 credits/image - Text to Image - Images × 43

1024x1536: 1 credits/image - Text to Image - Images × 1

1024x1536: 3 credits/image - Text to Image - Images × 3

1024x1536: 9 credits/image - Text to Image - Images × 9

1024x1536: 15 credits/image - Text to Image - Images × 15

1024x1536: 33 credits/image - Text to Image - Images × 33

1536x1024: 1 credits/image - Text to Image - Images × 1

1536x1024: 3 credits/image - Text to Image - Images × 3

1536x1024: 9 credits/image - Text to Image - Images × 9

1536x1024: 15 credits/image - Text to Image - Images × 15

1536x1024: 33 credits/image - Text to Image - Images × 33

1920x1080: 1 credits/image - Text to Image - Images × 1

1920x1080: 3 credits/image - Text to Image - Images × 3

1920x1080: 8 credits/image - Text to Image - Images × 8

1920x1080: 15 credits/image - Text to Image - Images × 15

1920x1080: 32 credits/image - Text to Image - Images × 32

1080x1920: 1 credits/image - Text to Image - Images × 1

1080x1920: 3 credits/image - Text to Image - Images × 3

1080x1920: 8 credits/image - Text to Image - Images × 8

1080x1920: 15 credits/image - Text to Image - Images × 15

1080x1920: 32 credits/image - Text to Image - Images × 32

2560x1440: 2 credits/image - Text to Image - Images × 2

2560x1440: 3 credits/image - Text to Image - Images × 3

2560x1440: 12 credits/image - Text to Image - Images × 12

2560x1440: 20 credits/image - Text to Image - Images × 20

2560x1440: 45 credits/image - Text to Image - Images × 45

1440x2560: 2 credits/image - Text to Image - Images × 2

1440x2560: 3 credits/image - Text to Image - Images × 3

1440x2560: 12 credits/image - Text to Image - Images × 12

1440x2560: 20 credits/image - Text to Image - Images × 20

1440x2560: 45 credits/image - Text to Image - Images × 45

3840x2160: 3 credits/image - Text to Image - Images × 3

3840x2160: 6 credits/image - Text to Image - Images × 6

3840x2160: 21 credits/image - Text to Image - Images × 21

3840x2160: 36 credits/image - Text to Image - Images × 36

3840x2160: 81 credits/image - Text to Image - Images × 81

2160x3840: 3 credits/image - Text to Image - Images × 3

2160x3840: 6 credits/image - Text to Image - Images × 6

2160x3840: 21 credits/image - Text to Image - Images × 21

2160x3840: 36 credits/image - Text to Image - Images × 36

2160x3840: 81 credits/image - Text to Image - Images × 81

USD estimates use $0.005/credit with the best annual plan. Final billing follows the selected resolution and model variant.

Generate Image
New tasks appear here after you submit.
API Input

Core request fields

Check which fields the selected model accepts for prompts, reference images, aspect ratio, resolution, and background.

Model payload (JSON)
{
  "model": "gpt-image-2-5-flare-text-to-image",
  "input": {
    "prompt": "A cinematic night city poster with neon reflections on a rainy street.",
    "aspect_ratio": "3:2",
    "resolution": "1K",
    "background": "transparent"
  }
}

Use GPT Image 2.5 Flare Text to Image for generation

The playground, request sample, request fields, and pricing on this page follow the selected model type.

View detailed API docs

Open the full API documentation for endpoints, authentication, task polling, and payload details. /models/gpt-image-2.md

promptstringText prompt. Required, maximum 20,000 characters.
aspect_ratioenumThe aspect ratio of the generated image is set to auto by default. The 27:16, 16:27, 9:8 and 8:9 aspect ratios support 1K only. 2K and 4K are available for other aspect ratios. (auto, 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:9, 27:16, 16:27, 9:8, 8:9)
resolutionenumImage resolution (1K, 2K, 4K)
backgroundenumImage background (transparent, opaque, auto)
Capabilities

What GPT Image 2 API adds to your image workflow

Create an image from a prompt or edit a reference image, then use the selected model’s request fields to integrate it.

Text-to-image creation

Turn structured prompts into production-ready visuals for posters, ads, thumbnails, concept art, and product scenes.

Reference image editing

Use image inputs to preserve subject context while changing style, background, layout, lighting, or product presentation.

Resolution tiers

Select 1K, 2K, or 4K output tiers to balance iteration cost, preview quality, and final asset sharpness.

API-ready payloads

Send the model ID and prompt in the request. Image to Image also requires an array of source image URLs.

Quick Start

From prompt test to image API request

A direct path for teams that want to validate image quality before wiring generation into an app or content pipeline.

1. Choose a mode

Select Text to Image for new visuals or Image to Image when you want reference-guided edits.

2. Submit generation

Authenticate with an API key and send the selected model ID and payload. Include a prompt for either mode and input_urls for Image to Image.

3. Poll and use

Track the task until it succeeds, then use the generated image result in your app, campaign, or asset library.

Use Cases

What you can create with GPT Image 2 API

Use the API when your product needs repeatable, high-quality image generation rather than one-off manual exports.

Product hero images and e-commerce visuals
Social posts, thumbnails, and ad creatives
Poster, flyer, and campaign key art
Reference-based outfit, background, and style edits
Design mockups and visual concept exploration
Batch creative generation for content pipelines
Community Showcase

Successful GPT Image 2 generations from the community

Browse public GPT Image 2 outputs that finished successfully, then open any case to inspect the prompt, settings, and result.

View more
GPT Image 2 - Image To Image preview 1
imageGPT Image 2

GPT Image 2 - Image To Image

提升这张照片的清晰度

Nov 13, 2026View details
GPT Image 2 - Image To Image preview 1
imageGPT Image 2

GPT Image 2 - Image To Image

提升这张照片的清晰度

Nov 12, 2026View details
GPT Image 2 - Image To Image preview 1
imageGPT Image 2

GPT Image 2 - Image To Image

结合提供的logo的设计元素,以红色为主色调生成一份海报,主标题在上半部分用大号美观字体写”STOP SALES“,下方小号美观字体写:2026-2027赛季NBL联赛赛程正式发布 贵州猛龙队主场盲鸟套票即刻停售 早鸟套票11月11日正式上线!

Nov 11, 2026View details
GPT Image 2 - Image To Image preview 1
imageGPT Image 2

GPT Image 2 - Image To Image

结合提供的logo的设计元素,以红色为主色调生成一份海报,主标题在上半部分用大号美观字体写”STOP SALES“,下方小号美观字体写:2026-2027赛季NBL联赛赛程正式发布 贵州猛龙队主场盲鸟套票即刻停售 早鸟套票11月11日正式上线!

Nov 11, 2026View details
GPT Image 2 - Image To Image preview 1
imageGPT Image 2

GPT Image 2 - Image To Image

结合提供的logo的设计元素,以红色为主色调生成一份海报,主标题在上半部分用大号美观字体写”STOP SALES“,下方小号美观字体写:2026-2027赛季NBL联赛赛程正式发布,贵州猛龙队主场盲鸟套票即刻停售,早鸟套票11月11日正式上线!

Nov 11, 2026View details
GPT Image 2 - Image To Image preview 1
imageGPT Image 2

GPT Image 2 - Image To Image

结合提供的logo的设计元素,以红色为主色调生成一份海报,主标题在上半部分用大号美观字体写”STOP SALES“,下方小号美观字体写:2026-2027赛季NBL联赛赛程正式发布,贵州猛龙队主场盲鸟套票即刻停售,早鸟套票和单场票销售即将上线!

Nov 9, 2026View details
Production Notes

Built for real image API workflows

Account-gated execution

Sign in to submit a job in the playground, or use an API key to submit one from your application. Jobs use your account’s credits.

Input image handling

Image to Image accepts source image URLs, so teams can keep references in their own asset pipeline while generating new variations.

Cost-aware resolution

Start with 1K for fast iteration, then move to 2K or 4K when the prompt and visual direction are ready.

FAQ

GPT Image 2 API questions

What is GPT Image 2 API best for?

It is best for prompt-based image generation and reference-guided image editing, including product visuals, ads, social creatives, posters, and design mockups.

What is the difference between Text to Image and Image to Image?

Text to Image starts from a prompt only. Image to Image uses one or more source image URLs plus a prompt, making it better for edits, variations, and reference-preserving workflows.

Which resolutions are available?

The current API configuration includes 1K, 2K, and 4K pricing tiers. Choose lower resolution for iteration and higher resolution for final assets.

Which aspect ratios can I use?

Check the selected model’s field list for supported ratios. For the standard GPT Image 2 modes, auto or an omitted ratio is limited to 1K, and 1:1 is not available at 4K.

How many input images can Image to Image use?

The standard GPT Image 2 Image to Image model accepts up to 16 source image URLs in input_urls. Other variants may have different limits.

Where can I test it before integrating?

Use the playground on this page to test prompts, input image URLs, aspect ratio, resolution, and API payload behavior before moving into production.

Can I use GPT Image 2 API for commercial workflows?

This page is configured for production image workflows. For commercial use, review your account plan, credit balance, model availability, and applicable content policy requirements.

How do I check if a task is complete?

Save the returned task ID and poll the task status endpoint. The service handles provider callbacks internally, so you do not need to send a callback URL.

How should I manage cost?

Use 1K for prompt exploration and bulk drafts, then regenerate selected winners at 2K or 4K when you need sharper final output.

Can I edit existing product photos?

Yes. Use Image to Image with source image URLs and a prompt that describes the exact background, lighting, layout, or styling changes you need.

Start building

Turn GPT Image 2 into your image workflow

Open the generator, test a prompt or reference image, then use the API docs when you are ready to connect GPT Image 2 to production.

API-ready
workflow
1K-4K
resolution
16 images
references