Zum Hauptinhalt springen
POST
Upload a mask image

Autorisierungen

X-API-Key
string
header
erforderlich

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.

Body

multipart/form-data
image
file
erforderlich

The mask image file to upload

original_ref
string
erforderlich

JSON string containing reference to the original image

Antwort

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