# Nano banana

> Nano banana is an open-source agent skill for design and media. Generates and edits images from text prompts using Google's Nano Banana 2 model. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/LichAmnesia/lich-skills/tree/main/skills/nano-banana
- **Repository:** https://github.com/lichamnesia/lich-skills
- **GitHub stars:** 233
- **License:** MIT
- **Skill name:** nano-banana
- **Collection:** https://github.com/LichAmnesia/lich-skills
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-12-02

## About

This skill lets an agent create new PNG images from a text description or modify an existing image using a supplied instruction, backed by Google's gemini-3.1-flash-image-preview model. Output resolution can be set to 512, 1K, 2K or 4K, and when editing, the output defaults to the input image's dimensions unless a resolution is passed explicitly.

The skill bundles a Python script that runs through uv with inline dependencies, so the first run installs its libraries automatically. It also gives the agent prompt templates for generation and editing, including a habit of stating what should stay unchanged during an edit, plus a mapping from casual wording like "thumbnail" or "print" to a resolution flag.

Using it requires a Gemini API key exported as GEMINI_API_KEY or GOOGLE_API_KEY, and uv installed on the machine. The skill says the script never prints the key or image bytes, and it lists a short checklist for common failures such as missing keys, unreadable input files and quota errors.

## When your agent uses it

> Generate or edit images with Google's Nano Banana 2 (`gemini-3.1-flash-image-preview`). Use when the user asks to generate an image, edit an image, or create a picture. Supports 512 / 1K / 2K / 4K resolutions.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/LichAmnesia/lich-skills/tree/HEAD/skills/nano-banana)
- [No network calls found in its scripts](https://github.com/LichAmnesia/lich-skills/tree/HEAD/skills/nano-banana)
- [License: MIT](https://github.com/LichAmnesia/lich-skills/tree/HEAD/skills/nano-banana)

## Features

- **Text-to-image generation:** Creates PNG images from a written description with optional style, lighting and composition hints.
- **Image editing:** Applies a targeted change to a supplied image while keeping the rest of the frame intact.
- **Resolution control:** Offers 512, 1K, 2K and 4K output and maps everyday phrasing to the right size.
- **Prompt templates:** Provides structured templates for generation and editing prompts.
- **Setup and error checks:** Lists API key handling, uv installation and fixes for common script errors.

## Good for

- Generate a cover image for a blog post
- Remove people or objects from a photo
- Create a poster or icon from a text description
- Swap the background of an existing picture
- Make a high-resolution wallpaper from a prompt

## Install

### Claude Code

This skill ships in the `lich-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add LichAmnesia/lich-skills
/plugin install lich-skills@lich-skills
```

Or copy only this skill to `~/.claude/skills/nano-banana`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/nano-banana &&
cp -R "$tmp/skills/nano-banana" ~/.claude/skills/nano-banana &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/nano-banana` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/nano-banana` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/nano-banana &&
cp -R "$tmp/skills/nano-banana" ~/.agents/skills/nano-banana &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/nano-banana` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/nano-banana` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/nano-banana &&
cp -R "$tmp/skills/nano-banana" ~/.cursor/skills/nano-banana &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/nano-banana` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/LichAmnesia/lich-skills.git --path skills/nano-banana
```

Or copy the folder to `~/.gemini/skills/nano-banana` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/nano-banana`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/nano-banana &&
cp -R "$tmp/skills/nano-banana" ~/.copilot/skills/nano-banana &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/nano-banana` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git
```

Then copy `lich-skills/skills/nano-banana` into your agent's skills folder as `nano-banana`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What do I need before using Nano banana?

A Gemini API key set as GEMINI_API_KEY or GOOGLE_API_KEY, and the uv tool installed. The script installs google-genai and pillow on first run.

### What output format does Nano banana produce?

PNG. RGBA images are converted to RGB on a white background.

### Can Nano banana generate video?

No. The skill states that Nano Banana is image-only and points users to other tools for video.

### What resolutions are supported?

512, 1K, 2K and 4K, with 1K as the default for generation.

### How do I install Nano banana in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/nano-banana to use it in all your projects, or to .claude/skills/nano-banana in one project. Or install the lich-skills plugin, which includes it: /plugin marketplace add LichAmnesia/lich-skills, then /plugin install lich-skills@lich-skills.

### Does Nano banana run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Nano banana?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Nano banana?

The closest alternatives to Nano banana are Nano banana pro openrouter, Generate image, Gemini omni flash API, Fal AI media and SEO image gen.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Nano banana pro openrouter](https://ai-powered.com/skills/nano-banana-pro-openrouter): Nano banana pro openrouter is an open-source agent skill for design and media.
- [Generate image](https://ai-powered.com/skills/generate-image): Generate image is an open-source agent skill for design and media.
- [Gemini omni flash API](https://ai-powered.com/skills/gemini-omni-flash-api): Gemini omni flash API is an open-source agent skill for design and media.
- [Fal AI media](https://ai-powered.com/skills/fal-ai-media): Fal AI media is an open-source agent skill for design and media.
- [SEO image gen](https://ai-powered.com/skills/seo-image-gen-agricidaniel): SEO image gen is an open-source agent skill for design and media.
- [SEO image gen](https://ai-powered.com/skills/seo-image-gen): SEO image gen is an open-source agent skill for design and media.
- [Ljg card](https://ai-powered.com/skills/ljg-card): Ljg card is an open-source agent skill for design and media.
- [Imagegen](https://ai-powered.com/skills/imagegen): Imagegen is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/nano-banana-lichamnesia
