Google Gemini Integration

Generate, edit, and translate documents with Google Gemini 2.5.

AI Provider

Google Gemini

Connect your Google Gemini API key to generate full documents from a text prompt, rewrite or translate existing pages, and apply structural edits across the whole document. GJSDocs ships your prompt + the document context to Gemini and returns Tailwind-classed HTML that fits the editor 1:1, with placeholders extracted into the Variables sidebar.

Best for

  • Sales and operations teams generating proposals, contracts, and quotes from prompts
  • Localization workflows — translate every page while keeping {variable.name} placeholders intact
  • Editorial polish — rewrite, shorten, expand, or restyle existing sections in-place

What it supports

  • Generate new sections from a prompt (Add mode)
  • Translate or rewrite the whole document page-by-page (Edit mode)
  • Replace a selected section/page/column with AI output
  • Append AI content inside a selected container (e.g. add a clause inside a page)
  • Automatic model cascade: 2.5 Flash → Flash Lite → 2.0 Flash → 2.5 Pro on overload
  • "Enhance prompt" assistant for refining vague requests

Setup Steps

  1. 1

    Open https://aistudio.google.com/apikey and sign in with your Google account.

  2. 2

    Click Create API key, pick a Google Cloud project (or create a new one), then copy the key (starts with "AIza…").

  3. 3

    In GJSDocs, open Workspace → Integrations and enable Google Gemini.

  4. 4

    Paste the API key and click Save Configuration — the key is encrypted with AES-256-GCM before storage.

  5. 5

    Open any document, switch to the AI tab in the editor sidebar, and start prompting.

Sample Variables

Examples of variable keys you can use inside templates:

Prompt: "Add a payment terms section with monthly schedule and late-fee policy"Prompt: "Translate the whole document to Ukrainian, keep variables intact"Prompt: "Make the tone more formal and shorten by ~30%"

Security + Reliability Notes

  • - API key encrypted with AES-256-GCM at rest, never returned to the browser
  • - Each request goes from your GJSDocs workspace directly to Google with your key
  • - Read-only key validation on save (lists models — does not consume tokens)
  • - Available on Pro and Business plans only

Delivery notes

  • - You pay Google directly for token usage — GJSDocs does not bill you for AI traffic.
  • - Long documents are processed page-by-page in Edit mode to stay under output limits.
  • - If Gemini is briefly overloaded the cascade automatically retries on a different 2.5/2.0 model.