Generate images in Nano Banana Pro visual style using Gemini API. Use when: (1) User wants to create images/illustrations for Nano Banana Pro presentations, (2) User needs product mockups, icons, or visual assets in the Nano Banana color scheme, (3) User asks for AI-generated images with dark mode t
npx playbooks add skill wayfind/origin-task --skill nano-banana-image
Generate AI images styled with the Nano Banana Pro visual identity using Google Gemini API.
# Generate an image
python scripts/generate_image.py "a futuristic productivity device" output.png
# With aspect ratio
python scripts/generate_image.py "app icon with lightning bolt" icon.png --aspect 1:1
Keys are stored in ~/.config/nano-banana-image/config.json and used in round-robin order.
python scripts/generate_image.py keys list
Output:
Configured API Keys (2) - Round Robin Mode:
--------------------------------------------------
1. default: AIzaSyDu8m...4Z0I [LAST USED]
2. secondary: AIzaSyAxUw...ydqk [NEXT]
--------------------------------------------------
Strategy: Round-robin (auto-rotate on each call)
python scripts/generate_image.py keys add <name> <api-key>
# Examples:
python scripts/generate_image.py keys add default AIzaSy...
python scripts/generate_image.py keys add work AIzaSy...
python scripts/generate_image.py keys remove <name>
python scripts/generate_image.py keys reset
Restarts round-robin from the first key.
On first use with no keys configured:
python scripts/generate_image.py --check
This shows setup instructions. User provides key, then:
python scripts/generate_image.py keys add default "AIzaSy..."
python scripts/generate_image.py "<description>" [output_path] [options]
| Argument | Description | Default |
|----------|-------------|---------|
| description | What to generate (required) | - |
| output_path | Output file path | output.png |
| --aspect | Aspect ratio: 1:1, 16:9, 9:16, 4:3, 3:4 | 16:9 |
| --model | Gemini model to use | gemini-3-pro-image-preview |
| --key | Use specific key (skips rotation) | next in rotation |
# Use 'work' key for this generation only (doesn't affect rotation)
python scripts/generate_image.py "prompt" output.png --key work
All generated images automatically include Nano Banana Pro styling:
Product Visualization
python scripts/generate_image.py "a compact smart device with glowing edges" product.png
Abstract Background
python scripts/generate_image.py "abstract geometric pattern with flowing particles" bg.png --aspect 16:9
Icon/Logo
python scripts/generate_image.py "minimalist sync icon with two rotating arrows" icon.png --aspect 1:1
Hero Image
python scripts/generate_image.py "futuristic AI brain with neural connections" hero.png
For best results, describe:
The Nano Banana style (colors, aesthetic) is automatically added.
Good prompts:
Avoid:
| Error | Solution |
|-------|----------|
| No API keys configured | Run keys add <name> <key> |
| Key 'xxx' not found | Run keys list to see available keys |
| HTTP 403 | Key invalid or lacks permissions |
| HTTP 429 | Rate limited - round-robin helps distribute load |
| No image generated | Rephrase prompt, avoid restricted content |
~/.config/nano-banana-image/config.jsonAIza...xxxx)GEMINI_API_KEY environment variable supported| Command | Description |
|---------|-------------|
| keys list | List all keys with rotation status |
| keys add <name> <key> | Add a new API key |
| keys remove <name> | Remove an API key |
| keys reset | Reset rotation to first key |
| --check | Check configuration status |
| --key <name> | Use specific key for one generation |
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.