Expand an image's canvas
expand_imageOutpaints an existing generation to a bigger canvas / new aspect ratio — the model extends the scene beyond the original edges. COSTS CREDITS (generate_* by output resolution). Creates a NEW generation in the source's own project. Optionally restrict directions with extend, or zoom out with zoom < 1. An uploaded asset works as the base too (asset_id, not both); its result goes to project_id or the asset's project.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zoom | No | 0-1; below 1 zooms out (subject shrinks, more scene appears). | |
| extend | No | Directions to extend. Default: all four. | |
| asset_id | No | ||
| project_id | No | asset_id only. | |
| resolution | No | Default: the source's. | |
| generation_id | No | ||
| target_aspect_ratio | Yes |