Generate and edit images via Google Gemini API. Supports Gemini native generation, Imagen 3, style presets, and batch generation with HTML gallery. Zero depe...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install gemini-image-gen或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install gemini-image-gen⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/gemini-image-gen/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: gemini-image-gen description: Generate and edit images via Google Gemini API. Supports Gemini native generation, Imagen 3, style presets, and batch generation with HTML gallery. Zero dependencies — pure Python stdlib. homepage: https://github.com/IISweetHeartII/gemini-image-gen metadata: openclaw: emoji: "🎨" category: creative requires: bins: - python3 env: - GEMINI_API_KEY primaryEnv: GEMINI_API_KEY tags: - image-generation - gemini - imagen - ai-art - creative - editing - batch - gallery ---
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 | | --- | --- | | 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
安装 Gemini Image Gen 后,可以对 AI 说这些话来触发它
Help me get started with Gemini Image Gen
Explains what Gemini Image Gen does, walks through the setup, and runs a quick demo based on your current project
Use Gemini Image Gen to generate and edit images via Google Gemini API
Invokes Gemini Image Gen with the right parameters and returns the result directly in the conversation
What can I do with Gemini Image Gen in my design & creative workflow?
Lists the top use cases for Gemini Image Gen, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/gemini-image-gen/ 目录(个人级,所有项目可用),或 .claude/skills/gemini-image-gen/(项目级)。重启 AI 客户端后,用 /gemini-image-gen 主动调用,或让 AI 根据上下文自动发现并使用。
Gemini Image Gen 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
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...
Gemini Image Gen 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Gemini Image Gen
Identifies repetitive steps in your workflow and sets up Gemini Image Gen to handle them automatically