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