GPT Image 2 Light Edit
Images
GPT Image 2 Light Edit
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
Enum value:
application/jsonBearer authentication format: Bearer {{API key}}.
Request Body
Output image resolution.Available values:
1024x1024, 1024x1536, 1536x1024, 1152x2048, 2048x1152, 2048x2048, 2160x3840, 3840x2160List 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
Editing instructions describing how you want to modify the input image. If empty, prompt is required will be returned.Length limit: 0 - 32000
Output image background handling method.Available values:
auto, opaqueContent moderation strictness.Available values:
auto, lowResponse
Array of edited result image URLs stored and converted by the platform.