Nano banana

From mikeOnBreeze/cc-crossbeam · View interactive version

Nano banana is an AI agent skill from the GitHub repository mikeOnBreeze/cc-crossbeam. This skill enables image generation and editing using Google's Gemini Nano Banana models. Use this skill when the user asks to generate images from text prompts, edit existing images, or modify pictures. Supports text-to-image generation, image editing with prompts, and multi-image reference for con

How to use this skill

Skill file

Nano Banana

Image generation and editing skill powered by Google Gemini's Nano Banana models.

Prerequisites

This skill requires a GEMINI_API_KEY in the project's .env or .env.local file:

GEMINI_API_KEY=your_api_key_here

To obtain an API key, visit: https://aistudio.google.com/apikey

Capabilities

1. Text-to-Image Generation

Generate images from text descriptions using scripts/generate_image.py:

python scripts/generate_image.py "a serene Japanese garden with cherry blossoms" \
  --aspect-ratio 16:9

Parameters:

2. Image Editing

Edit existing images with text prompts using scripts/edit_image.py:

python scripts/edit_image.py "remove the background and make it transparent" \
  --images photo.png

python scripts/edit_image.py "change the sky to sunset colors" \
  --images landscape.jpg \
  --output edited_landscape.png

Multiple Image Support (for consistency/reference):

python scripts/edit_image.py "create a collage combining these images" \
  --images img1.png img2.png img3.png \
  --aspect-ratio 16:9

Parameters:

Supported Parameters

Aspect Ratios

1:1 | 2:3 | 3:2 | 3:4 | 4:3 | 4:5 | 5:4 | 9:16 | 16:9 | 21:9

Models

Usage Examples

Generate a logo:

python scripts/generate_image.py "minimalist tech company logo, blue gradient, modern" \
  --aspect-ratio 1:1 --filename logo.png

Generate social media content:

python scripts/generate_image.py "cozy coffee shop interior, warm lighting" \
  --aspect-ratio 9:16

Edit a product photo:

python scripts/edit_image.py "place this product on a wooden table with soft lighting" \
  --images product.png --aspect-ratio 4:3

Quick iteration with Flash model:

python scripts/generate_image.py "abstract art, vibrant colors" \
  --model gemini-2.5-flash-image

Resources

scripts/

references/

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.