GPT Image 2 Edit

Image to Image
gpt-image-2-edit

Image 2 is OpenAI’s advanced image generation and editing model, offering high-quality visuals, strong instruction following, accurate text rendering, and flexible image editing.

Context Window

0 tokens

Release Date

Apr 21, 2026

Modalities

GPT Image 2 Edit Pricing

ResolutionLowMediumHigh
1K$0.02$0.07$0.23
2K$0.03$0.11$0.41
4K$0.04$0.19$0.73

GPT Image 2 Edit API Capabilities

Reasoning

Not supported

Tool calling

Not supported

Temperature parameter

Not supported

Attachments

Supported

Knowledge Base

—

Endpoint Protocols

Generation Tasks

GPT-Image-2 Edit Model Highlights

GPT-Image-2 Edit represents the editing workflow of GPT-Image-2, combining text-guided revisions, high-fidelity image input and flexible output sizing.

Text-Guided Editing

Natural-language instructions can direct visual changes to supplied images, simplifying iterative creative workflows.

High-Fidelity Image Input

High-fidelity image handling helps preserve important source details while applying requested edits.

Flexible Output Sizing

Flexible image dimensions allow edited assets to be prepared for different layouts, placements and delivery channels.

GPT-Image-2 Edit Use Cases

GPT-Image-2 Edit is suited to product retouching, creative asset adaptation and iterative visual concept refinement.

Product Image Retouching

Adjust backgrounds, lighting, composition or presentation while preserving important details of the supplied product image.

Cross-Format Asset Adaptation

Recompose existing artwork for banners, square posts or other placements while retaining its key visual elements.

Iterative Concept Refinement

Revise colors, objects, atmosphere and layout through successive instructions to move a visual concept toward the desired result.

How to Use GPT Image 2 Edit via the TokenHub API

Create API key
SUBMIT_RESPONSE=$(curl 'https://us-api.tokenhub.com/generation/tasks' \
  -X 'POST' \
  -H "Authorization: Bearer $TOKENHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "aspect_ratio": "1:1",
  "images": [
    "https://example.com/input-product.png"
  ],
  "mask_url": "https://example.com/mask.png",
  "model": "gpt-image-2-edit",
  "output_format": "png",
  "quality": "high",
  "response_format": "url"
}')
TASK_ID=$(printf '%s' "$SUBMIT_RESPONSE" | python -c "import json,sys; print(json.load(sys.stdin)['data']['task_id'])")
ENCODED_TASK_ID=$(TASK_ID="$TASK_ID" python -c 'import os,urllib.parse; print(urllib.parse.quote(os.environ["TASK_ID"], safe=""))')

for attempt in 1 2 3 4 5 6 7 8 9 10; do
  TASK_RESPONSE=$(curl 'https://us-api.tokenhub.com/generation/tasks/'"${ENCODED_TASK_ID}" \
    -H "Authorization: Bearer $TOKENHUB_API_KEY")
  printf '%s\n' "$TASK_RESPONSE"
  # Stop polling here when the response reports a terminal status.
  [ "$attempt" -eq 10 ] || sleep 2
done

GPT Image 2 Edit Media, Demos and Reviews

Selected public announcements, practical demonstrations, comparisons, tutorials, and critical evaluations of GPT Image 2.

X (Twitter)

View original
View post on X
View original
View post on X
View original
View post on X

Reddit

View original
View original
View original

YouTube

View original
Watch on YouTube
View original
Watch on YouTube
View original
Watch on YouTube

GPT Image 2 Edit FAQs

Useful questions about editing images with GPT Image 2 Edit on TokenHub.

What is GPT Image 2 Edit?+

This TokenHub entry is intended for image-editing workflows powered by GPT Image 2. OpenAI documents gpt-image-2 as a high-quality image generation and editing model with text and image inputs and image output.

What editing tasks is GPT Image 2 Edit best suited for?+

It is well suited to object replacement or removal, background and lighting changes, product mockups, virtual try-on, image compositing, style transformation, and edits that should preserve important parts of the source image.

What are the main strengths of GPT Image 2 Edit?+

Its strengths include high-quality editing, flexible output sizes, high-fidelity image inputs, inpainting support, strong compositing, and reliable handling of detailed instructions and text-heavy designs.

What limitations or tradeoffs should I consider?+

Complex edits may still alter details that were meant to remain unchanged, and text, identity, geometry, or fine edges can require additional iterations. State clearly what may change and what must remain fixed, then review important outputs.

How do I use GPT Image 2 Edit through TokenHub?+

Select GPT Image 2 Edit in your TokenHub request, provide the source image and an explicit editing prompt, and use the endpoint and credentials assigned to your TokenHub account. Follow the current TokenHub request schema for supported options.

How are pricing and availability determined?+

Image cost can vary with output size, quality, and other request settings. TokenHub pricing, quotas, supported options, and regional or account availability may change, so check the current model page and your account limits before production use.

When should I choose GPT Image 2 Edit instead of another image model?+

Choose it when editing quality, instruction following, flexible sizing, compositing, or preservation of source-image details matters more than obtaining the lowest possible cost. Compare it with lighter alternatives when throughput and budget are the primary constraints.

Ready to use GPT Image 2 Edit?

Use one API key to access GPT Image 2 Edit and more AI models through TokenHub.

Create API key