Supported models
Multimodal support is per-model, and detailed in the models page. Requesting image input on a non-multimodal model returns400 with model '<id>' does not support image input.
Limits
Images per request
The limit applies to all images in a request, including images sent again from earlier turns.
To send more images, leave older image attachments out of your next request so the total stays within the limit. You can keep the text history and replace old images with text summaries.
For example, with DeepSeek, send two older images and four new images, or omit all older images and send six new ones.
Size and format
- Per image: up to 20 MB before base64 encoding. No pixel-dimension limit.
- Total request body: up to 256 MiB, including JSON and base64 data.
- Formats: JPEG, PNG, WebP, or GIF.
- Image URLs: must use
http://orhttps://(https://recommended) and be publicly reachable. Downloads that fail or take longer than 10 seconds return400.
Responses API
Pass aninput_image block inside a message’s content array. The image_url value can be a data URI or a public URL.
detail ("auto", "low", "high") is supported.
Chat Completions API
Use OpenAI’s standardimage_url content part.
url field:
Messages API (Anthropic)
Use the Anthropicimage content block. Both base64 and url source types are supported.
Error cases
Notes
- If you already have the image bytes, sending them as a base64 data URI is typically faster than a URL.
- Image bytes are not cached across requests.
- LoRAs and image inputs can be combined on a multimodal base model that also supports LoRA (see LoRAs).