Image uploads are only available via API requests. They are not supported in the Chat UI.
Sending an Image via API Request
The API allows two ways to send an image:- Passing an Image URL (recommended for publicly hosted images)
- Sending a Base64 Encoded Image (for local images)
The image URL must be publicly accessible. Private or authentication-required URLs won’t work.
Image Input Requirements
To ensure successful processing, images must meet these requirements:
Best Practices for Image Uploads
- Optimize File Size: While the max limit is 20MB, smaller files (1-5MB) ensure faster processing.
- Use Clear Images: Avoid blurry or low-resolution images for better AI analysis.
- Ensure Public URLs: If passing a URL, test it in a browser to confirm it’s accessible.