advanced_edit
Edit images with AI: remove or insert objects, expand canvas, swap backgrounds, transfer styles, or create product images.
Instructions
Advanced image editing with specialized modes (requires Vertex AI).
This feature requires Google Cloud Vertex AI credentials. Set GOOGLE_CLOUD_PROJECT environment variable to enable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Edit instruction | |
| edit_mode | Yes | One of: inpaint_removal, inpaint_insertion, outpaint, background_swap, style_transfer, product_image | |
| mask_path | No | Optional mask image for inpainting operations | |
| image_path | Yes | Path to the image to edit | |
| output_format | No | Output format (png, jpeg, webp) | png |
| output_filename | No | Custom output filename (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||