Skip to main content
POST
GPT Image 2 Light Edit
GPT Image 2 Light image editing API. It accepts image URLs via the images array, edits the input images according to the prompt, and returns the edited image URLs.

Request Headers

string
required
Enum value: application/json
string
required
Bearer authentication format: Bearer {{API key}}.

Request Body

object
string
default:"1024x1024"
Output image resolution.Available values: 1024x1024, 1024x1536, 1536x1024, 1152x2048, 2048x1152, 2048x2048, 2160x3840, 3840x2160
object[]
required
List of source images to edit in JSON URL mode. At least one image_url is required. Supports URLs or data URLs.Array length: 1 - 16
string
required
Editing instructions describing how you want to modify the input image. If empty, prompt is required will be returned.Length limit: 0 - 32000
string
Output image background handling method.Available values: auto, opaque
string
Content moderation strictness.Available values: auto, low

Response

string[]
Array of edited result image URLs stored and converted by the platform.