Edit image
edit_imageEdit an existing image via a natural-language prompt; keeps its width, height, and aspect ratio, and never overwrites the original.
Instructions
Edit an existing image with a natural-language instruction (e.g. 'make the background nighttime, keep the foreground unchanged'). Preserves the input's width, height and aspect ratio by default. The input file is never overwritten.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Seed for reproducible results; omit or -1 for random | |
| prompt | Yes | The change to make, e.g. 'make the background nighttime, keep the foreground unchanged' | |
| quality | No | All run Qwen-Image 2.1 Turbo (8 steps): fast = ~1 MP (the default, fastest); balanced = ~1.5K; quality = native 2K (slowest; edits share 2K with their references) | |
| image_path | Yes | Image to edit (absolute, or relative to the project) | |
| output_path | No | Optional destination (absolute, or relative to the project). Must be inside the project or the app output folder. Existing files are never overwritten; a numbered name is used instead. | |
| include_preview | No | Also return a small JPEG preview in the tool result. Default false: images stay local and are not sent to the model. | |
| preserve_dimensions | No | Keep the input's exact width/height (default true) |