Creating Plot Twists
    Preparing search index...

    Interface ImagePart

    Image content part of a prompt. It contains an image.

    interface ImagePart {
        type: "image";
        image: DataContent | URL;
        mimeType?: string;
    }
    Index

    Properties

    Properties

    type: "image"
    image: DataContent | URL

    Image data. Can either be:

    • data: a base64-encoded string, a Uint8Array, an ArrayBuffer, or a Buffer
    • URL: a URL that points to the image
    mimeType?: string

    Optional mime type of the image.