nano-banana-pro
Generate or edit images via Gemini 3 Pro Image (Nano Banana Pro).
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- nano-banana-pro
- version
- 1.0.0
- description
- Generate or edit images via Gemini 3 Pro Image (Nano Banana Pro).
02 资源文件 1
- 脚本scripts/generate_image.py6.4 KB
03 SKILL.md 正文
Nano Banana Pro (Gemini 3 Pro Image)
Generate or edit images using Google's Gemini 3 Pro Image API.
Requirements
- uv (Python package manager) - Install:
brew install uv - GEMINI_API_KEY environment variable
Usage
Generate New Image
uv run {baseDir}/scripts/generate_image.py --prompt "your image description" --filename "output.png" --resolution 1K
Edit Single Image
uv run {baseDir}/scripts/generate_image.py --prompt "edit instructions" --filename "output.png" -i "/path/in.png" --resolution 2K
Multi-Image Composition (up to 14 images)
uv run {baseDir}/scripts/generate_image.py --prompt "combine these into one scene" --filename "output.png" -i img1.png -i img2.png -i img3.png
Configuration
API Key (in order of precedence):
--api-keyargumentGEMINI_API_KEYenvironment variable
Options
| Flag | Description |
|---|---|
-p, --prompt |
Image description/prompt (required) |
-f, --filename |
Output filename (required) |
-i, --input-image |
Input image for editing (can specify multiple) |
-r, --resolution |
Output resolution: 1K, 2K, 4K (default: 1K) |
-k, --api-key |
Gemini API key |
Notes
- Use timestamps in filenames:
yyyy-mm-dd-hh-mm-ss-name.png - The script outputs a
MEDIA:line with the saved file path - Do not read the image back; report the saved path only
- When editing, resolution auto-detects from input image dimensions
When to Use
- User asks to generate an image
- User wants to edit/modify an existing image
- User wants to combine multiple images
- Any AI image generation task
04 同仓库更多 Skills
well-formed
Fixture skill that satisfies every mechanical rule, used to prove the conformance check passes a clean tree instead of failing everything.
underscore-tools
Fixture skill that spells the tool allowlist key with an underscore instead of the hyphen the spec requires.
no-frontmatter
暂无简介
long-description
Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling.
some-other-name
Fixture skill whose frontmatter name does not match its parent directory name.
bad_Name
Fixture skill whose name uses an underscore and a capital letter, so it violates the agentskills.io name pattern.