Actions15
- Audio Actions
- Document Actions
- File Search Actions
- Image Actions
- Media File Actions
- Text Actions
- Video Actions
Image → Edit Image
AI-generatedSummary
Edit one or more images by uploading them via URL or binary input, providing a text prompt describing the desired edits, and receiving the edited images as binary output.
Inputs
- Model (required) — Select the image editing model to use by ID or from a searchable list.
- Prompt (required) — Text describing the edits to be applied to the image(s), e.g., 'Remove the background and make it transparent'.
- Input Type (required) — Choose whether to provide images as URLs or binary file data.
- URL(s) — Comma-separated URLs of the images to edit (used if Input Type is 'Image URL(s)').
- Input Data Field Name(s) — Comma-separated input field names containing the binary image data to edit (used if Input Type is 'Binary File(s)').
Output shape
List of edited images as binary file outputs, each paired with the input item index.
Each returned item contains the edited image as binary data named 'data' and JSON metadata including the model used. Multiple images can be input and edited simultaneously by specifying multiple URLs or binary fields.
Examples
Example 1: Edit multiple images by URL
Model: gemini-nano-banana-image-edit, Input Type: URL, URLs: https://example.com/image1.png,https://example.com/image2.png, Prompt: 'Make background transparent'.
Example 2: Edit an image from binary input
Model: gemini-nano-banana-image-edit, Input Type: Binary, Binary Data Field: 'imageData', Prompt: 'Add a cartoon filter'.