Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Gemini Provider

No security coverage Under active development 1,419 sites

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.

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 the Gemini chat models available to your API key.
  • Embeddings — Generate vector embeddings from text and images for semantic search and RAG pipelines.
  • 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

  • Capability declaration for seamless integration with the AI module's provider system
  • Token usage tracking for chat
  • Streamed chat responses for real-time output
  • Configurable generation parameters (temperature, top-p, top-k, max tokens, stop sequences)
Drupal 10–11

Ask your assistant about Gemini Provider

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
12
Tracked since
Aug 2024
Latest release
2 weeks ago
Releases (12 mo)
5 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-alpha2 Pre-release 10–11 Aug 6, 2024
1.0.0-alpha1 Pre-release 10–11 Aug 6, 2024