Gemini Image Gen
Generate and edit images via Google Gemini API. Supports Gemini native generation, Imagen 3, style presets, and batch generation with HTML gallery. Zero depe...
Generate and edit images via Google Gemini API. Supports Gemini native generation, Imagen 3, style presets, and batch generation with HTML gallery. Zero depe...
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Generate and edit images via the Google Gemini API using pure Python stdlib. Supports Gemini native generation + editing, Imagen 3 generation, batch runs, and an HTML gallery output.
export GEMINI_API_KEY="your-key-here"Default: Gemini native, 4 random prompts
python3 scripts/gen.py
Custom prompt
python3 scripts/gen.py --prompt "a cyberpunk cat riding a neon motorcycle through Tokyo at night"
Imagen 3 engine
python3 scripts/gen.py --engine imagen --count 4 --aspect 16:9
Edit an existing image (Gemini engine only)
python3 scripts/gen.py --edit path/to/image.png --prompt "change the background to a sunset beach"
Use a style preset
python3 scripts/gen.py --style watercolor --prompt "floating islands above a calm sea"
List available styles
python3 scripts/gen.py --styles
| Style | Description |
|---|---|
| Ultra-detailed photorealistic photography, 8K resolution, sharp focus |
| High-quality anime illustration, Studio Ghibli inspired, vibrant colors |
| Delicate watercolor painting on textured paper, soft edges, gentle color bleeding |
| Neon-lit cyberpunk scene, rain-soaked streets, holographic displays, Blade Runner aesthetic |
| Clean minimalist design, geometric shapes, limited color palette, white space |
| Classical oil painting with visible brushstrokes, rich textures, Renaissance lighting |
| Detailed pixel art, retro 16-bit style, crisp edges, nostalgic palette |
| Pencil sketch on cream paper, hatching and cross-hatching, artistic imperfections |
| Professional 3D render, ambient occlusion, global illumination, photorealistic materials |
| Bold pop art style, Ben-Day dots, strong outlines, vibrant contrasting colors |
| Flag | Default | Description |
|---|---|---|
| (random) | Text prompt. Omit for random creative prompts |
| 4 | Number of images to generate |
| gemini | Engine: (native, supports edit) or (Imagen 3) |
| (auto) | Model override. Default: or |
| Path to input image for editing (Gemini engine only) | |
| 1:1 | Aspect ratio for Imagen: , , , , |
| (auto) | Output directory (default is a timestamped folder) |
| Style preset to prepend to the prompt | |
| List available style presets and exit |
import subprocesssubprocess.run( [ "python3", "scripts/gen.py", "--prompt", "a serene mountain landscape at golden hour", "--count", "4", "--style", "photo", ], check=True, )
GEMINI_API_KEY in your environment and retry.--count, or switch engines.--style and --styles flags, expanded documentation.No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.