Logo von Nano Banana

Nano Banana

Community
danicat
nano-banana

Dialogbasierte Bildgenerierung und multimodale Bildbearbeitung mit Google Nano Banana-Modellen über uv run scripts/banana.py, die gemini-api CLI und Google Gen AI SDKs. Erstellt hochauflösende Bilder (512px, 1K, 2K, 4K), Charakterbögen für 2D-Spiele, Sprite-Raster mit Chroma-Key und nahtlose Parallax-Hintergründe. Überträgt Stile und bearbeitet Bilder mit Masken („banana this“). Dank mehrerer Referenzbilder bleiben Charaktere oder Stile konsistent. Aktivieren Sie diesen Skill, wenn Sie Illustrationen, Spielgrafiken oder Sprites erstellen, Bilder bearbeiten oder umwandeln oder die Charakterkonsistenz über mehrere Szenen hinweg wahren möchten.

Übersicht

Herausgeberdanicat
Repositoryskills
Skill-Namenano-banana
Sterne
24
Forks
4
Mitgelieferte Dateien
6
LizenzApache-2.0
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 6

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von danicat auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Nano Banana in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/danicat/skills/tree/main/media/nano-banana
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/danicat/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/media/nano-banana .claude/skills/nano-banana
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Nano Banana in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Nano Banana automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Nano Banana nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Nano Banana Skill (nano-banana)

Generate, edit, and iterate on visual assets conversationally using Google's Nano Banana image generation models (gemini-nano-banana-2.1, gemini-3.1-flash-lite-image, gemini-3.1-flash-image, gemini-3-pro-image) via uv run skills/nano-banana/scripts/banana.py (which supports both Vertex AI / Gemini Enterprise Application Default Credentials and GEMINI_API_KEY), the gemini-api CLI (gemini-api image), or the Google Gen AI SDKs.

[!CAUTION] Fail Fast with Zero Fallbacks on Authentication or Tool Failure: Never go rogue if gemini-api or scripts/banana.py fails. If gemini-api is unavailable or fails because only Vertex AI / Gemini Enterprise credentials are configured, run uv run skills/nano-banana/scripts/banana.py with Vertex AI / Application Default Credentials (GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_LOCATION, and gcloud auth application-default login). If authentication still fails, stop immediately, report the exact authentication error to the user, and ask them to configure credentials (gcloud auth application-default login + export GOOGLE_CLOUD_PROJECT=..., or export GEMINI_API_KEY=...). Never fabricate placeholder images, switch to unauthorized fallback generators, or silently bypass errors.


Available Scripts

  • scripts/banana.py: PEP 723 standalone Python CLI tool (uv run skills/nano-banana/scripts/banana.py) for text-to-image generation, multimodal editing, and reference consistency anchoring with strict capability validation and first-class Vertex AI / Gemini Enterprise (vertexai=True, GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_LOCATION, ADC) and Gemini Developer API (GEMINI_API_KEY) support.
  • scripts/test_banana.py: Automated test suite verifying CLI argument parsing, model capability guards, and fail-fast authentication checks (python3 skills/nano-banana/scripts/test_banana.py).

Prerequisites & Authentication Setup

Option A: uv run skills/nano-banana/scripts/banana.py (Recommended for Vertex AI / Gemini Enterprise & API Key)

scripts/banana.py uses PEP 723 inline dependency metadata (google-genai, pillow, google-auth) so uv run resolves everything automatically in an isolated environment without manual pip install steps.

bash
# 1. Authenticate with Vertex AI / Gemini Enterprise (Application Default Credentials)
gcloud auth application-default login
export GOOGLE_CLOUD_PROJECT="your-gcp-project-id"
export GOOGLE_CLOUD_LOCATION="us-central1"
# (Or pass per-command: --vertexai --project "your-gcp-project-id" --location "us-central1")

# 2. Or authenticate with the Gemini Developer API (API Key)
export GEMINI_API_KEY="your-api-key"

# 3. Verify CLI flags and capability validation offline
uv run skills/nano-banana/scripts/banana.py --help
python3 skills/nano-banana/scripts/test_banana.py

