技能 generate-image
🎨

generate-image

安全 🌐 網路存取📁 檔案系統存取🔑 環境變數⚙️ 外部命令

使用 FLUX 和 Gemini 生成 AI 圖片

也可從以下取得: davila7

使用 AI 模型為簡報、文件和出版物建立高品質圖片。使用簡單的文字提示產生原創作品或編輯現有圖片。透過 OpenRouter API 存取 FLUX 和 Gemini 模型。

支援: Claude Codex Code(CC)
🥉 73 青銅
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「generate-image」。 Generate an image of a molecular structure with glowing bonds, scientific illustration style

預期結果:

  • Model: google/gemini-3-pro-image-preview
  • Image saved to: generated_image.png
  • Generation time: ~15 seconds

正在使用「generate-image」。 Edit this image: Make the sky purple with sunset colors, input: landscape.png

預期結果:

  • Model: google/gemini-3-pro-image-preview
  • Input image: landscape.png
  • Image saved to: generated_image.png

安全審計

安全
v4 • 1/17/2026

All 153 static findings are FALSE POSITIVES. The skill is a legitimate image generation tool using OpenRouter API. The static scanner flagged standard API key handling, base64 image encoding, and documentation code blocks as suspicious patterns. No malicious intent or exfiltration behavior was found. The code performs exactly as documented - generating images via API calls to https://openrouter.ai/api/v1/chat/completions.

4
已掃描檔案
966
分析行數
4
發現項
4
審計總數

風險因素

🌐 網路存取 (1)
📁 檔案系統存取 (1)
🔑 環境變數 (1)
⚙️ 外部命令 (1)
審計者: claude 查看審計歷史 →

品質評分

45
架構
100
可維護性
85
內容
31
社群
100
安全
91
規範符合性

你能建構什麼

為論文建立圖表

為研究論文和簡報產生概念性插圖,採用科學視覺化風格。

製作視覺資產

為文件、網站和活動建立插圖、藝術作品和行銷視覺素材。

設計簡報圖形

為投影片、海報和教學材料產生主視覺圖片、背景和視覺輔助素材。

試試這些提示

基本生成
Generate an image of [subject] in [style] style, [additional details]
科學插圖
[Scientific concept description], scientific illustration style, clean and professional, suitable for academic presentation
圖片編輯
Edit this image: [specific instructions for changes to the input image]
模型選擇
Generate [description] using model black-forest-labs/flux.2-pro, output to [filename].png

最佳實務

  • 提示詞要具體 — 描述主題、風格、光線和構圖細節
  • 圖片編輯任務使用 gemini-3-pro 或 flux.2-pro 模型
  • 生成前先查看 OpenRouter 定價頁面以了解模型成本

避免

  • 不要用於技術圖表、流程圖或示意圖 — 請改用 scientific-schematics 技能
  • 不要在提示詞或腳本中分享 API 金鑰 — 請儲存在 .env 檔案中
  • 不要期望 FLUX.2-flex 產生逼真輸出 — 使用 Pro 模型可獲得更高品質

常見問題

我應該使用哪個模型來進行圖片編輯?
使用 google/gemini-3-pro-image-preview 或 black-forest-labs/flux.2-pro。這兩者都支援圖片編輯功能。
如何設定我的 OpenRouter API 金鑰?
建立一個 .env 檔案,內容為 OPENROUTER_API_KEY=您的金鑰,或在執行前設定環境變數。
我可以使用這個技能編輯圖片嗎?
可以,使用 --input 旗標提供現有圖片,並在提示詞中描述您的編輯指令。
支援哪些圖片格式?
輸入圖片可以是 PNG、JPEG、GIF 或 WebP。生成的圖片會儲存為 PNG 檔案。
為什麼不應該用這個來生成圖表?
此技能專為藝術圖片和照片設計。流程圖和示意圖請使用 scientific-schematics 技能。
圖片生成需要多長時間?
生成通常需要 5-30 秒,具體取決於所選模型和目前的 API 負載。

開發者詳情

檔案結構