Basics

Multimodal input

Multimodal input is input to an AI model in more than one form, such as text together with images, documents or audio. A model with vision can read images and answer questions about them.

Also called Vision, Image input, Image understanding

Checked November 29, 2026

At a glance

Common forms
Text with images; some models also take documents or audio
Billed as
Input tokens; a bigger image costs more
Ways to send an image
A URL or base64 data; a file ID at OpenAI
Takes room in
The context window
On /model
GPT and Claude read images; /v1/messages takes base64 only

OpenAI calls it vision. An image goes in as a full URL, as a base64-encoded data URL, or as a file ID from its Files API, and images count as tokens and are billed accordingly (OpenAI). Claude reads images given as base64 data or as a URL (Anthropic).

How an image is sent

  • OpenAI Chat Completions

    Where the image goes
    An image_url part in a user message: a URL, or a data URL such as data:image/png;base64,…
  • OpenAI Responses

    Where the image goes
    An input_image part in the input
  • Anthropic Messages

    Where the image goes
    An image block, with the image as base64 data or a URL

Images on /model

  • GPT and Claude models read images sent with the text. An image counts as input tokens, more for a bigger image (Images).
  • On /v1/chat/completions, a URL must be public and point straight at the image file. If the image can't be downloaded, for example because it needs a login, the request fails with a 400 invalid_request: send such images as data URLs.
  • On /v1/messages, send the image itself, base64-encoded. Images and documents given as a URL are refused there with a 400.
  • A request can be up to 20 MB, images included; a bigger one gets a 413 (Limits and timeouts).

Where it applies on /model

Questions

Why does my image URL fail?

The URL must be public and point straight at the image file; one that needs a login, or leads to a web page, can't be read. Send the image as base64 data instead. On /model's /v1/messages, image URLs are refused, so send base64 there.

Do images use up the context window?

Yes. An image becomes input tokens, so large or many images take room from the conversation, and they cost more.

Sources

The makers' own pages, each opened on November 29, 2026.

One key for every model here.

Top up from $10, change one URL, and pay only for the tokens you use.