Generate and edit images with Gemini API using pure Python stdlib. Zero dependencies - works on locked-down environments where pip/uv aren't available.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install gemini-image-simple或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install gemini-image-simple⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/gemini-image-simple/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: gemini-image-simple version: 1.1.0 description: Generate and edit images with Gemini API using pure Python stdlib. Zero dependencies - works on locked-down environments where pip/uv aren't available. metadata: openclaw: emoji: "🎨" requires: env: ["GEMINI_API_KEY"] ---
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) - the highest quality image generation model.
| Feature | This Skill | Others (nano-banana-pro, etc.) | |---------|------------|-------------------------------| | Dependencies | None (stdlib only) | google-genai, pillow, etc. | | Requires pip/uv | ❌ No | ✅ Yes | | Works on Fly.io free | ✅ Yes | ❌ Fails | | Works in containers | ✅ Yes | ❌ Often fails | | Image generation | ✅ Full | ✅ Full | | Image editing | ✅ Yes | ✅ Yes | | Setup complexity | Just set API key | Install packages first |
Bottom line: This skill works anywhere Python 3 exists. No package managers, no virtual environments, no permission issues.
# Generate
python3 /data/clawd/skills/gemini-image-simple/scripts/generate.py "A cat wearing a tiny hat" cat.png
# Edit existing image
python3 /data/clawd/skills/gemini-image-simple/scripts/generate.py "Make it sunset lighting" edited.png --input original.png
python3 {baseDir}/scripts/generate.py "your prompt" output.png
python3 {baseDir}/scripts/generate.py "edit instructions" output.png --input source.png
Supported input formats: PNG, JPG, JPEG, GIF, WEBP
Set GEMINI_API_KEY environment variable. Get one at https://aistudio.google.com/apikey
Uses Nano Banana Pro (nano-banana-pro-preview) - Google's highest quality image generation model:
urllib.request for HTTP (no requests library)json for parsing (stdlib)base64 for encoding (stdlib)That's it. No external packages. Works on any Python 3.10+ installation.
Currently using: nano-banana-pro-preview (also known as Gemini 3 Pro Image)
Other available models (can be changed in generate.py if needed):
gemini-3-pro-image-preview - Same as Nano Banana Proimagen-4.0-ultra-generate-001 - Imagen 4.0 Ultraimagen-4.0-generate-001 - Imagen 4.0gemini-2.5-flash-image - Gemini 2.5 Flash with image gen# Landscape
python3 {baseDir}/scripts/generate.py "Misty mountains at sunrise, photorealistic" mountains.png
# Product shot
python3 {baseDir}/scripts/generate.py "Minimalist product photo of a coffee cup, white background" coffee.png
# Edit: change style
python3 {baseDir}/scripts/generate.py "Convert to watercolor painting style" watercolor.png --input photo.jpg
# Edit: add element
python3 {baseDir}/scripts/generate.py "Add a rainbow in the sky" rainbow.png --input landscape.png安装 Gemini Image Simple 后,可以对 AI 说这些话来触发它
Help me get started with Gemini Image Simple
Explains what Gemini Image Simple does, walks through the setup, and runs a quick demo based on your current project
Use Gemini Image Simple to generate and edit images with Gemini API using pure Python stdlib
Invokes Gemini Image Simple with the right parameters and returns the result directly in the conversation
What can I do with Gemini Image Simple in my developer & devops workflow?
Lists the top use cases for Gemini Image Simple, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/gemini-image-simple/ 目录(个人级,所有项目可用),或 .claude/skills/gemini-image-simple/(项目级)。重启 AI 客户端后,用 /gemini-image-simple 主动调用,或让 AI 根据上下文自动发现并使用。
Gemini Image Simple 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Gemini Image Simple 可免费安装使用。请查阅仓库了解许可证信息。
Generate and edit images with Gemini API using pure Python stdlib. Zero dependencies - works on locked-down environments where pip/uv aren't available.
Gemini Image Simple 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Gemini Image Simple
Identifies repetitive steps in your workflow and sets up Gemini Image Simple to handle them automatically