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

OpenAI modelsimage generation api

openai/gpt-image-1.5/edit

Gpt 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.

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.

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

The URL of the mask image to use for the generation. This indicates what part of the image to edit.
The aspect ratio of the generated image. Allowed values: 1:1, 2:3, 3:2.
Output format for the images Allowed values: jpeg, png.
Input fidelity for the generated image Allowed values: low, high.
Quality for the generated image Allowed values: low, medium, high.
Background for the generated image Allowed values: auto, transparent, opaque.
Idle

Example output — click Run to generate your own

API README

GPT Image 1.5 Edit

GPT Image 1.5 Edit applies natural-language changes to one or more source images while preserving the visual information that should remain stable. It is designed for iterative creative work such as product changes, compositing, localized replacement, background treatment, and campaign variation where rebuilding the entire image would lose important identity or layout cues.

The model combines strong instruction following with improved rendering of text and dense compositions. It can reconcile several references, maintain recognizable people or products, and make targeted changes through written direction or a mask, supporting both precise corrections and broader art-directed revisions.

Highlights

Precise instruction following. Applies detailed edit requests while distinguishing requested changes from content that should remain intact.

High-fidelity preservation. Maintains recognizable people, products, style, and composition across iterative revisions.

Multi-image composition. Combines information from several references into a coherent edited result.

Improved text rendering. Creates and revises typography more reliably inside posters, interfaces, packaging, and designed scenes.

Pricing

Quality1:12:3 or 3:2
Low$0.009$0.013
Medium$0.034$0.051
High$0.133$0.200

When to Use

✅ Good fit❌ Consider alternatives
The model's named workflow matches the source material and intended outputA different input modality or model route is required
A managed asynchronous result is suitable for the production pipelineA synchronous, interactive editor is essential
The documented controls cover the required duration, framing, or formatThe project needs controls outside this endpoint's schema
Creative iteration benefits from a repeatable request structureExact deterministic pixels, frames, geometry, or samples are mandatory
A finished downloadable media asset is the desired deliverableEditable source layers or a native project file are required

Prompt Guide

For generation, state the intended result first, then add the subject or source treatment, progression, style, and delivery constraints. Keep one creative variable per phrase, use the documented field names for controls, and change one setting at a time when comparing results.

{
  "aspect_ratio": "1:1",
  "images": [
    "https://static.sandbase.ai/examples/openai/gpt-image-1.5/edit/input_images_0.png"
  ],
  "output_format": "png",
  "prompt": "Same workers, same beam, same lunch boxes - but they're all on their phones now. One is taking a selfie. One is on a call looking annoyed. Same danger, new priorities. A hard hat has AirPods."
}

Technical Specs

SpecValue
Model IDopenai/gpt-image-1.5/edit
Inputsaspect_ratio, background, images, input_fidelity, mask, output_format, prompt, quality
Required inputsprompt
Output fieldscontent_type, url
ExecutionAsync (submit, then poll for result)
Aspect Ratio1:1 / 2:3 / 3:2
Output Formatjpeg / png
Qualitylow / medium / high

Related Models

Related Models