Edit or modify an image using up to three layered inputs (base image plus masks/overlays).
Supported input formats by Content-Type:
multipart/form-data: Only file uploads are supported. Send images as form file fields.
application/json: Base64 strings and URLs are supported:
"iVBORw0KGgoAAAANSUhEUgAA...""data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...""https://example.com/image.png"Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Edit an image by compositing up to three layered images with a single prompt. Supports base64-encoded strings and URLs.
The text directions to edit or modify the image. Short, descriptive prompts work best (e.g., "remove the tree", "change the sky to sunrise"). Character limit is model specific and is listed in the promptCharacterLimit setting in the model list endpoint.
1 - 32768Array of 1 to 3 images used for multi-editing. The first image is treated as the base image, and the remaining images are used as edit layers/masks. Each image can be a base64-encoded string or a URL starting with http:// or https://. Image dimensions must be at least 65536 pixels and must not exceed 33177600 pixels. File size must be less than 25MB.
1 - 3 elementsImage as a base64-encoded string or a URL starting with http:// or https://
The model ID to use for multi-edit.
qwen-edit, flux-2-max-edit, gpt-image-1-5-edit, nano-banana-pro-edit, seedream-v4-edit 1OK
The response is of type file.