Expand image (outpaint)
outpaint_imageExtend an image beyond its borders by setting per-side pixel or percent expansion and a prompt for the new area; canvas, mask, and sizes build automatically while original pixels stay exact.
Instructions
Extend an image beyond its borders. Give the expansion per side in pixels or percent; the canvas, mask and model-aligned sizes are built automatically and the original pixels are preserved exactly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| left | No | ||
| seed | No | Seed for reproducible results; omit or -1 for random | |
| right | No | ||
| units | No | Units for left/right/top/bottom; percent is relative to the image width (left/right) or height (top/bottom) | pixels |
| bottom | No | ||
| prompt | Yes | What the extended area should contain | |
| 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 | ||
| 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. |