Overview
Edit images using inpainting. Supportsdall-e-2 and gpt-image-1. Upload an image and optionally a mask to indicate which areas to regenerate based on the prompt.
Method Signature
Parameters
The image to edit. Must be a valid PNG file, less than 4MB, and square.
A text description of the desired edits.
An additional image whose fully transparent areas (alpha = 0) indicate where the image should be edited. Must be a valid PNG file, less than 4MB, and the same dimensions as
image.The model to use for image editing:
openai/dall-e-2openai/gpt-image-1
Number of images to generate (1-10). For
dall-e-3, only n=1 is supported.Format for returned images:
url or b64_json.Size of the generated images. Must be one of the valid sizes for the selected model.
Unique identifier for your end-user, for monitoring and abuse detection.
Response
Unix timestamp when the images were created.
List of edited images.