content array
- Role
- Holds blocks of different types in one user turn
Multimodal AI takes more than one input type, such as text and images. How Claude and Gemini accept images, their limits and token costs, and known weak spots.
Multimodal AI refers to models that accept more than one type of input, most commonly text plus images. Anthropic says all current Claude models take text and image input and produce text output. Images are provided as content blocks by base64, URL or file ID, and they cost tokens like text does.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
content arrayimage block, source.typebase64, a URL reference, or a file_id from the Files APImedia_typeimage/jpeg, image/png, image/gif, image/webptext block{
"model": "claude-opus-5-5",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": [
{
"type": "image",
"source": {
"type": "base64",
"media_type": "image/jpeg",
"data": "$BASE64_IMAGE_DATA"
}
},
{
"type": "text",
"text": "Describe this image."
}
]
}
]
}⌈width / 28⌉ x ⌈height / 28⌉ visual tokensWorked from the Claude formula: a 200x200 px image is 8 x 8 = 64 visual tokens and a 1092x1092 px image is 39 x 39 = 1,521, matching Anthropic's table. Models also cap resolution: Anthropic's Sonnet 5.5 migration guide says Sonnet 5.5 handles up to 2,576 px on the long edge and 4,784 visual tokens per image. Each image adds tokens, so budget it against the context window.
For how text becomes tokens, see tokenization. For search that starts from a photo, see visual search.
For Claude, divide each side by 28, round up, multiply. Compare with usage.input_tokens after the call.
Large images are downscaled anyway. Anthropic suggests resizing in your own code to cut payload size.
Anthropic notes that base64 images are resent on every turn of a conversation, while a file_id keeps the payload small.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.