What you get. A small skill that takes a text description and hands you back an image, generated by Google's Nano Banana Pro (the gemini-3-pro-image-preview model) through the Gemini API. Ask Claude for a picture in plain language and it saves a PNG for you.
Two quick setups. First you create a Gemini API key so the skill can reach the model. Then you paste one prompt to install the skill. After that, you are generating images by just asking.
The skill authenticates to Google with a key from Google AI Studio.
On Mac or Linux, add it to your shell profile, then restart your terminal:
On Windows, search Environment Variables, add a new user variable named GEMINI_API_KEY with your key as the value, then reopen your terminal.
Creating the key is free, but Nano Banana Pro has no free API tier, so you must enable billing on the key's Google project to use it (roughly $0.13 per image). In AI Studio, open your key's project and turn on billing. Prefer to test for free first? The standard Nano Banana (Flash) model has a free daily quota, and the install step below tells you the one-line change to use it.
This is the part that actually puts the skill on your machine. Open Claude Code in any folder, paste the prompt below, and hit Enter. Claude creates the skill at ~/.claude/skills/nano-banana/, writes both files, installs the Python dependencies, and verifies it.
One-paste install prompt — self-contained, the SKILL.md and Python script are inline.
With the skill installed and your key set, just ask Claude for a picture in plain language:
Claude runs the skill and saves the PNG where you asked. Describe the subject, style, lighting, and mood in a full sentence. A narrative prompt gives the model far more to work with than a keyword dump like "coffee shop, rain, watercolor."
Open ~/.claude/skills/nano-banana/scripts/generate.py and change the MODEL line to gemini-2.5-flash-image. That is the standard Nano Banana, which has a free daily quota. Switch back to gemini-3-pro-image-preview for the higher-quality Pro results once billing is on.
"GEMINI_API_KEY is not set"
The key is not set, or your terminal has not picked it up yet. Set it (Step 1) and open a fresh terminal.
A billing or quota error
Nano Banana Pro is a paid model and needs billing enabled on the key's Google project. Turn it on in AI Studio, or switch the script to the free Flash model using the tip above.
No module named google or PIL
The Python dependencies did not install. Run python3 -m pip install google-genai Pillow.
Made by AI Service Engine · what is a skill? · build your own skill