Gemini Provider
1,597 sites
No security coverage
This module integrates Google's Gemini API with Drupal, allowing you to leverage advanced AI capabilities like text generation, image creation, and speech processing. It supports various operations including chat, embeddings, text-to-image, text-to-speech, and speech-to-text, all configurable and trackable through the AI module.
Gemini Provider
Integrate Google's Gemini API with Drupal through the AI module. This
provider brings the full power of Google's Gemini models to your Drupal site — from chat and embeddings to image generation, speech synthesis, and more.
Supported Operations
- Chat — Text generation and conversation with streaming support. Compatible with Gemini 2.5 Flash, Gemini 2.5 Pro, and other Gemini chat models.
- Embeddings — Generate vector embeddings for semantic search and RAG pipelines. Uses gemini-embedding-001.
- Text-to-Image — Generate images from text prompts using Gemini's native image generation with configurable aspect ratios.
- Text-to-Speech — Convert text to natural-sounding audio with multiple voice presets (Kore, Puck, Charon, Fenrir, Aoede, and more).
- Speech-to-Text — Transcribe audio files to text with language detection support.
- Structured Output — Get responses in structured JSON format using schema definitions.
- Tools / Function Calling — Let Gemini models call your custom functions for agentic workflows.
Key Features
- Full capability declaration for seamless integration with the AI module's provider system
- Token usage tracking across all operations
- Streamed chat responses for real-time output
- Configurable generation parameters (temperature, top-p, top-k, max tokens, stop sequences)
- Secure API key storage via the Key module