recraft_outpaint
Extend an image beyond its original boundaries by generating new content with AI. Specify target size, per-side expansion, or zoom-out to fill the extended canvas.
Instructions
Extend an image beyond its original boundaries with AI-generated content (canvas expansion). Different from recraft_generate_background, which only fills masked areas within the existing canvas. Specify a target size, per-side expand amounts, and/or a zoom-out percentage. V3/V3 Vector only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of images to generate (1-6) | |
| size | No | Target size for the resulting image — the source image is placed inside it. Cannot combine with expand_*. | |
| model | No | Model (V3 only): recraftv3, recraftv3_vector | recraftv3 |
| style | No | Style name | |
| prompt | Yes | Description of the content to generate in the extended area | |
| controls | No | Generation controls | |
| style_id | No | Custom style UUID | |
| file_path | Yes | Local path to source image | |
| expand_top | No | Pixels to add to the top. Cannot combine with size. | |
| expand_left | No | Pixels to add to the left. Cannot combine with size. | |
| text_layout | No | Text placement on image | |
| expand_right | No | Pixels to add to the right. Cannot combine with size. | |
| expand_bottom | No | Pixels to add to the bottom. Cannot combine with size. | |
| negative_prompt | No | What to exclude | |
| response_format | No | Response format | url |
| zoom_out_percentage | No | Scales the source image down by this percentage before outpainting, revealing more surrounding context [0-100). Can combine with size or expand_*. |