curl --request POST \
--url https://cloud.comfy.org/api/upload/mask \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form image='@example-file' \
--form 'original_ref=<string>'{
"name": "<string>",
"subfolder": "<string>",
"type": "<string>",
"metadata": {
"is_mask": true,
"original_hash": "<string>",
"mask_type": "<string>",
"related_files": {
"mask": "<string>",
"paint": "<string>",
"painted": "<string>"
}
}
}Upload a mask image to be applied to an existing image
curl --request POST \
--url https://cloud.comfy.org/api/upload/mask \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form image='@example-file' \
--form 'original_ref=<string>'{
"name": "<string>",
"subfolder": "<string>",
"type": "<string>",
"metadata": {
"is_mask": true,
"original_hash": "<string>",
"mask_type": "<string>",
"related_files": {
"mask": "<string>",
"paint": "<string>",
"painted": "<string>"
}
}
}API key authentication. Generate an API key from your account settings at https://comfy.org/account. Pass the key in the X-API-Key header.