$0.04 / $0.08
per image, raster / vector
Image → larger image
up to 10 MB, 16 MP
POST /v1/images/outpaint
endpoint
Try it
Get an API token on your profile page (it needs a positive API units balance) and set it once per terminal session:Response
datahas one entry per image (n). Download each image from itsurl. Withrecraftv3_vector, eachurlpoints to an SVG file.- Image URLs are temporary: files are kept for about 24 hours, so download them. See Limits and sizes.
creditsis the number of API units charged for the request.
Parameters
More parameters
More parameters
size, expand_*, or zoom_out_percentage. size and expand_* can’t be used together. The result must not exceed 4096 px on either side.
The input image must be PNG, JPG, WEBP, or SVG, under 10 MB, up to 16 MP, with sides between 256 and 4096 px. See Input images.
Examples
Upload a local file
Upload a local file
Add pixels on chosen sides
Add pixels on chosen sides
expand_* adds the given number of pixels to each side you name. Here the image grows by 256 px to the left and to the right. Don’t combine it with size.Zoom out
Zoom out
zoom_out_percentage scales the source image down and generates content around it. It works on its own or together with size or expand_*.Related
Inpainting
Regenerate part of an image with a mask.
Replace and generate background
Change the background of an image.
Recraft V3
The model line behind outpainting.
Pricing
Prices of every model and tool.