SandBase is live — $1 in free credits on signupStart free ›

OpenAI modelsimage generation api

openai/gpt-image-1-mini/edit

Gpt Image 1 Mini Edit is OpenAI's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.

Input
The prompt for image generation

PNG, JPEG, WebP, or GIF · 20 MiB maximum each

The URLs of the images to use as a reference for the generation.
Output format for the images Allowed values: jpeg, png.
Background for the generated image Allowed values: auto, transparent, opaque.
Quality for the generated image Allowed values: auto, low, medium, high.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
Idle

Example output — click Run to generate your own

API README

Gpt Image 1 Mini Edit

Gpt Image 1 Mini Edit is built for instruction-following image generation, with this exact route focused on precise image editing. Gpt Image 1 Mini Edit is OpenAI's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion. It is designed for production workflows that need a clearly scoped media operation instead of a generic assistant response, preserving the supplied direction while returning an artifact ready for review, iteration, or downstream assembly.

The request surface keeps creative direction and delivery choices explicit through prompt, quality, sync_mode, background, image_size, image_urls. Teams can lock source material, describe the intended result, choose supported output controls, and rerun the same request structure across variations. This makes experiments easier to compare and larger pipelines easier to operate without hiding important decisions inside an opaque preset.

Highlights

  • Precise Image Editing. The openai/gpt-image-1-mini/edit route is dedicated to precise image editing, keeping inputs and outputs matched to this operation.
  • Quality-Aware Visual Production. Within openai/gpt-image-1-mini/edit, documented prompt and media controls direct quality-aware visual production while keeping the brief close to the result.
  • Detailed Compositional Control. The openai/gpt-image-1-mini/edit result provides detailed compositional control in a machine-consumable form for review and downstream production.
  • Route-specific control. For openai/gpt-image-1-mini/edit, documented controls include prompt, quality, sync_mode, background, image_size, image_urls, defining the supported variation space for this exact route.

Pricing

ConfigurationPrice
Up to 1,000 characters$0.002
1,001–2,000 characters$0.004
Each additional started 1,000 characters+$0.002

When to Use

ScenarioWhy it fits
Choose this routeWhen the deliverable is specifically precise image editing, not a neighboring generation or editing task.
Production iterationWhen creative teams need repeatable quality-aware visual production with an explicit request payload.
Automated pipelinesWhen detailed compositional control must flow into review, storage, compositing, or publishing.
Controlled variationsWhen a stable brief should be rerun while changing only documented inputs.
Prototype to scaleWhen the same openai/gpt-image-1-mini/edit contract should serve a single experiment and a larger batch later.

Prompt Guide

Lead with the subject or source, then state the transformation, important spatial or temporal details, style, and finish. Supply only documented fields, keep media URLs reachable, and vary one control at a time when comparing outputs.

{
  "prompt": "A directed creative request with subject, setting, style, motion, and finish."
}

Technical Specs

PropertyValue
Model IDopenai/gpt-image-1-mini/edit
Required inputsprompt
promptstring
qualitystring; options: auto, low, medium, high; default: auto
sync_modeboolean; default: false
backgroundstring; options: auto, transparent, opaque; default: auto
image_sizestring; options: auto, 1024x1024, 1536x1024, 1024x1536
image_urlsarray
num_imagesinteger; default: 1
output_formatstring; options: jpeg, png, webp; default: png
safety_tolerancestring; default: 6

Related Models

  • openai/gpt-image-1-mini
  • openai/gpt-image-1/edit

Related Models

openai/gpt-image-1-miniGpt Image 1 Mini by OpenAI - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.openai/gpt-image-1Gpt Image 1 is OpenAI's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.openai/gpt-image-1.5Gpt Image 1.5 is OpenAI's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.openai/gpt-image-1.5/editGpt Image 1.5 Edit by OpenAI - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.openai/gpt-image-1/editGpt Image 1 Edit by OpenAI - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.openai/gpt-image-2GPT Image 2, OpenAI's latest image model, is capable of making fine-grained, detailed edits to images.openai/gpt-image-2.5-flareGPT Image 2.5 Flare is optimized for fast, high-quality image generation for everyday creative workflows.openai/gpt-image-2.5-flare/editGPT Image 2.5 Flare Edit is optimized for fast, high-quality image editing and multi-image composition.