Expand image (outpaint)
outpaint_imageExtend an image beyond its borders by setting expansion per side in pixels or percent; canvas, mask, and model-aligned sizes are built 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_path": "<image_path>",
"prompt": "<prompt>"
},
"name": "outpaint_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| left | No | ||
| seed | No | Seed for reproducible results; omit or -1 for random. Never reuse the seed the source image was generated with: use a different one or omit it | |
| 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. |