What problem does it solve?
This skill automates image creation and refinement by using Gemini's image generation and editing capabilities. It translates text prompts into high-quality visuals and supports iterative refinements with minimal manual intervention.
Core Features & Use Cases
- Text-to-image generation: Create images from natural language prompts using Gemini models.
- Image editing & refinement: Modify existing images by describing changes and generating updated results.
- Multi-image composition: Combine multiple inputs or reference images into a single, cohesive composition guided by instructions.
- Interactive refinement: Iterate outputs in a chat-like flow to reach the desired result.
Quick Start
Install the dependencies, set GEMINI_API_KEY in your environment, and run examples:
- Generate an image: python scripts/generate_image.py "A futuristic city at dusk" output.png
- Edit an image: python scripts/edit_image.py input.png "Add a rainbow in the sky" edited.png
- Compose images: python scripts/compose_images.py "Create a poster" group.png person1.png --aspect 16:9 --size 2K