I am giving a gemini API a prompt with an image to extract the content of image.
Promp = Given a image of restaurant_menu fetch the dishes and its price. It is woking for the simple menu as of now.
But, it doesn’t work for most of the menu images and it is giving me error:
gemini-1.5-flash:generateContent: [400 Bad Request] Provided image is not valid.
I have pass a valid png image. But not able to understand why it is giving this error and what is the root cause of error?
Thanks for help in advance.