
nano-banana-2
Image generation and editing skill that uses Google's Nano Banana 2 API with fine resolution control.
- version
- 0.1.1772124957
- GitHub stars
- 302
What it does
- Covers creating new images and modifying existing ones through Google's Gemini 3.1 Flash Image Preview model
- Provides explicit aspect-ratio control and output resolution from 512px up to 4K
- Designed for workflows that need fast iteration on image generation and editing requests
Generate and edit images using Google's Nano Banana 2 (Gemini 3.1 Flash Image Preview) API. This skill should be used when the user asks to create or modify images, especially when they need fast iteration, explicit aspect-ratio control, or resolution control from 512px to 4K.
Add marketplace
/plugin marketplace add intellectronica/agent-skillsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install nano-banana-2@intellectronica-skillsRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceNano 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
Map common user language:
- "quick draft", "thumbnail", "tiny", "512", "0.5K" →
512px - no resolution mention →
1K - "2K", "medium", "normal" →
2K - "4K", "high-res", "ultra", "print quality" →
4K
Use uppercase K for 1K, 2K, 4K.
Aspect Ratios
Supported aspect ratios:
1:1,1:4,1:8,2:3,3:2,3:4,4:1,4:3,4:5,5:4,8:1,9:16,16:9,21:9
Map common requests:
- square post / icon →
1:1 - phone wallpaper / vertical reel →
9:16 - widescreen / slide / hero image →
16:9 - cinematic wide →
21:9 - portrait print →
2:3or3:4 - panorama banner →
4:1or8:1
If unspecified, let the model default behavior apply.
Reference Images (New in Gemini 3 Image workflows)
Provide up to 14 reference images when needed by repeating --input-image:
- preserve character consistency
- preserve object fidelity
- combine multiple visual references into one output
Use one image for simple edits; use multiple images for composition or consistency-sensitive tasks.
API Key
Resolve API key in this order:
--api-keyargumentGEMINI_API_KEYenvironment variable
If no key is available, stop and report a clear error.
Filename Generation
Generate filenames as: yyyy-mm-dd-hh-mm-ss-name.png
Examples:
2026-02-26-17-31-04-japanese-garden.png2026-02-26-17-31-59-social-banner.png
Prompt Handling
For generation, pass the user's request as-is unless critically underspecified. For editing, include explicit transformation instructions in the prompt and preserve the original intent.
Output
- Save PNG to the current directory (or to a provided path in
--filename) - Return the full saved path(s)
- Do not read the output image back unless explicitly requested
Examples
Create a 4K widescreen image:
uv run ./.agents/skills/nano-banana-2/scripts/generate_image.py --prompt "Futuristic city skyline at blue hour with neon reflections" --filename "2026-02-26-17-45-00-futuristic-skyline.png" --resolution 4K --aspect-ratio 16:9
Edit with multiple references:
uv run ./.agents/skills/nano-banana-2/scripts/generate_image.py --prompt "Create a polished campaign image that keeps the exact logo details and character identity" --filename "2026-02-26-17-50-10-campaign-image.png" --input-image "logo.png" --input-image "character.png" --resolution 2K --aspect-ratio 4:5
Readme
nano-banana-2
Generate and edit images using Google's Nano Banana 2 (Gemini 3.1 Flash Image Preview) API. This skill should be used when the user asks to create or modify images, especially when they need fast iteration, explicit aspect-ratio control, or resolution control from 512px to 4K.
Installation
Claude Code / Cowork
claude plugin marketplace add intellectronica/agent-skills
claude plugin install nano-banana-2@intellectronica-skills
npx skills
npx skills add intellectronica/agent-skills --skill nano-banana-2
This plugin is auto-generated from skills/nano-banana-2.
Details
- Marketplace
- intellectronica/agent-skills
- Source
- plugins/nano-banana-2
- Category
- Productivity
- Listed since
- Apr 7, 2026
More from intellectronica/agent-skills
All 22- nano-banana-prov0.1.1768936949
- notion-apiv0.1.1769613281
- promptifyv0.1.1768936949
- raindrop-apiv0.1.1769629481
- ray-so-code-snippetv0.1.1769029639
- tavilyv0.1.1768936124
- todoist-apiv0.1.1770201261
- ultrathinkv0.1.1768936949
- upstash-redis-kvv0.1.1770038631
- youtube-transcriptv0.1.1768936949
- anki-connectv0.1.1768994658
- beautiful-mermaidv0.1.1769684732
- context7v0.1.1768935194
- copilot-sdkv0.1.1775555186
- gog-cliv0.1.1777131088
- gpt-image-1-5v0.1.1768936949
- here-be-gitv0.1.1771067284
- lorem-ipsumv0.1.1768936949
- markdown-converterv0.1.1768936949
- mgrep-code-searchv0.1.1768936949
- monologue-notes-apiv0.1.1776844761
Similar to nano-banana-2
More AI Image, Video & Voice
nano-banana-2Skillintellectronica/agent-skills913 installsGenerative image skill that creates and edits images from prompts with explicit resolution and aspect-ratio control.
nano-banana-proSkillintellectronica/agent-skills3.2K 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.
nano-bananaPluginglebis/claude-skills414 starsGenerate and edit images using Google's Gemini image generation models (Nano Banana family). Supports style presets, pla
image-generatorPlugindair-ai/dair-academy-plugins619 starsGenerate and edit images using Gemini's Nano Banana Pro model with text-to-image, editing, and multi-image composition
image-genPluginnicknisi/claude-plugins114 starsGenerate or edit images via Google Gemini (nano-banana-pro) or OpenAI gpt-image-2. Supports 1K/2K/4K resolution and masked inpainting.