Images
Send images to vision-enabled models via URL or base64.
Gateway supports two image input formats. Both work across all vision-capable providers — Gateway translates to the right format automatically.
Image URL
The simplest way to send an image. Pass a URL directly with the image_url content block.
Image with source type
The image block gives you explicit control over the source type and media type. Use this for base64-encoded images or when you need to specify the format.
OpenAI SDK
If you’re using the OpenAI SDK pointed at Gateway, use the standard OpenAI image format.
Multiple images
Pass multiple image blocks in the same message to compare or analyze several images at once.
Each image is estimated at ~765 tokens for context window and compression calculations. Keep this in mind when sending multiple images in a single request.