Hello,
I would like to know if it is possible to send queries using API to gemini, while adding a link to a pdf file. Gemini would be tasked with downloading the pdf file from the link and giving me the answer to my question by searching for this information in the pdf file.
Best regards
You can sort of do this. You cannot get Gemini to download and parse a PDF from a link. But you can use their File API to upload your PDF there and pass that to Gemini to then inspect it. If the PDF is less than 20MB in size, you can send the PDF as inline data directly to the API.
Details on both are in their docs: Document understanding | Gemini API | Google AI for Developers