Automated pipeline that researches a location, builds a 52-page coloring book plan, and generates all illustrations via Google Gemini Nano Banana 2.
export GEMINI_API_KEY="your-key-from-aistudio.google.com/apikey"npm install @google/genai
pip install openpyxlCreate a Wilder Seasons coloring book for Colorado
Claude Code will:
- Research Colorado's landmarks, wildlife, flora, and seasonal patterns
- Build a 52-page content plan balanced across all regions
- Generate the prompts spreadsheet (.xlsx)
- Send all 52 prompts to Nano Banana 2
- Save images in the folder structure below
wilder-seasons-coloring-books/
└── colorado/
├── prompts/
│ ├── Colorado_ColoringBook_Prompts.xlsx
│ └── Colorado_ColoringBook_Prompts.json
├── images/
│ ├── winter/ (pages 01-13)
│ ├── spring/ (pages 14-26)
│ ├── summer/ (pages 27-39)
│ └── fall/ (pages 40-52)
├── rejects/ (failed generations + their prompts)
├── final/ (approved images, numbered 01-52)
├── generation_results.json
└── verification_report.json
python scripts/export_prompts.py prompts/MyBook_Prompts.xlsx prompts/prompts.jsonnode scripts/generate_images.js prompts/prompts.json images/node scripts/generate_images.js prompts/prompts.json images/ --start 14 --end 26node scripts/generate_images.js prompts/prompts.json images/ --retry-failedpython scripts/verify_images.py images/| Item | Cost |
|---|---|
| 52 images @ Nano Banana 2 (1K) | ~$2.35 |
| Retries (est. 5-10 images) | ~$0.50 |
| Total per book | ~$3.00 |
Free tier: ~500 images/day via Google AI Studio — enough for an entire book with iterations.
| Spec | Value |
|---|---|
| Pages | 52 interior + 4-page cover |
| Size | 8.5" × 11" |
| Interior | B&W line art, 60-70 lb uncoated |
| Cover | Full color, soft-touch matte |
| Binding | Saddle-stitch (lay-flat) |
| Age range | 0-5 years |
| Retail | $12.99 (D2C) / $14.99 (suggested) |