edit_image
Edit images with text instructions: change colors, add/remove objects, swap backgrounds, adjust lighting, apply artistic effects, or combine multiple reference images. AI-reviewed WebP output.
Instructions
Edit images based on text instructions using AI with support for multiple reference images. Modify colors, add/remove objects, change backgrounds, adjust lighting, apply artistic effects, or combine multiple images. Uses reference image(s) + text prompt for intelligent editing. Supports various aspect ratios. Outputs high-res WebP with AI quality review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Detailed instructions for editing the image(s). Examples: 'Change the background to a sunset beach scene', 'Make the colors more vibrant', 'Add falling snow', 'Combine these images side by side', 'Remove the person in the background', 'Change the shirt color to blue', 'Blend these two images together' | |
| input_paths | No | Array of local file paths or URLs to reference images (e.g., ['/path/to/image1.jpg', '/path/to/image2.jpg'] or ['https://example.com/image.jpg']). Can be a single image or multiple images for combining/referencing. | |
| aspect_ratio | No | Aspect ratio for the output image. Options: '1:1' (1024x1024), '2:3' (832x1248), '3:2' (1248x832), '3:4' (864x1184), '4:3' (1184x864), '4:5' (896x1152), '5:4' (1152x896), '9:16' (768x1344), '16:9' (1344x768), '21:9' (1536x672). Default: preserves original aspect ratio |