How to connect Google Gemini AI to the ONLYOFFICE editors

13 March 2025By Dasha

The AI plugin for ONLYOFFICE continues to evolve, expanding the list of available AI models that can be integrated into the editors. We have already covered how to connect and use models from Mistral AI, Groq, Together AI, Ollama, and DeepSeek. Today, we will introduce Gemini AI, Google’s advanced artificial intelligence model, and how to integrate it into ONLYOFFICE editors.

How to connect Google Gemini AI to the ONLYOFFICE editors

About Gemini AI

Gemini AI is a family of large language models developed by Google DeepMind, designed to perform a wide range of text-based tasks, including content generation, summarization, code completion, and complex reasoning. These models are built to enhance productivity by assisting users with real-time text processing and data analysis.

In the context of ONLYOFFICE, Gemini AI offers:

  • Advanced text generation for reports, emails, and creative writing.
  • Summarization and translation for efficient document management.
  • Code assistance for developers working within the editors.
  • Context-aware responses to improve collaboration and content creation.

Now, let’s explore how to connect Gemini AI to ONLYOFFICE editors.

How to connect Gemini AI to ONLYOFFICE editors

Step 1. Obtain an API key

To begin, you need to obtain an API key from Google. Visit the Google AI Studio. Navigate to the API keys section, and generate a new API key. This key will be required to connect Gemini AI to ONLYOFFICE.

Step 2. Install and configure the AI plugin

Once you have the API key, open ONLYOFFICE editors and go to the Plugins tab. Click on Plugin Manager and find the AI plugin. Install it and wait for the process to complete.

How to connect Google Gemini AI to the ONLYOFFICE editors

After installation, close the Plugin Manager and enable the plugin by clicking Background Plugins in the Plugins tab. The AI tab will now appear in the toolbar, allowing access to AI functionalities.

How to connect Google Gemini AI to the ONLYOFFICE editors

Step 3. Connect Gemini AI models

Navigate to the AI tab and open Settings. Select Edit AI models and click +.

How to connect Google Gemini AI to the ONLYOFFICE editors

In the Provider name drop-down menu, choose Google-Gemini. Enter the API key you obtained earlier and click Update models list.

A list of available Gemini models will appear, including options like Gemini 1.5 Pro. Choose the model that best fits your needs.

How to connect Google Gemini AI to the ONLYOFFICE editors

Below, choose what the model can be used for: text, images, embeddings, audio processing, content moderation, real-time tasks, coding help, and visual analysis.

How to connect Google Gemini AI to the ONLYOFFICE editors

Once the parameters are set. Click OK.

Step 4. Assign tasks to Gemini AI models

Then, go back to the AI configuration. From the drop-down list, select the installed AI models that will perform these tasks such as text processing, summarization, or code generation, and save the settings.

How to connect Google Gemini AI to the ONLYOFFICE editors

The model is now connected and ready for use in ONLYOFFICE editors.

How to use Gemini AI in ONLYOFFICE editors

After successfully connecting Gemini AI, you can start using its features within ONLYOFFICE. Access AI tools by opening the AI tab or right-clicking selected text to view AI-powered options. Use Gemini AI to generate high-quality text, articles, or reports, summarize and translate content instantly, and receive AI-driven code suggestions if you are a developer.

Let’s say you’ve got a long article or report and want to create a concise summary. Highlight the section of the document you want to summarize. If you want to summarize the entire document, simply select all the text.

Use the Summarization button in the AI tab. Then choose a language and click Summarize. Once the text appears, you can correct it. Then, choose how to insert the summarization into your document: as a comment, below the text, replace the selected text, etc.

How to connect Google Gemini AI to the ONLYOFFICE editors

In the same way, you can use Gemini AI to:

  • Get precise answers to queries.
  • Summarize and translate content.
  • Perform advanced text analysis.
  • Generate text and keywords.
  • Explore word meanings and contexts.
  • Write code and more.

Please note: ONLYOFFICE is not responsible for the information provided by AI. Please be cautious when using AI for confidential or sensitive data.

Try Gemini AI in ONLYOFFICE

Ready to try working with text and data quickly and efficiently with Gemini AI? Download ONLYOFFICE Desktop Editors for Windows, macOS, or Linux or create a free DocSpace account:

START ONLINE NOW          GET DESKTOP EDITORS

Watch our free webinar about the AI assistant in the ONLYOFFICE editors and how to use it:

Create your free ONLYOFFICE account

View, edit and collaborate on docs, sheets, slides, forms, and PDF files online.