
Nano Banana Pro Image Generator
Generate and edit images with Google's Gemini image API from inside your agent.
- Repository
- steipete/agent-scripts
- Stars
- 7,433
- Licence
- MIT
- Files
- 3 files
What it does
Once installed, the agent can create new images from a text description or edit an existing image you point it to, using Google's Nano Banana 2 (Gemini image) API. It runs a bundled Python script that calls the API, saves a PNG to your current folder, and reports the file path. It also follows a draft-then-final workflow: quick 1K drafts first, then a 4K final once the prompt is right.
Great for
- Designers or marketers who want quick image drafts and edits without leaving their agent
- Developers who want a scripted image generation step with safe file-output handling
- Anyone who already has a Google Gemini API key and wants to generate images from chat
Skip it if
- Users without a Gemini API key or billing/quota access, since every request calls a paid remote API and will fail without one
- Sensitive or private photos you do not want sent to a third-party cloud service for editing
- Environments without uv installed, since the skill is launched through uv and will not run otherwise
Try asking
- “Create an image of a serene Japanese garden with cherry blossoms at 4K”
- “Make the sky in original-photo.jpg more dramatic with storm clouds”
- “Draft a quick 1K concept of a robot mascot, then produce a final version once I approve it”
- “Generate a 512px thumbnail of a product shot”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 3 original files, the MIT licence and an attribution note.
nano-banana-pro.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip nano-banana-pro.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip nano-banana-pro.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Start with a 1K draft and only generate 4K once the prompt is settled, since higher resolutions take longer and cost more quota.
- Prefer setting GEMINI_API_KEY as an environment variable rather than pasting a key into chat, so the key does not end up in conversation history.
- For edits, describe one change at a time and keep the same input image across iterations so results stay consistent.
What's inside
- scripts/generate_image.py
- scripts/test_generate_image.py
- SKILL.md
Redistributed unmodified from steipete/agent-scripts under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.