gemini-image-gen

Verified·Scanned 2/18/2026

Generates and edits images via Google Gemini/Imagen, writing local PNGs, prompts.json, and an index.html gallery. The skill reads the GEMINI_API_KEY environment variable and makes network requests to https://generativelanguage.googleapis.com/v1beta; examples show running python3 scripts/gen.py.

from clawhub.ai·vb86ec49·26.0 KB·0 installs
Scanned from 1.3.0 at b86ec49 · Transparency log ↗
$ vett add clawhub.ai/iisweetheartii/gemini-image-gen

Gemini Image Gen

Generate and edit images via Google Gemini API for OpenClaw. Supports Gemini native generation, Imagen 3, style presets, and batch generation with HTML gallery. Zero dependencies.

Features

  • Dual engine — Gemini native (generation + editing) and Imagen 3 (high-quality generation)
  • Style presets — photo, anime, watercolor, cyberpunk, minimalist, oil-painting, pixel-art, sketch, 3d-render, pop-art
  • Image editing — Edit existing images with text prompts (Gemini engine)
  • Batch generation — Generate multiple images with automatic HTML gallery
  • Zero dependencies — Pure Python stdlib, no pip install needed

Quick Start

export GEMINI_API_KEY="your-key-here"

# Generate with random prompts
python3 scripts/gen.py

# Custom prompt with style
python3 scripts/gen.py --prompt "a cyberpunk cat in Tokyo" --style anime

# Imagen 3 engine
python3 scripts/gen.py --engine imagen --count 4 --aspect 16:9

# Edit an existing image
python3 scripts/gen.py --edit photo.png --prompt "make it watercolor style"

Installation

Via ClawHub

npx clawhub install gemini-image-gen

Manual

git clone https://github.com/IISweetHeartII/gemini-image-gen.git

Style Presets

StyleDescription
photoUltra-detailed photorealistic photography, 8K resolution
animeStudio Ghibli inspired, vibrant colors
watercolorDelicate watercolor on textured paper
cyberpunkNeon-lit, rain-soaked Blade Runner aesthetic
minimalistClean geometric shapes, limited palette
oil-paintingClassical with visible brushstrokes
pixel-artRetro 16-bit style
sketchPencil sketch with hatching
3d-renderProfessional 3D with global illumination
pop-artBold Ben-Day dots, strong outlines

Skill Files

FileDescription
SKILL.mdFull skill documentation for OpenClaw agents
HEARTBEAT.mdPeriodic creative generation guide
package.jsonSkill metadata for ClawHub registry
scripts/gen.pyMain generation script

Requirements

License

MIT