Nano Banana 标志

Nano Banana

社区
danicat
nano-banana

使用 Google Nano Banana 模型,通过 uv run scripts/banana.py、gemini-api CLI 和 Google Gen AI SDK 进行对话式图像生成和多模态图像编辑。可生成高分辨率图像(512px、1K、2K、4K)、2D 游戏角色设定图、色度键抠像精灵图网格和无缝视差背景;执行风格迁移和基于蒙版的图像编辑(“banana this”),并通过多图参考输入保持角色或风格一致性。在生成插画、游戏美术和精灵图,编辑或转换图像,或保持角色在不同场景中的一致性时启用。

Add to TypingMind

概览

发布者danicat
代码仓库skills
技能名称nano-banana
星标数
24
复刻数
4
附带文件
6
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 6 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 danicat 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Nano Banana AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/danicat/skills/tree/main/media/nano-banana
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Nano Banana,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Nano Banana。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Nano Banana 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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").

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Nano Banana AI 技能有什么作用?

使用 Google Nano Banana 模型,通过 uv run scripts/banana.py、gemini-api CLI 和 Google Gen AI SDK 进行对话式图像生成和多模态图像编辑。可生成高分辨率图像(512px、1K、2K、4K)、2D 游戏角色设定图、色度键抠像精灵图网格和无缝视差背景;执行风格迁移和基于蒙版的图像编辑(“banana this”),并通过多图参考输入保持角色或风格一致性。在生成插画、游戏美术和精灵图,编辑或转换图像,或保持角色在不同场景中的一致性时启用。

为什么在 TypingMind 中使用 Nano Banana?

因为您只需安装一次,就能搭配任何模型使用。Nano Banana 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Nano Banana?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/danicat/skills/tree/main/media/nano-banana。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Nano Banana?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Nano Banana 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Nano Banana 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Nano Banana AI 技能免费吗?

是的。danicat 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