file

Upload a mask image

Upload a mask image to be applied to an existing image.

Image limits apply to both the uploaded mask and the referenced original image:

  • Maximum file size: 50 MB
  • Maximum width/height per edge: 16384 px
  • Maximum total pixel count: 64 megapixels (67108864 pixels)

Uploads that exceed any of these limits are rejected with HTTP 400.

post/api/upload/mask

Request

Request body multipart/form-data

imagestring binary required

The mask image file to upload

original_refstring required

JSON string containing reference to the original image

Response

Mask uploaded successfully

namestring

Filename of the uploaded mask

subfolderstring

Subfolder path where mask was saved

typestring

Type of upload (e.g., "output")

Changes

No recorded changes to this operation across all 1 revision of this API.