Gemini for workspace - API access for docs

Hello,
I’m looking for resources on how I can use Gemini APIs along with Google docs.
This is currently possible via the Gemini UI (https://gemini.google.com/) but not via the developer API.

For e.g I have 100 docs in my drive, and I want to ask questions across all of them, without uploading them as part of the API request.

How can I do this ?

Hello,

This is such a fascinating use case for the Gemini API! Directly querying across 100 Google Docs feels like unlocking the ultimate knowledge base. While the Gemini API doesn’t yet natively integrate with Google Drive, combining it with the Drive and Docs APIs is a brilliant workaround. Imagine the potential for creating a seamless workflow—real-time Q&A across your entire document library!

1 Like

Hi @Kiran_Kumar2

An approach using the Gemini API involves storing all your documents(Convert them to PDF files) in a Google Drive folder. You can then use the Files API to upload these documents. Once uploaded, you can query the model with questions that span across all the documents.

Note: There are limitations to store the documents. Once refer this link

Thanks

1 Like

Thank you for suggesting the workaround.
Any plans to release the native Google docs integration via the API?

I have escalated the issue with the team regarding the gdocs.

1 Like