跳到正文
Skillpedia
连接器(MCP)40k · #7306

nano-banana-pro-openrouter

它能做什么

这个工具使用人工智能来创建或编辑图片。你可以让它根据文字描述生成新图片,修改已有图片,或把多张图片合成为一张。

适用场景

  • ✓根据一个想法从零开始创建图片。
  • ✓修改照片中的特定细节,比如替换天空。
  • ✓把不同图片中的元素组合成一张新图片。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/nano-banana-pro-openrouter/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/nano-banana-pro-openrouter/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“生成一张宇航员猫漂浮在太空中、背景是地球的图片。”

每周 5 个新技能,1 分钟读完。

工作原理

你描述想要的画面即可。如果要编辑,就提供原始图片,并说明需要修改的地方。AI 会利用这些信息来生成或修改图片。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Nano Banana Pro OpenRouter

Overview

Generate or edit images with OpenRouter using the google/gemini-3-pro-image-preview model. Support prompt-only generation, single-image edits, and multi-image composition.

Prompt-only generation

uv run {baseDir}/scripts/generate_image.py \
  --prompt "A cinematic sunset over snow-capped mountains" \
  --filename sunset.png

Edit a single image

uv run {baseDir}/scripts/generate_image.py \
  --prompt "Replace the sky with a dramatic aurora" \
  --input-image input.jpg \
  --filename aurora.png

Compose multiple images

uv run {baseDir}/scripts/generate_image.py \
  --prompt "Combine the subjects into a single studio portrait" \
  --input-image face1.jpg \
  --input-image face2.jpg \
  --filename composite.png

Resolution

  • Use --resolution with 1K, 2K, or 4K.
  • Default is 1K if not specified.

System prompt customization

The skill reads an optional system prompt from assets/SYSTEM_TEMPLATE. This allows you to customize the image generation behavior without modifying code.

Behavior and constraints

  • Accept up to 3 input images via repeated --input-image.
  • --filename accepts relative paths (saves to current directory) or absolute paths.
  • If multiple images are returned, append -1, -2, etc. to the filename.
  • Print MEDIA: <path> for each saved image. Do not read images back into the response.

Troubleshooting

If the script exits non-zero, check stderr against these common blockers:

Symptom Resolution
OPENROUTER_API_KEY is not set Ask the user to set it. PowerShell: $env:OPENROUTER_API_KEY = "sk-or-..." / bash: export OPENROUTER_API_KEY="sk-or-..."
uv: command not found or not recognized macOS/Linux: <code>curl -LsSf https://astral.sh/uv/install.sh | sh</code>. Windows: <code>powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"</code>. Then restart the terminal.
AuthenticationError / HTTP 401 Key is invalid or has no credits. Verify at https://openrouter.ai/settings/keys.

For transient errors (HTTP 429, network timeouts), retry once after 30 seconds. Do not retry the same error more than twice — surface the issue to the user instead.

常见问题

我可以选择图片质量吗?

可以,图片分辨率可以在 1K、2K 或 4K 之间选择。

使用它需要特殊的密钥吗?

需要,你需要一个 OpenRouter API 密钥。如果你还没有,工具会告诉你如何获取。

如果图片没有正确生成怎么办?

如果出现常见错误,比如没有设置 API 密钥,工具会告诉你应该怎么做。对于其他错误,你可能需要重试,或检查网络连接。

详情

作者的原始描述

Generate or edit images via OpenRouter with the Gemini 3 Pro Image model. Use for prompt-only image generation, image edits, and multi-image compositing; supports 1K/2K/4K output.

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7306
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能