File attachments allow you to attach files to your prompts.
<ImageAttachment>
component allows you to attach images to your prompt:
image
: URL to the image filemimeType
(optional): MIME type of the image (e.g., “image/jpeg”, “image/png”)<FileAttachment>
component allows you to attach any type of file:
data
: URL to the filemimeType
: MIME type of the file (e.g., “application/pdf”, “text/plain”)We’re here to help! Choose the best way to reach us: