Appendix
Complex Data Types
Mask

Mask

Parameter NameTypeDescriptionRequired
ImageIndexIntThe index of the raw image in ImageAndMaskList or ImageList, starting from 0.
MaskIndexIntThe index of the mask image in ImageAndMaskList or MaskList starts from 0. The mask is a black-and-white image where the white part represents the redrawn area. You can draw masks independently or obtain them through the "Remove Background" or "Content Extraction" APIs.
ReferStrengthFloatReference intensity of the masked area (0~2), default value: 1
InvertMaskBoolInvert the mask, default value: false
MaskBlurIntMask edge blur radius (0~64), default value: 12
PromptsMoreImportantBoolStrengthen the impact of prompts, default value: false