How to use Google Gemini API call to upload pdf, ppt, docs, etc files?

112 Views Asked by At

I am using https://aistudio.google.com/ to use Google Gemini 1.0 to upload some pdfs, docs etc.

The documentation https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini#request_body gives an example of the image but it doesn't work.

Can someone help me to tell me a way to upload files using an Gemini API to upload the files?

0

There are 0 best solutions below