An image content block.

interface ImageContent {
    data?: string;
    mime_type?:
        | "image/png"
        | "image/jpeg"
        | "image/webp"
        | "image/heic"
        | "image/heif";
    resolution?: "high"
    | "low"
    | "medium"
    | "ultra_high";
    type: "image";
    uri?: string;
}

Properties

data?: string

The image content.

mime_type?:
    | "image/png"
    | "image/jpeg"
    | "image/webp"
    | "image/heic"
    | "image/heif"

The mime type of the image.

resolution?: "high" | "low" | "medium" | "ultra_high"

The resolution of the media.

type: "image"
uri?: string

The URI of the image.