Option B: gemini-api CLI Setup

The gemini-api CLI is a zero-dependency binary that writes generated images directly to disk and prints only the output file path to stdout.

bash
# 1. Verify or install gemini-api CLI on macOS and Linux
command -v gemini-api >/dev/null 2>&1 || (curl -fsSL https://raw.githubusercontent.com/google-gemini/gemini-api-cli/main/scripts/install.sh | bash)

# 2a. Authenticate with a Gemini API Key (environment variable or OS keychain)
export GEMINI_API_KEY="your-api-key"
gemini-api configure --api-key "your-api-key"

# 2b. Or authenticate with a Google Cloud Project / ADC (OAuth2 bearer token)
gcloud auth application-default login \
  --scopes="https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/generative-language"
export GEMINI_ACCESS_TOKEN="$(gcloud auth application-default print-access-token)"
export GEMINI_USER_PROJECT="your-gcp-project-id"

# 3. Verify credentials and inspect CLI schemas
gemini-api whoami
gemini-api image --help

Trigger Conditions

Activate this skill whenever the user asks to:

  • Generate new images, 2D character turnaround sheets, raw sprite animation grids, parallax backgrounds, title screens, dialogue portraits, or illustrations from text prompts.
  • Edit, transform, restyle, or combine existing images.
  • Use "banana" as a verb (for example: "please banana this image", "banana this character into anime style", or "banana this photo into 16-bit pixel art").
  • Maintain character, subject, or style consistency across scenes and sprite sheets using reference images (-i).
  • Create 4K visual assets or seamless extreme aspect-ratio banners and parallax strips (1:4, 4:1, 1:8, 8:1).

Role in agy-game-studio: Game Asset Generation Pipeline

In agy-game-studio, nano-banana is the generative 2D art engine that works alongside the studio skills:

  • game-design: Turns Game Design Document (GDD) art pillars and visual palettes into concept art, title screens, dialogue portraits, and Step 1 character reference sheets.
  • sprite-design: Consumes nano-banana outputs in the 2-Step Character Sheet to Sprite Grid Pipeline. nano-banana generates the Step 1 character sheet and Step 2 raw 4x4 chroma-key sprite grids (-i character_sheet.png), which sprite-design then cleans, splits, grounds, and exports via go run . normalize (or samples into 4-step material ramps via go run . extract-palette).
  • vibe-game-developer: Coordinates nano-banana art generation with Ebitengine gameplay loops, sprite-design animation state machines, and procedural audio.
  • game-dev-studio: Opens the Game Dev Studio visual side-panel workbench (sidecar://agy-game-studio/studio/sprite for the Sprite Editor and sidecar://agy-game-studio/studio/playtest for the Playtest tab) to inspect normalized .sprite and .aseprite sheets and playtest animations in live WebAssembly builds.

The 2-Step Character Sheet to Sprite Grid Workflow (with sprite-design)

Single-step sprite generation often struggles because it tries to invent a character's visual identity while keeping frame-to-frame proportions stable across a grid. Splitting character design from animation grid generation solves this:

Step 1: Generate the Character Turnaround & Palette Sheet

Generate a single character reference sheet first (1:1 or 16:9, 2K resolution) and enforce four prompt rules:

  1. Readable 2D Game Proportions: Specify a 1:2 to 1:3 head-to-body ratio so facial expressions, silhouettes, and limbs remain clear at gameplay scale.
  2. Genre Camera Projection: Match the exact camera angle of the game (2D side-profile for platformers, 3/4 top-down orthographic for RPGs, isometric 2:1 for tactics, or front-facing orthographic for puzzle and card games).
  3. Limb & Prop Separation: Keep arms, legs, tails, capes, and weapons slightly separated from the torso so silhouette joints are clean.
  4. Printed 4-Step Color Swatch Bar: Ask for a solid 4-step color ramp bar (Shadow -> Base -> Light -> Specular) for each main material so Step 2 locks exact colors (and sprite-design can run extract-palette).
bash
# Step 1 (via uv run scripts/banana.py - works with Vertex AI ADC or GEMINI_API_KEY):
uv run skills/nano-banana/scripts/banana.py \
  -p "2D game character reference sheet of an agile cyber-ninja cat in strict 2D side-profile view for a platformer. 1:2.5 head-to-body arcade proportions, clean cel-shaded outlines, arms and tail clearly separated from the torso, plus a printed 4-step color swatch bar (Shadow, Base, Light, Specular) in the corner. Solid flat neutral gray background." \
  -f "character_sheet.png" \
  -m "nano-banana-2.1" \
  -r "2K" \
  -a "1:1" \
  --thinking-level "medium"

# Or via gemini-api CLI:
gemini-api image \
  "2D game character reference sheet of an agile cyber-ninja cat in strict 2D side-profile view for a platformer. 1:2.5 head-to-body arcade proportions, clean cel-shaded outlines, arms and tail clearly separated from the torso, plus a printed 4-step color swatch bar (Shadow, Base, Light, Specular) in the corner. Solid flat neutral gray background." \
  --model "gemini-nano-banana-2.1" \
  --aspect-ratio "1:1" \
  --image-size "2K" \
  --body '{"generation_config":{"thinking_level":"medium"}}' \
  --out "character_sheet.png"
Step 2: Generate Uniform 4x4 Chroma-Key Sprite Grids with -i Reference Lock

Pass -i character_sheet.png into scripts/banana.py or gemini-api image to generate uniform 4x4 animation grids (1:1 aspect ratio at 1K or 2K so each cell is 256x256 or 512x512). For 8 motions (32 frames), generate two 4x4 grids (4 rows of 4 frames per grid) using the same -i character_sheet.png anchor:

  1. Flat Key Background & Zero Chrome: Require a flat, unlit #00FF00 bright green (or #FF00FF solid magenta, chosen so it never conflicts with the character palette) background with no grid lines, no cell borders, no ground shadows, no lighting gradients, and no text labels.
  2. 10% to 15% Cell Boundary Margin: Require at least 10% to 15% (25px+ on a 256x256 cell) of empty chroma-key margin on all four sides of every pose inside its grid cell so feet, tails, or weapons never touch or bleed into neighboring rows or columns.
  3. Complete 4-Frame Parabolic Jump Arc: When prompting for a 4-frame jump row, explicitly list all four phases so it transitions cleanly into fall:
    • Frame 1: crouch anticipation (coiled low on the ground).
    • Frame 2: upward launch (springing steeply upward with extended legs).
    • Frame 3: rising ascent (airborne rising pose, arms reaching up).
    • Frame 4: mid-air peak / apex suspension (horizontal floating body at the top of the jump arc with legs tucked underneath before falling).
bash
# Step 2 (via uv run scripts/banana.py):
uv run skills/nano-banana/scripts/banana.py \
  -p "Using the exact character identity, proportions, and color swatches from the reference image, generate a uniform 4x4 sprite sheet grid (4 rows, 4 columns, 16 frames total) in strict 2D side-profile view facing right on a flat unlit solid #00FF00 bright green chroma-key background. No grid lines, no borders, no drop shadows, and no text labels. Keep at least 15% empty #00FF00 margin around every character inside each cell so no limbs touch cell boundaries. Row 1 (frames 1-4): breathing idle cycle. Row 2 (frames 5-8): 4-step walk cycle. Row 3 (frames 9-12): fast leaning run cycle. Row 4 (frames 13-16): 4-phase jump arc (frame 13 coiled crouch anticipation, frame 14 upward launch, frame 15 rising ascent, frame 16 mid-air apex suspension with legs tucked)." \
  -i "character_sheet.png" \
  -f "raw_grid_part1.png" \
  -m "nano-banana-2.1" \
  -r "2K" \
  -a "1:1" \
  --thinking-level "high"

# Or via gemini-api CLI:
gemini-api image \
  "Using the exact character identity, proportions, and color swatches from the reference image, generate a uniform 4x4 sprite sheet grid (4 rows, 4 columns, 16 frames total) in strict 2D side-profile view facing right on a flat unlit solid #00FF00 bright green chroma-key background. No grid lines, no borders, no drop shadows, and no text labels. Keep at least 15% empty #00FF00 margin around every character inside each cell so no limbs touch cell boundaries. Row 1 (frames 1-4): breathing idle cycle. Row 2 (frames 5-8): 4-step walk cycle. Row 3 (frames 9-12): fast leaning run cycle. Row 4 (frames 13-16): 4-phase jump arc (frame 13 coiled crouch anticipation, frame 14 upward launch, frame 15 rising ascent, frame 16 mid-air apex suspension with legs tucked)." \
  -i "character_sheet.png" \
  --model "gemini-nano-banana-2.1" \
  --aspect-ratio "1:1" \
  --image-size "2K" \
  --body '{"generation_config":{"thinking_level":"high"}}' \
  --out "raw_grid_part1.png"

After generating raw_grid_part1.png (and optional raw_grid_part2.png), hand the files to sprite-design's normalizer (cd skills/sprite-design/scripts && go run . normalize -cols 4 -rows 4 ...) to strip the chroma key, prune any stray border fragments, align baselines, and export .png, .json, .aseprite, and per-motion .gif previews.


Model Selection & Capability Matrix

Capability / FeatureNano Banana 2.1 (nano-banana-2.1)Nano Banana 2 Lite (nano-banana-2-lite)Nano Banana 2 (nano-banana-2)Nano Banana Pro (nano-banana-pro)
Model ID (-m)gemini-nano-banana-2.1gemini-3.1-flash-lite-imagegemini-3.1-flash-imagegemini-3-pro-image
ArchitectureGemini 3.6 Flash (Oct 2026)Gemini 3.1 Flash LiteGemini 3.1 FlashGemini 3 Pro
Primary FocusPrimary recommended workhorse; speed, 4K, sprite grids, seamless panoramas, mask editingLow latency (<2s), high volumeGeneralist multimodal generation + 4KStudio precision & multi-style asset production
Resolutions (-r / --image-size)512px (512), 1K, 2K, 4K1K (1024px) only512px (512), 1K, 2K, 4K1K, 2K, 4K
Aspect Ratios (-a / --aspect-ratio)All 14 discrete ratios (seam and tiling elimination on 1:4, 4:1, 1:8, 8:1)14 discrete ratios14 discrete ratios (incl. 1:4, 4:1, 1:8, 8:1)10 standard ratios
Search GroundingWeb Search + Image SearchNot SupportedWeb Search + Image SearchWeb Search
Thinking ModeSupported (minimal, medium, high)Supported (minimal, high)Supported (minimal, high)Enabled by Default
Video ContextYouTube URLs & MP4 filesNot SupportedYouTube URLs & MP4 filesNot Supported
Reference Anchors (-i)Up to 14 (up to 10 objects + 4 characters) + mask editingUp to 14 (local/single edit focus)Up to 10 objects + 4 charactersUp to 6 objects + 5 characters + 3 styles
Function CallingNot SupportedSupportedNot SupportedNot Supported
Reference Guidenano-banana-2-1.mdnano-banana-2-lite.mdnano-banana-2.mdnano-banana-pro.md

Technical Reference Cards

Consult the model cards in references/ for full specifications, token tables, and pixel dimensions:


Core Execution Workflows

1. Python CLI Execution via uv run skills/nano-banana/scripts/banana.py

Run skills/nano-banana/scripts/banana.py with uv run for full Vertex AI / Gemini Enterprise (GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_LOCATION, ADC) and Gemini Developer API (GEMINI_API_KEY) support, strict model capability validation, and dual API selection (--api interactions or --api models):

bash
# Seamless 4:1 parallax background strip with Nano Banana 2.1 (Default), medium thinking & Image Search
uv run skills/nano-banana/scripts/banana.py \
  -p "A seamless 2D side-scrolling pixel-art parallax background of a synthwave city skyline" \
  -f "synthwave_parallax.png" \
  -m "nano-banana-2.1" \
  -r "2K" \
  -a "4:1" \
  --thinking-level "medium" \
  --image-search

# Explicit Vertex AI / Gemini Enterprise execution using Application Default Credentials
uv run skills/nano-banana/scripts/banana.py \
  -p "A minimalist flat illustration of a potion bottle icon on a dark UI card" \
  -f "potion_icon_lite.png" \
  -m "nano-banana-2-lite" \
  -a "1:1" \
  --vertexai \
  --project "$GOOGLE_CLOUD_PROJECT" \
  --location "${GOOGLE_CLOUD_LOCATION:-us-central1}"

# Studio-quality 4K key art with Nano Banana Pro and Google Web Search grounding
uv run skills/nano-banana/scripts/banana.py \
  -p "An authentic architectural photograph of a modern library atrium with skylights" \
  -f "library_4k.png" \
  -m "nano-banana-pro" \
  -r "4K" \
  -a "16:9" \
  --search

# Multimodal Image Editing ("banana this") with Multi-Reference Consistency
uv run skills/nano-banana/scripts/banana.py \
  -p "banana this character: place the character from the first image into the retro space suit from the second image on a lunar base" \
  -i "assets/hero_sheet.png" \
  -i "assets/spacesuit_ref.png" \
  -f "astronaut_hero.png" \
  -m "nano-banana-2.1" \
  -r "2K"

# Offline capability validation without network or credential calls
uv run skills/nano-banana/scripts/banana.py \
  -p "Isometric icon of a treasure chest" \
  -f "chest_icon.png" \
  -m "nano-banana-2.1" \
  -r "2K" \
  -a "1:1" \
  --dry-run
scripts/banana.py Argument Reference
  • -p, --prompt: Text prompt describing generation or edit instructions (required).
  • -f, --filename: Output file path for generated PNG/JPEG (required).
  • -i, --input-image: Path to input/reference image(s). Can be specified up to 14 times.
  • -m, --model: nano-banana-2.1 (default, alias nano-banana-2-1 / gemini-nano-banana-2.1), nano-banana-2 (gemini-3.1-flash-image), nano-banana-2-lite (alias nano-banana-lite / gemini-3.1-flash-lite-image), nano-banana-pro (gemini-3-pro-image).
  • -r, --resolution: 512px (512), 1K (default), 2K, 4K.
  • -a, --aspect-ratio: 1:1 (default), 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9.
  • --thinking-level: minimal, medium (Nano Banana 2.1 only), or high.
  • --search: Enable Google Web Search Grounding (nano-banana-2.1, nano-banana-2, nano-banana-pro).
  • --image-search: Enable Google Image Search Grounding (nano-banana-2.1 and nano-banana-2).
  • --api: interactions (default, Interactions API) or models (generate_content).
  • --vertexai: Force Vertex AI / Gemini Enterprise authentication via Application Default Credentials.
  • --project: Google Cloud Project ID for Vertex AI (defaults to GOOGLE_CLOUD_PROJECT or GCP_PROJECT).
  • --location: Google Cloud Location for Vertex AI (defaults to GOOGLE_CLOUD_LOCATION or us-central1).
  • --dry-run: Validate model capabilities and CLI arguments without calling the API.

2. CLI Execution via gemini-api image

You can also run gemini-api image when GEMINI_API_KEY or GEMINI_ACCESS_TOKEN is configured:

bash
# Seamless 4:1 parallax background strip with Nano Banana 2.1 (default model) & medium thinking
gemini-api image \
  "A seamless 2D side-scrolling pixel-art parallax background of a synthwave city skyline" \
  --image-size "2K" \
  --aspect-ratio "4:1" \
  --body '{"generation_config":{"thinking_level":"medium"}}' \
  --out "synthwave_parallax.png"

# Single-Turn Multimodal Image Editing ("banana this") with Reference Anchors
gemini-api image \
  "banana this character: place the character from the first image into the retro space suit from the second image on a lunar base" \
  -i "assets/hero_sheet.png" \
  -i "assets/spacesuit_ref.png" \
  --image-size "2K" \
  --out "astronaut_hero.png"

# Multi-Turn Conversational Editing using --previous-interaction-id
TURN1_ID=$(gemini-api image "A cozy pixel-art game developer studio with warm desk lighting" \
  --aspect-ratio "16:9" \
  --image-size "2K" \
  --out "studio_v1.png" \
  --jq '.response_id')

gemini-api image "Change the window view to a rainy cyberpunk night and add a sleeping cat on the desk" \
  --previous-interaction-id "$TURN1_ID" \
  --out "studio_v2.png"

3. SDK Integration Patterns (Application Backends)

For embedding Nano Banana into backend services, use the typed Google Gen AI SDKs:

Interactions API (client.interactions.create) (Recommended)

Best for multi-turn editing, search grounding, controllable thinking, and stateful iteration:

python
import base64
from google import genai

# Automatically uses GEMINI_API_KEY, or pass vertexai=True, project=..., location=... for Vertex AI
client = genai.Client()

# Text-to-Image Generation with Nano Banana 2.1, 4K Resolution, Medium Thinking & Search Grounding
interaction = client.interactions.create(
    model="gemini-nano-banana-2.1",
    input="An infographic chart showing the timeline of space exploration milestones",
    tools=[{"type": "google_search", "search_types": ["web_search", "image_search"]}],
    generation_config={"thinking_level": "medium"},
    response_format={
        "type": "image",
        "aspect_ratio": "16:9",
        "image_size": "4K",
    },
)

if interaction.output_image:
    with open("space_milestones.png", "wb") as f:
        f.write(base64.b64decode(interaction.output_image.data))
Models API (client.models.generate_content)

Direct stateless multimodal generation:

python
from google import genai
from PIL import Image

client = genai.Client()

img = Image.open("character_sheet.png")
response = client.models.generate_content(
    model="gemini-nano-banana-2.1",
    contents=[img, "Place this character in a cozy pixel-art game developer studio with warm desk lighting."],
)

for part in response.candidates[0].content.parts:
    if part.inline_data:
        with open("hero_studio.png", "wb") as f:
            f.write(part.inline_data.data)
        break

Prompting Best Practices

  1. Be Specific About Materials & Camera: Define surface textures, lighting setups, and camera projection (strict 2D side-profile orthographic, 2:1 dimetric isometric, 16-bit SNES pixel art, clean cel-shaded 2D HD with dark outer outlines).
  2. State Functional Intent & Chroma Key Constraints: When generating game sprites, explicitly state the grid layout (uniform 4x4 sprite sheet grid), solid key background (flat unlit #00FF00 bright green background, no shadows, no grid lines, no labels), and cell safety margins (at least 15% empty #00FF00 margin around every pose inside each cell).
  3. Lock Identity with Reference Inputs (-i): Always pass your Step 1 character sheet via -i when generating Step 2 animation grids, additional motion packs, or dialogue portraits so proportions and colors stay consistent.
  4. Conversational Inpainting: When editing an image, describe what to change while instructing the model to keep everything else intact ("Change only the armor trim to gold. Keep the pose, facial expression, and #00FF00 background untouched.").
  5. Positive Framing: Describe what should appear rather than listing negative words ("a clean, empty cobblestone street" rather than "no cars").

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Nano Banana?

Dialogbasierte Bildgenerierung und multimodale Bildbearbeitung mit Google Nano Banana-Modellen über uv run scripts/banana.py, die gemini-api CLI und Google Gen AI SDKs. Erstellt hochauflösende Bilder (512px, 1K, 2K, 4K), Charakterbögen für 2D-Spiele, Sprite-Raster mit Chroma-Key und nahtlose Parallax-Hintergründe. Überträgt Stile und bearbeitet Bilder mit Masken („banana this“). Dank mehrerer Referenzbilder bleiben Charaktere oder Stile konsistent. Aktivieren Sie diesen Skill, wenn Sie Illustrationen, Spielgrafiken oder Sprites erstellen, Bilder bearbeiten oder umwandeln oder die Charakterk...

Warum Nano Banana in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Nano Banana besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Nano Banana in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/danicat/skills/tree/main/media/nano-banana ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Nano Banana nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Nano Banana verwenden?

So viele Sie möchten. In TypingMind können Sie Nano Banana mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Nano Banana kostenlos?

Ja. Der Skill wird von danicat auf GitHub unter der Lizenz Apache-2.0 veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