[object Object]

Vision

Vision lets supported models answer questions about images and PDFs. Use it for image understanding, screenshots, diagrams, scanned pages, and document summaries.

Mixlayer supports vision input through both Chat Completions and Responses. Use a model documented as supporting vision; text-only models return invalid_media when media is included.

Request Shapes

{
  "model": "your-vision-model",
  "messages": [
    {
      "role": "user",
      "content": [
        { "type": "text", "text": "What is in this image?" },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://example.com/photo.png",
            "detail": "auto"
          }
        }
      ]
    }
  ]
}

Supported Media

SourceSupported values
Remote URLhttps:// only. Redirects are followed up to 3 hops.
Data URLBase64 data: URL. Chat Completions uses it in image_url; Responses uses it in image_url, file_data, or file_url.
MIME typesimage/jpeg, image/png, image/webp, application/pdf.
detailOptional: low, high, auto, or original.

Limits

LimitDefault
Media parts per request8
Bytes per media item20 MiB
Total media bytes per request80 MiB
HTTPS fetch timeout10 seconds
JSON request body160 MiB (we recommend supplying media via a remotely retrievable URL)
PDF pages processedFirst 20 pages, rasterized at 150 DPI