Nano Banana 2
Generative image skill that creates and edits images from prompts with explicit resolution and aspect-ratio control.
- CCM score
- 62 of 100
- skills.sh installs
- 935
- GitHub stars
- 305
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers generating new images from a text prompt and editing existing images using up to 14 reference inputs
- Runs
generate_image.pyon thegemini-3.1-flash-image-previewmodel with512px,1K,2K, or4Koutput and 14 supported aspect ratios - Maps plain-language requests like "thumbnail" or "print quality" to the matching resolution and aspect ratio, and saves timestamped PNG files
- Designed for fast iteration on visuals that need precise sizing, with an API key read from
--api-keyorGEMINI_API_KEY
Install
$ npx -y skills add intellectronica/agent-skills --skill nano-banana-2 -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Nano Banana 2 Image Generation & Editing
Generate new images or edit existing images with Nano Banana 2 (gemini-3.1-flash-image-preview).
Usage
Run the script using absolute or workspace-relative path (do NOT cd into the skill directory first):
Generate new image:
uv run ./.agents/skills/nano-banana-2/scripts/generate_image.py --prompt "your image description" --filename "output-name.png" [--resolution 512px|1K|2K|4K] [--aspect-ratio RATIO] [--api-key KEY]
Edit image(s) with references:
uv run ./.agents/skills/nano-banana-2/scripts/generate_image.py --prompt "editing instructions" --filename "output-name.png" --input-image "path/to/input1.png" [--input-image "path/to/input2.png" ...] [--resolution 512px|1K|2K|4K] [--aspect-ratio RATIO] [--api-key KEY]
Always run from the user's current working directory so outputs are saved in the active project context.
Model
Use model code:
gemini-3.1-flash-image-preview(Nano Banana 2)
Do not use gemini-3-pro-image-preview in this skill.
Resolution Options
Nano Banana 2 supports:
512px(fastest, low-latency iteration)1K(default)2K4K
Details
- Repository
- github.com/intellectronica/agent-skills
- Categories
- AI Image, Video & Voice, Design & UI/UX
- First seen
- Jun 3, 2026
More from intellectronica/agent-skills
All 22- Gog Cli824
- Promptify665
- Tavily643
- Mgrep Code Search638
- Gpt Image 1 5631
- Copilot Sdk545
- Here Be Git541
- Ray So Code Snippet533
- Lorem Ipsum526
- Raindrop Api517
- Upstash Redis Kv483
- Monologue Notes Api227
- Notion Api111.6K
- Context711.4K
- Youtube Transcript3.5K
- Nano Banana Pro3.3K
- Ultrathink1.9K
- Beautiful Mermaid1.9K
- Markdown Converter1.7K
- Todoist Api1.7K
- Anki Connect953
Similar to Nano Banana 2
More AI Image, Video & Voicenano-banana-proSkillintellectronica/agent-skills3.3K installsGenerates and edits images with Google's Nano Banana Pro (Gemini 3 Pro Image) API at 1K, 2K, or 4K.
Nano-BananaMCP serverconechoai240 starsImage generation and editing through Google's Gemini 2.5 Flash Image API, with iterative refinement.
nanobanana-skillSkillfeiskyer/claude-code-settings338 installsDefault Gemini-backed image generation and editing skill that handles prompts without a named provider.
Mcp ImageMCP servershinpr197 starsGenerates and edits images via Gemini, OpenAI, or BytePlus Seedream, with optional prompt enhancement.
gpt-image-1-5Skillintellectronica/agent-skills631 installsGenerates and edits images with OpenAI's GPT Image 1.5, including mask-based inpainting for precise regional changes.
gpt-image-skillSkillfeiskyer/claude-code-settings161 installsGenerates or edits images through OpenAI's GPT Image models, gated to requests that name OpenAI or GPT.