New — access 450+ AI models through one unified API.Start building free

gpt-image-2/edit

5% OFF

OpenAI's GPT Image 2 Edit enables image editing from natural-language instructions with one or more reference images. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

image-to-image$0.0665$0.0700/ run

Prompt

Enhancer
0/2000

Image

PreviewJSON

Your result will appear here

Upload an image, write a prompt and hit Generate.

Examples

A high-end fashion editorial portrait of a blonde Western female model wearing the earrings shown in the image. Warm natural light, with soft botanical shadows cast across her face, minimal background in warm beige tones, premium lifestyle aesthetic, 85mm lens, 8K resolution.

A high-end fashion editorial portrait of a blonde Western female model wearing the earrings shown in the image. Warm natural light, with soft botanical shadows cast across her face, minimal background in warm beige tones, premium lifestyle aesthetic, 85mm lens, 8K resolution.

Related models

gpt-image-2 / text-to-image5% OFFtext-to-image
gpt-image-2 / text-to-image

OpenAI's GPT Image 2 Text-to-Image generates high-quality images from natural-language prompts. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

GPT Image$0.0570$0.0600
gpt-image-1.5 / editimage-to-image
gpt-image-1.5 / edit

GPT Image 1.5 Edit is OpenAI’s image model for precise, natural-language edits. Add/remove objects, swap backgrounds, retouch faces, adjust colors/lighting, edit text/graphics, crop/resize, and apply hex color control. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

GPT Image$0.0400
gpt-image-1.5 / text-to-imagetext-to-image
gpt-image-1.5 / text-to-image

GPT Image 1.5 text to image is OpenAI's fast, cost-efficient text-to-image generator powered by GPT-5 guidance. Create photorealistic shots, product renders, concept art, and stylized graphics from natural-language prompts (optionally conditioned with an image). Supports custom aspect ratios, seeds, negative prompts, hex color hints, and style presets. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

GPT Image$0.0400
gpt-image-1 / text-to-imagetext-to-image
gpt-image-1 / text-to-image

GPT Image 1 is OpenAI's multimodal image generation model combining GPT-4-Turbo reasoning with visual synthesis. It generates high-quality images from text prompts with clean typography for posters, memes, and branding. Supports multiple quality tiers and sizes. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

GPT Image$0.0500
gpt-image-1 / editimage-to-image
gpt-image-1 / edit

GPT Image 1 Edit transforms images with natural language instructions. It applies style changes, modifications, and creative transformations with optional mask support for precise regional editing and multiple quality tiers. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

GPT Image$0.0500

Gpt Image 2 Edit

OpenAI's GPT Image 2 Edit enables image editing from natural-language instructions with one or more reference images. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

Key Features

  • Natural-language editing — describe changes in plain English without manual masking or complex tools.
  • Reference image support — provide up to 16 input images for context, style transfer, or multi-image composition.
  • Flexible aspect ratios — auto-detected from input or manually specified.
  • No manual masking required — the model intelligently infers edit regions from your prompt.
  • Multiple quality and resolution tiers for cost optimization.
  • Seamless blending — edits integrate naturally with the existing image content.

Parameters

ParameterRequiredDescription
promptYesDescription of the edit to apply.
imagesYes1-16 source image URLs to edit or use as reference.
aspect_ratioNoOutput aspect ratio (default: auto-detected from input).
resolutionNoOutput resolution: '1k', '2k', or '4k' (default: '1k').
qualityNoQuality level: 'low', 'medium' (default), or 'high'.
output_formatNoOutput format: 'png', 'jpeg', or 'webp'.
enable_sync_modeNoEnable synchronous response mode.
enable_base64_outputNoReturn base64-encoded image data.

How to Use

  1. Provide one or more source images (up to 16 URLs).
  2. Describe the change you want — be specific about what to add, remove, or modify.
  3. Select quality and resolution based on your needs.
  4. Generate and download your edited image.

Code Examples

import os
import requests

response = requests.post(
    "https://aircube.ai/api/v3/gpt-image-2/edit",
    headers={
        "Authorization": "Bearer " + os.environ["AIRCUBE_API_KEY"],
        "Content-Type": "application/json",
    },
    json={
    "prompt": "Remove the person in the background and replace with a clean beach landscape, maintain warm lighting",
    "images": [
        "https://example.com/beach-photo.jpg"
    ],
    "quality": "medium",
    "resolution": "2k"
},
    timeout=300,
)
data = response.json()

if data["success"]:
    print("ID:", data["data"]["id"], "Status:", data["data"]["status"])
else:
    print("Error:", data["error"]["message"])

Pricing

ResolutionDurationCost
1klow quality$0.02
2klow quality$0.03
4klow quality$0.04
1kmedium quality$0.07
2kmedium quality$0.11
4kmedium quality$0.19
1khigh quality$0.23
2khigh quality$0.41
4khigh quality$0.73

Billing rules

  • Pricing varies by quality x resolution combination.
  • Low quality: $0.02 (1k), $0.03 (2k), $0.04 (4k).
  • Medium quality: $0.07 (1k), $0.11 (2k), $0.19 (4k).
  • High quality: $0.23 (1k), $0.41 (2k), $0.73 (4k).
  • Failed generations are not charged.

Best Use Cases

  • Product photo enhancement — improve lighting, background, and presentation of product images.
  • Creative retouching — modify elements, add effects, or change visual style.
  • Marketing asset adaptation — adjust images for different campaigns, audiences, or platforms.
  • Social media reformatting — adapt images for different aspect ratios and contexts.
  • Design iteration — rapidly explore variations of a concept without manual editing.
  • E-commerce optimization — enhance product images for better conversion.

Pro Tips

  • Be specific about what to change — 'replace the red car with a blue bicycle' is better than 'change the vehicle'.
  • No manual masking needed — the model infers edit regions from your prompt description.
  • Provide multiple reference images (up to 16) for style transfer or multi-image composition tasks.
  • Describe the desired result, not the process: 'a sunny sky' rather than 'remove the clouds'.
  • Use high-quality source images for the best edit blending.

Notes

  • Supports up to 16 input images per request.
  • Aspect ratio auto-detected from input when not specified.
  • Output formats: PNG, JPEG, or WebP.
  • Median generation time: approximately 64 seconds.

Gpt Image 2 Edit — Frequently asked questions