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 models, o3, o3-pro, and all o4 reasoning models.
- Anthropic: Claude 4 and 4.5 models.
- Google: Gemini 2.5 models.
- xAI: Grok 4 models.
Provider-Specific Notes
- Most providers support both data URLs and file URLs
- 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