OpenAI/GPT Image 2

-60%vs official

OpenAI GPT Image 2, the model behind ChatGPT Images 2.0: text-to-image, multi-reference editing and mask inpainting, with high-fidelity inputs and stronger text in scripts such as Chinese, Japanese and Korean. Long edge up to 3840 px, aspect ratio up to 3:1. OpenAI plans to retire its API on February 10, 2027.

24-hour availability —Text to ImageImage to ImageInput $2.00/1MOutput $12.00/1MData privacy

Inputlive schema

Generate images from a text description, or upload reference images and say in the prompt what "reference image 1" and "reference image 2" are for, to edit, replace backgrounds or compose several images.

View docs
Try

Image generation or editing instruction.

0 chars

Reference Images
Up to 16 images 0/16
Mask Image
Up to 1 image 0/1

More parameters

No test requests yet. Send your first request.

Output

Urban Fashion Editorial
Example output — Urban Fashion Editorial · GPT Image 2. Run the model to generate your own — results appear here.

Availability 24 hours

Hourly success rate of all completed requests to this site.

Loading…

Pricing

This model is priced by the usage dimensions listed here. Compare all pricing.

Prices are shown in USD. Charges depend on the model and your actual usage.

Billing itemOur priceCurrent pricefal.aiOfficial priceSavings
Text input$2/1M tokens$5/1M tokens$5/1M tokens60% cheaper than official60% cheaper than fal.ai
Cache read$0.5/1M tokens$1.25/1M tokens$1.25/1M tokens60% cheaper than official60% cheaper than fal.ai
Image input$3.2/1M tokens$8/1M tokens$8/1M tokens60% cheaper than official60% cheaper than fal.ai
Cached image input$0.8/1M tokens$2/1M tokens$2/1M tokens60% cheaper than official60% cheaper than fal.ai
Image output$12/1M tokens$30/1M tokens$30/1M tokens60% cheaper than official60% cheaper than fal.ai

Reference prices checked on 2026-12-02: fal.ai

README

GPT Image 2

OpenAI GPT Image 2 generates from text, edits with up to 16 reference images and repaints masked regions, keeping reference detail at high fidelity, with reliable multilingual text. Long edge up to 3840 px, up to 10 images per request. Text-to-image and image-to-image on DreamTo; API retirement: February 10, 2027.

Why Choose This?

Flexible image dimensions
Describe the composition and size required by the current brand template. Alternate placements can have their own subject position and text area. Review each result alongside approved artwork to see whether the changes fit the intended slot.
Reference details
Identify the outline, edge details, and lettering that should remain intact during an edit. Locate the background or accessory that needs to change, then compare small visual details with the official product material before approving the result.
Review usage with the image
Text inputs, reference images, and generated image outputs affect token use. Save the output dimensions and observed usage for representative tasks so a reviewer can consider composition, suitability, and actual cost together.

Parameters

ParameterRequiredDescription
modelstringRequiredModel ID to call. Use gpt-image-2.
promptstringRequiredText description of what to generate.
sizestringOptionalOutput image size. Default: auto.
qualityenumOptionalOutput quality level. Options: auto, low, medium, high. Default: auto.
output_formatenumOptionalOutput Format Options: png, jpeg, webp.
backgroundenumOptionalBackground Options: auto, transparent, opaque.
nintegerOptionalNumber of outputs to generate.
userstringOptionalEnd-User ID
output_compressionintegerOptionalOutput Compression
streambooleanOptionalStream the reply as server-sent events.
partial_imagesintegerOptionalPartial Images
moderationenumOptionalModeration Level Options: auto, low.
safety_identifierstringOptionalSafety Identifier
input_fidelityenumOptionalInput Fidelity Options: high, low.
markupstringOptionalAnnotation Image
reference_imagesarrayOptionalReference Images

How to Use

  1. Try it here first — Sign in and run the model in the playground above to check the output before you write code.
  2. Create an API key — Open Console → API Keys and create a key. The same key works for every model.
  3. Write your prompt — Describe the subject, style, composition and lighting you want.
  4. Set optional parameters — Adjust the optional parameters listed above to control the output.
  5. Send the request — Call POST /v1/images/generations with the model ID gpt-image-2.
  6. Read the result — The generated output comes back in the response and the request is logged in the console.

