Browse vision models in the Requesty Console.
How It Works
Vision-capable models use the same/v1/chat/completions endpoint as text models, but accept images in the message content. You can include images using either data URLs or file URLs. Like PDF documents, images can also be passed via URL reference to the AI models for processing.
Request Format
Requesty supports two methods for sending images to vision models:Method 1: Data URLs (Base64)
Include base64-encoded images directly in the request:Method 2: File URLs
Reference images hosted on the web by passing the image URL directly:Vertex AI Gemini Models: When using file URLs with Vertex AI Gemini models, you must specify the MIME type in the request:
Response Format
The response follows the standard chat completions format with the model’s analysis of the image:Code Examples
Python Example
Using File URLs
Using Base64 Data URLs
JavaScript/TypeScript Example
Using File URLs
Using Base64 Data URLs
Supported Models
Requesty supports vision capabilities across multiple AI providers. To see the complete list of models with vision support, navigate to the Model Library in the Requesty web application. Popular vision-capable models include:- OpenAI: GPT-6 and GPT-5 models.
- Anthropic: Claude Fable, Opus, Sonnet, and Haiku 5.5 models.
- Google: Gemini 3 models.
- xAI: Grok 4.7 and other Grok 4 models.
Check which image inputs a model accepts
GET /v1/models returns two flags on each chat model:
supports_vision_inline: the model accepts base64 data URLs.supports_vision_url: the model acceptshttp://orhttps://image URLs.
supports_vision is true when either flag is. If a request sends an image in a form the model does not accept, Requesty returns 400 with this model does not support inline vision or this model does not support vision URLs. For models where supports_vision_url is false, download the image and send it as a base64 data URL.
Provider-Specific Notes
- Many models accept both data URLs and file URLs, but some (for example several Bedrock and Vertex models) accept only data URLs. Check
supports_vision_urlas shown above. - Google AI Studio (Gemini) only supports data URLs (base64-encoded images)
- Vertex AI Gemini requires the MIME type to be specified in the request.
Check the Model Library in the Requesty web application for the most up-to-date list of vision-capable models and their specific capabilities.
Limitations
- Image size limits vary by provider and model
- File URLs must be publicly accessible
- Base64-encoded images increase request payload size
- Response time may be longer for image analysis compared to text-only requests
- Some providers have content filtering or safety restrictions for image analysis
- For Gemini models using file URLs, MIME type must be specified as a query parameter