What problem does it solve?
Programmatic image generation and editing can be fragmented and error-prone when dealing with API quotas, model choices, file formats, and iterative refinements. This Skill centralizes generation, editing, composition, and multi-turn refinement workflows against Google's Gemini API while providing quota checks, error handling, and format guidance to ensure reliable outputs.
Core Features & Use Cases
- Text-to-Image Generation: Create photorealistic or stylized images from prompts with configurable aspect ratio and resolution.
- Image Editing & Multi-Turn Refinement: Edit existing images conversationally and refine outputs across interactive chat sessions.
- Composition & Style Transfer: Combine up to 14 reference images for composite scenes or transfer artistic styles between images, ideal for product mockups, logos, stickers, and marketing assets.
- Robustness: Includes quota checking, explicit error mapping for common API failures, and guidance to save Gemini JPEG outputs correctly or convert to PNG when required.
Quick Start
Generate a 1K square product mockup of a red sneaker and save the result as output.jpg using the gemini-imagegen scripts.