Writing Effective Prompts

The model reads a prompt like a creative brief. Name the subject first, then add the details that matter.

1. Subject and action

Who or what is in the image, and what it is doing.

2. Style and medium

Photo, 3D render, watercolor or flat illustration. For photographic looks, name a lens or film stock.

3. Composition

Framing and viewpoint: close-up, wide shot, overhead, centered, rule of thirds.

4. Lighting and color

Golden hour, soft studio light, neon, a pastel palette, high contrast.

5. Text in the image

Put the exact words in quotes and say where they go.

A poster with the headline "OPEN LATE" in bold white letters across the top.
Prompt
Weaka coffee shop
StrongA cozy corner coffee shop on a rainy evening, seen through the front window. Warm tungsten light inside, a barista pouring latte art, condensation on the glass, street reflections. 35mm photo, shallow depth of field, muted teal and amber palette.

Pricing

Billing itemPriceOfficial price
Input$2.00 per 1M tokens$5.00 / 1M tokens
Cache read$0.50 per 1M tokens$1.25 / 1M tokens
Image input$3.20 per 1M tokens$8.00 / 1M tokens
Cached image input$0.80 per 1M tokens$2.00 / 1M tokens
Output$12.00 per 1M tokens$30.00 / 1M tokens

That is 60% below the official list price.

Example: a request with 10,000 input tokens and 1,000 output tokens costs about $0.03.

Prices are shown in USD. Charges depend on the model and your actual usage. Compare all pricing

Best Use Cases

  • Established banner refreshUse an approved banner as the reference and replace the background subject while retaining the title space. Preview the update at the original dimensions with its actual headline before making it the production asset.
  • Product detail reviewBegin with the approved store image and adjust the surface or viewpoint. Check brand marks and overall shape, then place the revised asset back in the existing product page to see whether its crop needs another pass.
  • Refresh older editorial artUpdate an illustration for an existing article while retaining the series palette, line treatment, and recurring elements. Preview titles of different lengths after the update to catch collision with the old page template before publishing.
  • Migration comparison setCollect approved examples covering lettered posters, reference-based edits, and unusual dimensions. Run the same briefs on the model being evaluated and record changes in small lettering, subject relationships, and the area available to place final copy.

Pro Tips

  • State the reference purpose — Say whether an image is supplied for color, composition, or subject identity. Describe where the final output belongs and inspect whether details unrelated to the reference’s role carried through into the new artwork.
  • Make samples comparable — Compare the same copy at the same size and quality, then vary one setting at a time. Retain reference inputs where relevant so a later reviewer can reproduce the reasoning behind a chosen version.
  • Define migration approval criteria — Score lettering, product shape, and placement independently on the replacement output. Include frequently used and high-risk templates in the trial run, then record who checked each sample and what still needs attention before switching.

FAQ

What is GPT Image 2?

OpenAI GPT Image 2 generates from text, edits with up to 16 reference images and repaints masked regions, keeping reference detail at high fidelity, with reliable multilingual text. Long edge up to 3840 px, up to 10 images per request. Text-to-image and image-to-image on DreamTo; API retirement: February 10, 2027.

How do I call the GPT Image 2 API?

Send POST /v1/images/generations with the model ID gpt-image-2 and your API key. Ready-to-run samples are in the API section above.

How is billing calculated?

Charges are based on the selected model, its billing method, and your actual usage.

Where do I get an API key?

Create one in Console → API Keys. The same key works for every model on the gateway.

Can I use the output commercially?

Yes. You can use what you generate in commercial projects, subject to the model provider’s terms.

About GPT Image 2 on DreamTo

OpenAI GPT Image 2 generates from text, edits with up to 16 reference images and repaints masked regions, keeping reference detail at high fidelity, with reliable multilingual text. Long edge up to 3840 px, up to 10 images per request. Text-to-image and image-to-image on DreamTo; API retirement: February 10, 2027.