Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module integrates Google's Gemini AI models into Drupal for image generation. It allows users to create images from text prompts or transform existing ones, with options for aspect ratio control, high-resolution output, and multi-image composition.

Overview

NanoBanana is an AI provider plugin for the Drupal AI module that integrates Google's Gemini image generation models. It supports both text-to-image and image-to-image generation with advanced features like multi-image composition, aspect ratio control, and high-resolution output.

With the Nano Banana Editor Module we have also a POC for a nicer editor experience

Features

  • Text-to-Image Generation: Generate images from text descriptions
  • Image-to-Image Transformation: Edit and transform existing images
  • Multi-Image Composition: Combine up to 14 images into composite scenes (model-dependent)
  • Aspect Ratio Control: 10 aspect ratio options (1:1, 3:4, 4:3, 9:16, 16:9, etc.)
  • High-Resolution Output: Up to 4K resolution with Gemini 3 Pro
  • AI API Explorer Integration: Built-in UI for testing with automatic multi-image field injection

Supported Models

Gemini 2.5 Flash Image
  • Speed: Fast, low-latency
  • Multi-Image: Up to 3 images (1 main + 2 additional)
  • Best For: Quick iterations, prototyping, real-time applications
Gemini 3 Pro Image (Preview)
  • Speed: Slower, higher quality
  • Multi-Image: Up to 14 images (1 main + 13 additional)
  • Resolution: 1K, 2K, 4K
  • Best For: Final production, high-quality output, complex compositions

 

Post-Installation

1. Configure API Key

Use the Key module to store your API key securely:

  1. Navigate to Configuration → System → Keys
  2. Add a new key with your Gemini API key
  3. Select it in the NanoBanana settings (/admin/config/ai/providers/nanobanana)

2. Verify Configuration

Navigate to AI API Explorer → Image-To-Image Explorer (/admin/config/ai/explorers/image_to_image_generator):

  • Select Provider: NanoBanana
  • The available models should appear in the dropdown
AI API Explorer

Text-to-Image

  1. Navigate to AI API Explorer → Text-To-Image Explorer
  2. Select Provider: NanoBanana
  3. Select Model: Gemini 2.5 Flash Image or Gemini 3 Pro Image
  4. Configure options:
    • Aspect Ratio: Choose from 10 options
    • Image Size: (Gemini 3 Pro only) Default, 1K, 2K, or 4K
  5. Enter your prompt
  6. Click Generate Image

Image-to-Image

  1. Navigate to AI API Explorer → Image-To-Image Explorer
  2. Select Provider: NanoBanana
  3. Select Model: Gemini 2.5 Flash Image or Gemini 3 Pro Image
  4. Upload main image
  5. Multi-Image: Upload additional images (fields appear automatically)
  6. Configure options and enter prompt
  7. Click Generate Image

 

Additional Requirements

 

Activity

Total releases
1
First release
Nov 2025
Latest release
7 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
1.0.0-beta1 Pre-release Nov 21, 2025