Class MaskReferenceImage

  • All Implemented Interfaces:
    com.google.genai.types.ReferenceImage

    
    public abstract class MaskReferenceImage
    extends JsonSerializable implements ReferenceImage
                        

    A mask reference image.

    This encapsulates either a mask image provided by the user and configs for the user provided mask, or only config parameters for the model to generate a mask.

    A mask image is an image whose non-zero values indicate where to edit the base image. If the user provides a mask image, the mask must be in the same dimensions as the raw image.