markitup_extend
Use AI outpainting to enlarge an image canvas and adjust aspect ratio, such as converting square to 16:9 for better framing.
Instructions
AI-outpaint an image to a larger canvas. Useful for converting a square asset to 16:9 or 9:16, or extending a tight crop. Costs 1 credit. Provide the source image as URL or base64, plus the target aspect ratio and pixel dimensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | No | Public HTTPS URL of the source image. | |
| image_base64 | No | Base64-encoded source image (no data: prefix). Mutually exclusive with image_url. | |
| image_mime_type | No | image/png | |
| aspect_ratio | Yes | Target aspect ratio. One of: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9. | |
| target_width | Yes | Target output width in pixels. | |
| target_height | Yes | Target output height in pixels. | |
| image_size | No |