HiAPI
21:9 Hero 图:左侧暖光留白,右侧悬浮半透明玻璃图像卡片与虹彩棱镜光带,冰蓝与珊瑚粉渐变;gpt-image-2 发光立体字蚀刻于主卡片中。

OpenAI

GPT Image 2

gpt-image-2/image-to-image

OpenAI's image generation and editing model, focused on photorealistic quality, high-precision text rendering, and native 4K output, suited for commercial materials and product images that contain text

Route

Try gpt-image-2/image-to-image

Input

Output

image
Fill in the parameters and run — results show up here.

Pricing

gpt-image-2/image-to-image per image

Specifications Unit Price
1K $0.030
2K $0.040
4K $0.060

Positioning Overview

gpt-image-2/image-to-image is the image regeneration and editing line within OpenAI's image model family. It accepts 1 to 16 reference images plus a text prompt and outputs a reconstructed image. It is suited to development scenarios that require rewriting, outpainting, style unification, or layout replacement based on existing assets, and lets you select the aspect ratio and up to 4K resolution according to delivery specifications. Compared with pure text-to-image, the value of this line lies in anchoring generation results to the reference images provided by the developer.

Core Highlights

  • Multi-image reference input — a single call can submit 1 to 16 reference images, using the asset collection as the basis for generation rather than relying on text descriptions alone.
  • Aspect ratio selectable by delivery spec — built-in support for more than ten ratios from 1:1 and 16:9 to 21:9 and 9:21, which can be directly aligned with landing pages, feed placements, and vertical assets.
  • Resolution up to 4K — supports 1K, 2K, and 4K output tiers; the 1:1 aspect ratio does not support 4K. High resolution can be used for print-grade or large-screen assets.
  • Transparent background output supported — at 1K resolution you can choose transparent, opaque, or automatic background mode, making it easy to composite directly into other design layers.

Capability Description

Image rewriting driven by reference images: generates a new image based on the input image, suitable for replacing style, adjusting composition, or creating variants from existing assets; the result inherits the visual cues of the reference image.

Combined control of aspect ratio and resolution: output specifications are determined by the aspect_ratio and resolution parameters; when auto or a special aspect ratio is selected, the aspect ratio is limited to 1K, so constraints must be set on the parameters in advance.

Background mode control: the background parameter offers three values: auto, opaque, and transparent. It takes effect only at 1K resolution and is suitable for downstream workflows that require background removal or layered compositing.

Long prompt constraint: the prompt limit is 20,000 characters, so multiple constraints, layout instructions, and copy content can be written in a single pass, reducing the need for multi-round supplementary descriptions.

Multi-image asset merging: input_urls supports passing multiple images at once, allowing the subject, style reference, and layout sample to be provided separately and synthesized by the model into a single output.

Applicable Scenarios

  • Design teams extending existing key visuals into multiple specs — upload the key visual and different aspect ratio requirements to produce batches of versions adapted for feed, splash screen, and vertical placements, ready to enter the delivery asset library.
  • E-commerce operations regenerating product images in contextual scenes — pass in real-shot product images to generate finished images under different backgrounds and lighting for replacement on detail pages and ad slots.
  • Iterating image-and-text layouts in visual design — use an existing layout draft as reference, replace copy and graphic elements via prompts, and produce a new design draft for review.
  • Compositing workflows that need transparent-background assets — enable transparent background output at 1K and overlay the result directly onto other layers or scenes, eliminating manual cutout work.

Limitations and Model Selection Advice

This line outputs images only and does not involve other modalities such as video or text. Resolution and aspect ratio have coupled constraints: automatic or special aspect ratios support only 1K, 1:1 does not support 4K, and transparent backgrounds are available only at 1K, so high specifications and background control require trade-offs on the parameters. High resolution and multi-image references increase generation time and call cost, making this unsuitable for real-time interactive scenarios with extremely low latency requirements; if you only need to generate images directly from text without reference assets, you should choose the text-to-image line in the same family.

  • Parameter change gpt-image-2 added 1K / 2K / 4K resolution tiers

Frequently asked questions

View all FAQs →
  • What is GPT Image 2?

    GPT Image 2 is an OpenAI text-to-image model for posters, knowledge cards, product visuals, and images with explicit text and layout requirements.

  • Is GPT Image 2 the same as GPT Image 2.0?

    GPT Image 2.0 is a common search shorthand; use the exact GPT Image 2 model ID shown on this page and in the API docs.

  • Which endpoint and model ID does the GPT Image 2 API use?

    Send POST requests to /v1/tasks, set model to gpt-image-2/text-to-image, and pass prompt, aspect_ratio, and resolution in input. The create response returns a taskId; retrieve the final image through task polling or a callback.

  • How do I use GPT Image 2?

    In the Playground, describe the subject, scene, layout, and exact text, then choose the aspect ratio, resolution, and background. Click Run to view the result.

Related Models

View all models →

Same Type