Skip to main content
Sail accepts image inputs on multimodal base models. Images can be supplied as base64 data URIs or as URLs.

Supported models

Multimodal support is per-model, and detailed in the models page. Requesting image input on a non-multimodal model returns 400 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:// or https:// (https:// recommended) and be publicly reachable. Downloads that fail or take longer than 10 seconds return 400.

Responses API

Pass an input_image block inside a message’s content array. The image_url value can be a data URI or a public URL.
Equivalent with a base64 data URI:
detail ("auto", "low", "high") is supported.

Chat Completions API

Use OpenAI’s standard image_url content part.
Data URIs are accepted in the same url field:

Messages API (Anthropic)

Use the Anthropic image 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).