Skip to content
Back to skills

Nano Banana Pro

ASecurity

Generate/edit images with Nano Banana Pro (Gemini 3 Pro Image). Use for image create/modify requests incl. edits. Supports text-to-image + image-to-image; 1K/2K/4K; use --input-image.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsgobashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add YYC-Cube/YYC3-AI-Agent-Archive --skill nano-banana-pro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nano Banana Pro?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nano Banana Pro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yyc-cube-nano-banana-pro/badge)](https://www.skillsdirectory.com/skills/yyc-cube-nano-banana-pro)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nano-banana-pro
description: "Generate/edit images with Nano Banana Pro (Gemini 3 Pro Image). Use for image create/modify requests incl. edits. Supports text-to-image + image-to-image; 1K/2K/4K; use --input-image."
category: development-code
description_zh: "AI 图片生成与编辑(支持 4K)"
description_en: "AI image generation & editing (up to 4K)"
version: 1.0.1
---

# Nano Banana Pro Image Generation & Editing

Generate new images or edit existing ones using Google's Nano Banana Pro API (Gemini 3 Pro Image).

## Usage

Run the script using absolute path (do NOT cd to skill directory first):

**Generate new image:**
```bash
uv run {baseDir}/scripts/generate_image.py --prompt "your image description" --filename "output-name.png" [--resolution 1K|2K|4K] [--api-key KEY]
```

**Edit existing image:**
```bash
uv run {baseDir}/scripts/generate_image.py --prompt "editing instructions" --filename "output-name.png" --input-image "path/to/input.png" [--resolution 1K|2K|4K] [--api-key KEY]
```

**Important:** Always run from the user's current working directory so images are saved where the user is working.

## Default Workflow (draft > iterate > final)

- Draft (1K): quick feedback loop
- Iterate: adjust prompt in small diffs; keep filename new per run
- Final (4K): only when prompt is locked

## Resolution Options

- **1K** (default) - ~1024px resolution
- **2K** - ~2048px resolution
- **4K** - ~4096px resolution

## API Key

1. `--api-key` argument
2. `GEMINI_API_KEY` environment variable

## Image Editing

Use `--input-image` parameter with the path to the image. The prompt should contain editing instructions.

## Prompt Handling

**For generation:** Pass user's image description as-is to `--prompt`.
**For editing:** Pass editing instructions in `--prompt`.

## Output

- Saves PNG to current directory
- Script outputs the full path to the generated image
- **Do not read the image back** - just inform the user of the saved path

Files in this skill

  • SKILL.md1.9 KB
  • scripts/generate_image.py5.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.