Create image edit (inpainting / image-to-image)
GoModel API reference for POST /v1/images/edits: Create image edit (inpainting / image-to-image).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
- Option 1
- Option 2
Source image to edit (single-image form; gpt-image-1 and DALL·E 2). At least one of image or image[] is required
Text description of the desired edit
Model ID
Repeatable field carrying several source images (gpt-image-1, up to 16). At least one of image or image[] is required
16PNG whose transparent areas mark where the image should be edited
Number of images to generate
x >= 1Output size, e.g. 1024x1024
Output quality (model-specific)
url or b64_json (DALL·E 2 only; gpt-image-1 always returns b64_json)
End-user identifier forwarded to the provider