AI Background I/O
Learn how to configure input and output to use the AI Background API.
Last updated
Learn how to configure input and output to use the AI Background API.
Last updated
The AI Background Endpoint allows you to turn simple product photos into beautiful visual assets. In just a few seconds, you can get up to 4 options and select the images that work best for you.
The generated images have a size of 1024×1024 pixels. You can further improve their resolution and quality using our Image Editing API, see the and sections for more info.
Only one product image can be processed per request.
Configuring output is optional. By default, you may omit the output option from the request payload. In this case, our system stores the result in a temporary bucket with a lifespan of 24 hours and provides a public URL to the image.
Alternatively, you can use a connected : just configure the path to the folder where you want to store results.
The following image formats are supported for the output: JPEG, PNG, WEBP, and AVIF.
You may also specify advanced output, like number of images to generate, image format, and format-specific options like PNG compression level, JPEG quality, or using JPEG progressive display type.
With AI Background API, you can generate up to 4 images with one request.
Every generated image charges 2 credit.
Setting number_of_images
to 4 will charge 8 credits per request.
The number_of_images
option defaults to 4.
See the full list of the advanced format-specific options at for more info.