Decompose image

Decomposes an image into constituent layers using provided mask images. Returns URLs to the generated layers.

📘

Get Started with Image API

To use Jasper's Image endpoints, you'll need an API key. Image API access is available for customers on the Jasper Business plan with an API subscription.

Already a Business customer? Generate your API key in Settings → API Tokens.

New to Jasper? Request API access →

LLM friendly version

Body Params

Image file upload and mask files upload
Size of an image uploaded must not exceed 30MB and resolution must not exceed 16 mega-pixels
Size of each mask uploaded must not exceed 30MB and resolution must not exceed 16 mega-pixels
All masks must have the same dimensions as the main image
At least one mask is required, maximum of 10 masks allowed

file

The main image to be decomposed

mask_files
array of files
length between 1 and 10

Array of mask images (1-10 masks)

string
enum

Optional output format for the background layer

Allowed:
string
enum

Optional output format for the decomposed layers

Allowed:
Responses
200

The image was successfully decomposed.

400

Bad request. May be missing required inputs or may have badly formatted inputs or options.

500

Internal server error. Unable to decompose image.

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here!