Перейти к основному содержанию
POST
Upload a mask image

Авторизации

X-API-Key
string
header
обязательно

API key authentication. Generate an API key from your account settings at https://platform.comfy.org/profile/api-keys. Pass the key in the X-API-Key header.

Тело

multipart/form-data
image
file
обязательно

The mask image file to upload

original_ref
string
обязательно

JSON string containing reference to the original image

Ответ

Mask uploaded successfully

name
string

Filename of the uploaded mask

subfolder
string

Subfolder path where mask was saved

type
string

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

metadata
object

Additional metadata for mask detection and re-editing