Back to Skills

nanobanana

Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro). Supports text-to-image, image editing, various aspect ratios, and high-resolution output (2K/4K). Use when user wants to generate images, create images, use Gemini image generation, or do AI image generation.

920stars97forksUpdated 6/9/2026

Security Assessment

Safe(100/100)
Security Score100/100

About nanobanana

The Nanobanana skill enables users to generate and edit high-quality images using Google's Gemini 3 Pro Image model, also known as Nano Banana Pro. It solves the challenge of creating visually compelling images from text prompts or enhancing existing images without the need for advanced graphic design skills. By providing a simple interface through Python scripts or API calls, Nanobanana streamlines the process of producing both artistic and photorealistic visuals, making advanced image generation accessible to developers, designers, and content creators.

Nanobanana offers a variety of features that cover multiple image generation and editing needs. Users can create images from text prompts, edit existing images by modifying elements such as backgrounds, colors, or objects, and generate visuals in various aspect ratios including standard, widescreen, and cinematic formats. The skill supports high-resolution outputs up to 4K, enabling detailed and professional-quality images. Additionally, it includes a Google Search grounding option to improve factual accuracy for images involving real-world subjects. Batch generation functionality and Python API access allow for programmatic control and automation, catering to both single-image and large-scale image creation workflows.

This skill is ideal for developers, digital artists, marketers, and educators who require rapid and versatile image creation. Common use cases include producing marketing visuals, concept art, illustrations, social media content, and prototype designs. Its flexibility in editing and high-resolution capabilities also make it suitable for professional presentations, product photography, and creative experimentation. Nanobanana targets users who need reliable, high-quality AI-generated images without investing in extensive manual graphic design effort.

FAQ

How do I generate an image using Nanobanana?

You can generate an image by running the `generate.py` script with a text prompt, specifying an output file path if desired, e.g., `python3 scripts/generate.py "a cute robot" -o robot.png`.

Can I edit an existing image with this skill?

Yes, you can edit images by providing an input image path with the `-i` option and a text prompt describing the edits, e.g., `python3 scripts/generate.py "change background to blue" -i input.jpg -o output.png`.

What are the system requirements for Nanobanana?

You need Python 3.10 or higher and the `google-genai` and `pillow` packages installed. Additionally, a valid `GEMINI_API_KEY` from Google AI Studio is required.

What image sizes and aspect ratios are supported?

Nanobanana supports standard, 2K, and 4K image sizes, as well as multiple aspect ratios including 1:1, 16:9, 9:16, 21:9, and others suitable for portrait, landscape, and cinematic formats.

Can I generate multiple images at once?

Yes, the `batch_generate.py` script allows generating multiple images with sequential naming, customizable count, output directory, and optional delay between generations.

All Files

5 files
scripts/generate.py8.6 KB
View
scripts/batch_generate.py5.7 KB
View
.claude-plugin/plugin.json0.6 KB
View
SKILL.md5.2 KB
View
references/prompts.md5.0 KB
View

Install nanobanana

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill