image

Create a new {@linkcode LanguageModelDataPart} for an image.

Parameters

data

Binary image data

mime

The MIME type of the image. Common values are image/png and image/jpeg.

Online Documentation