# nano-banana-2

A skill for Claude Code, Codex, Cursor and other platforms that generates images with Google Gemini 3.1 Flash Image Preview (Nano Banana 2) through the belt CLI. Runs on text prompts, edits existing images, and accepts up to 14 input files.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 240 installs · ★ 31 repo stars
- Author: 101-skills
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/101-skills/superpowers/tree/HEAD/tools/image/nano-banana-2/SKILL.md
- Updated: 2026-08-31
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/101-skills-nano-banana-2

## What it does

Calls `belt app run google/gemini-3-1-flash-image-preview` with JSON parameters: `prompt` (required), `images` (array of URLs or paths, up to 14 JPEG/PNG/WebP files for editing), `num_images`, `aspect_ratio` (1:1, 16:9, 9:16, 4:3, 3:4, auto), `resolution` (1K, 2K, 4K; defaults to 1K), and `enable_google_search` to ground generation in live data—weather, news, current facts.

Returns an `images` array with the output files, a `description` text field, and `output_meta` with pricing metadata. Requires `belt login` and the inference.sh `belt` CLI installed before first run; commands fail without it. Supports the inference.sh Python SDK with streaming progress updates.

Prompts can specify style (photorealistic, illustration, watercolor, anime, 3D render), composition (close-up, aerial view, portrait), lighting (golden hour, neon, dramatic shadows), and texture, color, mood detail. Generates multiple variants in one call and handles custom aspect ratios.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill nano-banana-2 -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/nano-banana-2/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/nano-banana-2/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill nano-banana-2 -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/nano-banana-2/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill nano-banana-2 -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/nano-banana-2/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install 101-skills/superpowers tools/image/nano-banana-2
```

2. **Manually: put the files in place**
- File: `.github/skills/nano-banana-2/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill nano-banana-2 -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/101-skills/superpowers --path tools/image/nano-banana-2
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/nano-banana-2/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill nano-banana-2 -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/101-skills/superpowers/tree/HEAD/tools/image/nano-banana-2/SKILL.md

## When to use it
- generate an image from a text description with Gemini 3.1 Flash Image
- edit an existing image based on a prompt
- get four logo or illustration variants in one request
- create a 16:9 panoramic scene in 4K resolution
- ground image generation in live Google Search data

## Example prompts
- Draw a banana in space, photorealistic, using `nano-banana-2`
- Edit `landscape.jpg`: add a rainbow in the sky
- Create four minimalist coffee shop logo variants, 1:1 aspect ratio

## Similar
- [nano-banana-edit](https://affpapa.org/en/nevibecode/skills/nano-banana-edit.md) — skill · 447900 installs
- [nano-banana-pro-openrouter](https://affpapa.org/en/nevibecode/skills/nano-banana-pro-openrouter.md) — skill · 9910 installs
- [nano-banana-image](https://affpapa.org/en/nevibecode/skills/nano-banana-image.md) — skill · 232 installs
- [nano-banana-pro-prompts-recommend-skill](https://affpapa.org/en/nevibecode/skills/nano-banana-pro-prompts-recommend-skill.md) — skill · 1 install
- [nano-banana-pro](https://affpapa.org/en/nevibecode/skills/nano-banana-pro.md) — skill · 3200 installs
- [muapi-nano-banana](https://affpapa.org/en/nevibecode/skills/muapi-nano-banana.md) — skill · 3000 installs

## Other versions with the same name
- [nano-banana-2 · prime-skills](https://affpapa.org/en/nevibecode/skills/nano-banana-2.md) — 448600 installs
- [nano-banana-2 · intellectronica](https://affpapa.org/en/nevibecode/skills/intellectronica-nano-banana-2.md) — 920 installs

From the same set: [101-skills/superpowers](https://affpapa.org/en/nevibecode/by/101-skills/superpowers.md) — 81 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
