API reference

ImageAttachment Class

Represents an image attachment that can be sent with AI prompts.

Fields

Data : string
Base64-encoded image data.
Signature
string Data
Filename : string
The filename of the image (e.g., "screenshot.png").
Signature
string Filename
MediaType : string
The MIME type of the image (e.g., "image/png", "image/jpeg").
Signature
string MediaType