nano-banana-pro-openrouter by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill nano-banana-pro-openrouter使用 OpenRouter 的 google/gemini-3-pro-image-preview 模型生成或编辑图像。支持仅提示生成、单图像编辑和多图像合成。
uv run {baseDir}/scripts/generate_image.py \
--prompt "A cinematic sunset over snow-capped mountains" \
--filename sunset.png
uv run {baseDir}/scripts/generate_image.py \
--prompt "Replace the sky with a dramatic aurora" \
--input-image input.jpg \
--filename aurora.png
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 参数,可选 、 或 。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
1K2K4K1K。该技能从 assets/SYSTEM_TEMPLATE 读取一个可选的系统提示词。这允许您在不修改代码的情况下自定义图像生成行为。
--input-image 参数,最多接受 3 张输入图像。--filename 接受相对路径(保存到当前目录)或绝对路径。-1、-2 等后缀。MEDIA: <路径>。不要将图像读回响应中。如果脚本以非零状态退出,请对照以下常见问题检查 stderr:
| 症状 | 解决方案 |
|---|---|
OPENROUTER_API_KEY is not set | 请用户设置该环境变量。PowerShell: $env:OPENROUTER_API_KEY = "sk-or-..." / bash: export OPENROUTER_API_KEY="sk-or-..." |
uv: command not found 或无法识别 | macOS/Linux: curl -LsSf https://astral.sh/uv/install.sh |
AuthenticationError / HTTP 401 | API 密钥无效或没有额度。请在 https://openrouter.ai/settings/keys 验证。 |
对于暂时性错误(HTTP 429、网络超时),请在 30 秒后重试一次。同一错误重试不要超过两次——应将问题呈现给用户。
周安装量
7.8K
代码仓库
GitHub 星标数
26.7K
首次出现
2026 年 2 月 10 日
安全审计
安装于
codex7.7K
gemini-cli7.7K
opencode7.6K
github-copilot7.6K
cursor7.6K
kimi-cli7.6K
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.
uv run {baseDir}/scripts/generate_image.py \
--prompt "A cinematic sunset over snow-capped mountains" \
--filename sunset.png
uv run {baseDir}/scripts/generate_image.py \
--prompt "Replace the sky with a dramatic aurora" \
--input-image input.jpg \
--filename aurora.png
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 with 1K, 2K, or 4K.1K if not specified.The skill reads an optional system prompt from assets/SYSTEM_TEMPLATE. This allows you to customize the image generation behavior without modifying code.
--input-image.--filename accepts relative paths (saves to current directory) or absolute paths.-1, -2, etc. to the filename.MEDIA: <path> for each saved image. Do not read images back into the response.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: curl -LsSf https://astral.sh/uv/install.sh |
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.
Weekly Installs
7.8K
Repository
GitHub Stars
26.7K
First Seen
Feb 10, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykFail
Installed on
codex7.7K
gemini-cli7.7K
opencode7.6K
github-copilot7.6K
cursor7.6K
kimi-cli7.6K
97,600 周安装