Member Junction
    Preparing search index...

    Parameters for image editing/inpainting

    Index

    Constructors

    Properties

    image: string | Buffer

    The original image to edit. Can be a Buffer, base64 string, or URL.

    mask?: string | Buffer

    Mask image indicating which areas to edit. Transparent/white areas will be regenerated. Can be a Buffer, base64 string, or URL.

    model?: string

    Model name/ID to use for editing

    n?: number = 1

    Number of edited images to generate

    negativePrompt?: string

    Negative prompt - things to avoid

    outputFormat?: ImageResponseFormat = 'b64_json'

    How the result should be returned

    prompt: string

    Text prompt describing the edit to make

    providerOptions?: Record<string, unknown>

    Provider-specific additional parameters

    size?: string

    Size of the output image(s)