Vision API analyzing images .jpg, png etc... from Google Drive

I can´t get the API to analyze images from a directory on Google Drive, is it even possible? I set the the link on my code but get the following message:

org.springframework.ai.retry.NonTransientAiException: 400 - {
“error”: {
“message”: “You uploaded an unsupported image. Please make sure your image is below 20 MB in size and is of one the following formats: [‘png’, ‘jpeg’, ‘gif’, ‘webp’].”,
“type”: “invalid_request_error”,
“param”: null,
“code”: “invalid_image_format”
}
}
Any leads?