Learn how to use Sonar’s image upload feature.
image/png
with the correct MIME type if you’re using JPEG or GIF (image/jpeg
or image/gif
).messages
array, using the image_url
content type.
⸻
messages
array, alongside any text input. Each image should be provided using the following structure:
Using Base64 Data URI:
sonar-pro
, sonar
, etc.). The image tokens are added to your total token count for the request alongside any text tokens.
sonar-deep-research
does not support image input.