ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

gemini-image

Generate images using Google Gemini models (Nano Banana 2 / gemini-3-pro-image-preview). Use when the user asks to create, generate, or make an image, picture, photo, or visual from a text description. Also supports image-to-image generation (modify/edit existing images). Supports multiple aspect ratios (1:1, 16:9, 9:16, 4:3, 3:4) and resolutions up to 4K. Triggers on phrases like "generate an image", "create a picture", "make me a photo", "draw", "visualize", "edit this image", "modify this picture", or any request to produce or transform visual content.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/0n1onr1ng/nano-banana-skills
Or

Gemini Image Generation

Generate images from text descriptions or modify existing images using Google's Gemini models via the Wisdom Gate API.

Quick Usage

Text-to-Image

python scripts/generate_image.py "your prompt here" [--aspect-ratio RATIO] [--size SIZE] [--output PATH]

Image-to-Image (Single or Multiple)

# Single image
python scripts/generate_image.py "modification prompt" --input input.jpg [--output PATH]

# Multiple images (up to 14)
python scripts/generate_image.py "combine these people in an office photo" --input person1.jpg person2.jpg person3.jpg

Multi-Turn Refinement

# First turn: Generate initial image (auto-selects Nano Banana 2)
python scripts/refine_image.py "Create a vibrant infographic about photosynthesis" --reset

# Second turn: Refine with quality priority
python scripts/refine_image.py "Make it more colorful and add more visual elements" --quality

# Third turn: Further refinement with specific model
python scripts/refine_image.py "Add labels to each component" --model nano-banana-pro

# Start a new conversation with budget model
python scripts/refine_image.py "New prompt here" --reset --model nano-banana

Parameters (generate_image.py):

  • prompt (required): Text description of the image to generate or modification to apply
  • --input: Input image path(s) for image-to-image generation - supports up to 14 images (optional)
  • --aspect-ratio: Image aspect ratio (text-to-image only) - 1:1 (default), 16:9, 9:16, 21:9, 4:3, 3:4, 5:4, 4:5, 2:3, 3:2, 1:4, 4:1, 1:8, 8:1
  • --size: Image resolution (text-to-image only) - 0.5K, 1K (default), 2K, 4K
  • --output: Output file path (default: generated_image.png)
  • --model: Force specific model - nano-banana, nano-banana-2, nano-banana-pro (auto-select if not specified)
  • --quality: Prioritize quality over cost (uses Nano Banana Pro when possible)

Parameters (refine_image.py):

  • prompt (required): Refinement instruction or initial prompt
  • --history: Conversation history file (default: conversation.json)
  • --output: Output file path (default: refined_image.png)
  • --reset: Reset conversation history and start fresh
  • --model: Force specific model - nano-banana, nano-banana-2, nano-banana-pro (auto-select if not specified)
  • --quality: Prioritize quality over cost (uses Nano Banana Pro)

Environment:

  • Requires WISGATE_KEY environment variable
  • Alternative: Set Authorization: Bearer YOUR_KEY header (modify script if needed)

Examples

Text-to-Image

# Basic generation (auto-selects Nano Banana 2 for best balance)
python scripts/generate_image.py "A serene mountain landscape at sunset"

# High quality mode (uses Nano Banana Pro)
python scripts/generate_image.py "Futuristic city skyline" --quality --aspect-ratio 16:9 --size 4K

Metadata

Author@0n1onr1ng
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-0n1onr1ng-nano-banana-skills": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.