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

  • Maximum of 20 images per request.
  • Maximum of 20 MB per image. This is the size of the image bytes, not the base64-encoded length. There is no pixel-dimension limit.
  • Must be a JPEG, PNG, WebP, or GIF.
  • URL images can use http:// or https:// (https:// recommended) and must be reachable from the public internet. If Sail can’t fetch a URL within 10 seconds, the request fails with 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).