image-generation
✓Gemini 图像生成和编辑技能,用于文本到图像、图像到图像编辑、多参考合成和 Google 搜索基础。在使用 Python SDK 通过 Gemini(默认型号 gemini-3-pro-image-preview)创建或修改图像时使用。
SKILL.md
Use this skill when the user asks to generate or edit images with Gemini using the Python SDK. Default to gemini-3-pro-image-preview, and mention gemini-2.5-flash-image only as an optional faster/cheaper alternative.
1) Identify task type (text-to-image, edit, or multi-reference). 2) Ensure GEMINIAPIKEY is available (env or stored in .env), then use the Python SDK. This will make network requests to the Gemini API 3) Choose model + output (responsemodalities=["IMAGE"] if image-only) and run. Generation can take 30 seconds; allow 30–60 seconds before retrying.
4) Save returned images with part.asimage(); if none, report a clear error.
Gemini 图像生成和编辑技能,用于文本到图像、图像到图像编辑、多参考合成和 Google 搜索基础。在使用 Python SDK 通过 Gemini(默认型号 gemini-3-pro-image-preview)创建或修改图像时使用。 来源:xiangyu-cas/vision-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/xiangyu-cas/vision-skills --skill image-generation- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 image-generation?
Gemini 图像生成和编辑技能,用于文本到图像、图像到图像编辑、多参考合成和 Google 搜索基础。在使用 Python SDK 通过 Gemini(默认型号 gemini-3-pro-image-preview)创建或修改图像时使用。 来源:xiangyu-cas/vision-skills。
如何安装 image-generation?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/xiangyu-cas/vision-skills --skill image-generation 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/xiangyu-cas/vision-skills