What problem does it solve?
This skill automates image generation using the Gemini API and stores the resulting assets in your repository, streamlining the creation of visual content for sites, apps, and marketing.
Core Features & Use Cases
- Automated image generation: Generate high-quality images from descriptive prompts using Gemini's flash and pro models.
- Flexible outputs: Supports multiple aspect ratios (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3) to fit landing pages, hero sections, product images, avatars, and placeholders.
- Seamless asset management: Saves generated PNGs directly into your project/assets directory for immediate integration.
Quick Start
Set your Gemini API key and generate an image with a descriptive prompt. Example:
export GEMINI_API_KEY="your-api-key"
python ~/.claude/skills/generating-images/scripts/generate_image.py --prompt "A modern hero image for a tech startup" --output "./assets/images/hero.png" --aspect-ratio "16:9"