Images
Send images to vision-capable models by URL or base64
Send images with your prompt to have a model describe, compare, or extract from them. Use image_url for a URL or data: URI, or image for raw base64; Gateway converts either to the served vendor’s format.
With the OpenAI SDK at /v1/openai, send the standard {"type": "image_url", "image_url": {"url": "..."}} part, or input_image on Responses. AI SDK file parts take data as bytes, base64, a data: URI, or a URL.
AI SDK file parts need merge-gateway-ai-sdk-provider 0.3.0 or later; earlier versions drop them silently.
Reference
Inline images are capped at 20 MB decoded per request, all images combined; URLs don’t count. Over the cap returns 413 payload_too_large, and a route without image input returns 400 unsupported_params.