What is a multimodal model?
A multimodal model takes in or produces more than one kind of data, such as text, images, audio or video. Marketing uses the word for any model that touches an image. In code the word is narrower. You check which modalities an endpoint accepts as input and which it can return, then send each one as a typed content block. Images and audio are billed as tokens. Claude, for example, reads images but cannot generate them.
What does multimodal mean in an API request?
In a text-only request, a message's content can be a plain string. Once you add an image, content becomes a list of typed blocks, and the model reads them in order. In Anthropic's Messages API an image is an image block whose source is base64 data, a URL, or a file_id from the Files API. OpenAI's Responses API uses an input_image item with an image_url (a URL or a base64 data URL) or a file_id, plus a detail setting of low, high, original or auto.
Gemini accepts an image by URL, as inline base64 data, or through its File API. Inline data counts toward a 20 MB cap on the whole request, prompt and system instructions included, so Google recommends the File API for larger files. Gemini also takes audio as an input, in WAV, MP3, FLAC and other formats.
Does the model read images, generate them, or both?
Input and output are separate capabilities, and a model can have one without the other. Anthropic's docs describe Claude as an image understanding model only: it can analyze images but cannot generate, edit or create them. OpenAI splits the job too. Vision-capable models read images, while generation runs through the image_generation tool in the Responses API or through the separate Images API.
Vendors also use "multimodal" to describe how a model was built. Google says Gemini models are "built to be multimodal from the ground up". The LLaVA paper (Liu et al., 2023) shows another design, which connects a vision encoder to an existing language model. Neither description tells you what an endpoint accepts. Check the provider's list of supported content types and formats for the exact model you call.
How do images and audio turn into tokens?
Images and audio are converted to tokens, billed at the model's input rate and counted against the context window. Each provider counts differently:
- Anthropic: Claude splits an image into 28 by 28 pixel patches, so an image costs
ceil(width / 28) x ceil(height / 28)visual tokens. A 1000 by 1000 image is 1,296 tokens. Larger images are scaled down first: to a 1,568 px long edge on standard models, or 2,576 px and at most 4,784 tokens on Claude 4.7 and later. - OpenAI: low detail costs a fixed token count whatever the size. At high detail on tile-based models, the image is scaled and counted in 512 px tiles; for
gpt-4othat is 85 base tokens plus 170 per tile. - Gemini: an image costs 258 tokens if both sides are 384 px or less. Larger images are cut into 768 by 768 tiles at 258 tokens each. Audio costs 32 tokens per second, so one minute is 1,920 tokens.
Anthropic notes that high-resolution models can spend roughly three times more tokens on the same image than standard-tier models. If you do not need the detail, scale images down before you send them. Smaller images cost less and add less latency.
What limits should you plan for?
On the Claude API you can send up to 600 images per request, or 100 on models with a 200k-token context window. Each image can be up to 8000 by 8000 px and 10 MB base64-encoded. A request with more than 20 images applies a stricter per-image dimension limit to every image in it; Anthropic's advice is to keep each side at 3,000 px or less. Supported formats are JPEG, PNG, GIF and WebP, and only the first frame of an animation is used.
Accuracy has limits too. Anthropic lists approximate object counts, approximate coordinates, and mistakes on low-quality, rotated or very small images under 200 px. Claude does not receive image metadata. Downscaling can make small text unreadable, so crop to the region that holds the text instead of sending a full screenshot and hoping it survives the resize.
An image and a question in one Claude request, and what the image costs
POST /v1/messages
{
"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."
}
]
}
]
}
# image cost for a 1000x1000 px JPEG, from Anthropic's formula:
# ceil(1000 / 28) x ceil(1000 / 28) = 36 x 36 = 1,296 visual tokens
The content field holds two blocks, the image first and then the text that asks about it. The comment applies Anthropic's patch formula, which gives 1,296 input tokens for a 1000 by 1000 image before your question adds any.
Common questions
Multimodal models: frequently asked
Is a multimodal model the same as a vision model?
A vision model, or vision language model, is the most common kind of multimodal model: it reads images alongside text. Multimodal also covers audio and video, and models that return images or audio. Anthropic's vision docs, for example, cover image input only.
Can Claude generate or edit images?
No. Anthropic's vision docs describe Claude as an image understanding model only. It can analyze the images you send but cannot generate, edit or create them. For image output you need a separate image generation model or tool.
How many tokens does an image use?
It depends on the provider and the image size. On Claude, divide each side by 28 px, round up and multiply, so a 1000 by 1000 image costs 1,296 tokens. On Gemini, a small image costs 258 tokens and larger ones cost 258 per 768 px tile. Oversized images are scaled down first, which caps the cost.
Why can the model not read the small text in my screenshot?
The image was probably scaled down before the model saw it. Claude downsizes any image whose long edge exceeds the model's limit, and the docs warn this can make text less legible. Crop to the part that holds the text, or resize it yourself so you control what survives.
Sources
Where these facts come from
- Anthropic docs: Vision: image content blocks with base64, URL and file_id sources; 600 and 100 image request limits, 8000 px and 10 MB per image, the stricter limit above 20 images; JPEG, PNG, GIF and WebP; the 28 px patch formula and resolution tiers; limitations; Claude cannot generate or edit images; no metadata is read
- OpenAI docs: Images and vision: input_image with image_url or file_id, the detail values, image generation through the image_generation tool or the Images API, and tile-based token counting including gpt-4o's 85 base plus 170 per tile
- Google Gemini API docs: Image understanding: URL, inline and File API image input, the 20 MB inline request cap, 258 tokens per image or per 768 by 768 tile, and the built to be multimodal from the ground up description
- Google Gemini API docs: Audio understanding: supported audio formats and the cost of 32 tokens per second of audio, 1,920 tokens per minute
- Visual Instruction Tuning (Liu et al., 2023): LLaVA, a model that connects a vision encoder and a language model for general-purpose visual and language understanding