Loading...
const content = [
{ type: 'image', data: base64 },
{ type: 'text', text: 'Describe this photo.' }
];const content = [
{ type: 'image', mediaType: 'image/png', data: base64 },
{ type: 'text', text: 'Describe this photo.' }
];The image part declares its media type, so the API can decode it instead of rejecting or misreading the input.
Yes, most can read printed text, charts and screenshots, but small or blurry text and exact numbers may be read wrong.
Yes. Images are turned into tokens for the model, and larger images usually use more tokens, so resizing cuts cost.
Multimodal input means the model accepts images, audio or files. Multimodal output means it can also generate them, which fewer models do.