Description:
The curl request specified in your documentation for Gemini models with vision capabilities does not work as expected. The request fails when using the gemini/gemini-1.5-pro model but works correctly for the same model through Vertex AI.
This issue is particularly important because I need to use the gemini-exp-1121 model, which is available exclusively through Gemini - Google AI Studio and not via Vertex AI.
The problem seems to be related to the image_url provided in the content field. Below are the details:
What happened?
Description:
The
curl
request specified in your documentation for Gemini models with vision capabilities does not work as expected. The request fails when using thegemini/gemini-1.5-pro
model but works correctly for the same model through Vertex AI.This issue is particularly important because I need to use the
gemini-exp-1121
model, which is available exclusively through Gemini - Google AI Studio and not via Vertex AI.The problem seems to be related to the
image_url
provided in thecontent
field. Below are the details:Example That Fails:
Request:
Response:
Example That Works (Using Vertex AI):
Request:
Response:
Please advise on how to resolve this discrepancy or whether additional configurations are required to enable vision capabilities for the Gemini model.
Relevant log output
No response
Twitter / LinkedIn details
No response