gemini-image-genGenerate and edit images via Google Gemini API. Supports Gemini native generation, Imagen 3, style presets, and batch generation with HTML gallery. Zero depe...
Install via ClawdBot CLI:
clawdbot install IISweetHeartII/gemini-image-genGenerate 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 |
| --- | --- |
| photo | Ultra-detailed photorealistic photography, 8K resolution, sharp focus |
| anime | High-quality anime illustration, Studio Ghibli inspired, vibrant colors |
| watercolor | Delicate watercolor painting on textured paper, soft edges, gentle color bleeding |
| cyberpunk | Neon-lit cyberpunk scene, rain-soaked streets, holographic displays, Blade Runner aesthetic |
| minimalist | Clean minimalist design, geometric shapes, limited color palette, white space |
| oil-painting | Classical oil painting with visible brushstrokes, rich textures, Renaissance lighting |
| pixel-art | Detailed pixel art, retro 16-bit style, crisp edges, nostalgic palette |
| sketch | Pencil sketch on cream paper, hatching and cross-hatching, artistic imperfections |
| 3d-render | Professional 3D render, ambient occlusion, global illumination, photorealistic materials |
| pop-art | Bold pop art style, Ben-Day dots, strong outlines, vibrant contrasting colors |
| Flag | Default | Description |
| --- | --- | --- |
| --prompt | (random) | Text prompt. Omit for random creative prompts |
| --count | 4 | Number of images to generate |
| --engine | gemini | Engine: gemini (native, supports edit) or imagen (Imagen 3) |
| --model | (auto) | Model override. Default: gemini-2.5-flash-image or imagen-3.0-generate-002 |
| --edit | | Path to input image for editing (Gemini engine only) |
| --aspect | 1:1 | Aspect ratio for Imagen: 1:1, 16:9, 9:16, 4:3, 3:4 |
| --out-dir | (auto) | Output directory (default is a timestamped folder) |
| --style | | Style preset to prepend to the prompt |
| --styles | | List available style presets and exit |
import subprocess
subprocess.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.https://github.com/IISweetHeartII/gemini-image-gen
Generated Mar 1, 2026
Marketing teams can quickly generate branded visual content for social media, ads, and blogs using style presets like photo or pop-art to maintain consistency. Batch generation allows producing multiple variations for A/B testing, while the HTML gallery simplifies review and selection.
Online retailers can create custom product images or edit existing ones to showcase items in different settings, such as changing backgrounds to match seasonal themes. Using the Imagen engine with specific aspect ratios ensures images fit platform requirements like 16:9 for banners.
Designers can rapidly prototype concepts for clients by generating images based on prompts, leveraging styles like watercolor or cyberpunk to explore artistic directions. The editing feature allows refining client-provided images, speeding up iterative feedback cycles.
Educators and content creators can produce custom illustrations for textbooks, presentations, or online courses using styles like sketch or 3d-render to enhance learning materials. Batch generation supports creating diverse visuals for lesson plans without graphic design expertise.
Indie game developers can generate concept art or in-game assets, such as pixel-art sprites or minimalist UI elements, to prototype visuals quickly. The ability to edit existing images helps refine character designs or environmental textures based on iterative feedback.
Offer a free tier with limited generations per month and basic styles, then charge subscriptions for advanced features like batch processing, priority API access, and custom style presets. Revenue comes from monthly or annual plans targeting small businesses and individual creators.
Provide white-label integration services for companies to embed this skill into their own platforms, such as e-commerce sites or marketing tools, with custom branding and support. Revenue is generated through one-time setup fees and ongoing maintenance contracts.
Create a marketplace where users can sell or license generated images, with the skill used to produce stock photos, digital art, or edited visuals. Revenue comes from transaction fees on sales and premium listings for featured content.
đŹ Integration Tip
Use the AgentGram integration to share generated images directly on social networks, boosting visibility and engagement for marketing campaigns.
Generate/edit images with Nano Banana Pro (Gemini 3 Pro Image). Use for image create/modify requests incl. edits. Supports text-to-image + image-to-image; 1K/2K/4K; use --input-image.
Capture frames or clips from RTSP/ONVIF cameras.
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
Generate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without browser automation.
äœżçšć çœź image_generate.py èæŹçæćŸç, ć〿ž æ°ć ·äœç `prompt`ă
AI image generation powered by CellCog. Create images, edit photos, consistent characters, product photography, reference-based images, sets of images, style transfer. Professional image creation with AI.