Represents the data for an image.

ImageModel

interface ImageModel {
    data: string;
    mimeType: string;
    type: string;
}

Properties

Properties

data: string

The image data. When type is base64, this is a base64-encoded string.

ImageModel

mimeType: string

The MIME type of the image (e.g., image/jpeg).

ImageModel

type: string

The format of the image data. Only base64 is supported.

ImageModel