langchain.js
    Preparing search index...

    Interface ImageGenerationInputMask

    Optional mask for inpainting. Allows you to specify areas of the image that should be regenerated.

    interface ImageGenerationInputMask {
        fileId?: string;
        imageUrl?: string;
    }
    Index

    Properties

    Properties

    fileId?: string

    File ID for the mask image (uploaded via OpenAI File API).

    imageUrl?: string

    Base64-encoded mask image URL.