Chuyển đến nội dung
Skillpedia
Trình kết nối (MCP)40k · #7306

nano-banana-pro-openrouter

Skill này làm gì

Công cụ này tạo hoặc chỉnh sửa hình ảnh bằng trí tuệ nhân tạo. Bạn có thể yêu cầu tạo ảnh mới từ mô tả, sửa một ảnh có sẵn, hoặc kết hợp nhiều ảnh thành một.

Khi nào nên dùng

  • ✓Khi bạn muốn tạo một hình ảnh từ đầu dựa trên một ý tưởng.
  • ✓Khi bạn muốn thay đổi chi tiết trong một bức ảnh, như thay bầu trời.
  • ✓Khi bạn muốn kết hợp các yếu tố từ nhiều ảnh khác nhau thành một ảnh mới.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/nano-banana-pro-openrouter/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo ảnh một chú mèo phi hành gia đang bay trong không gian, với Trái Đất ở phía sau.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn mô tả những gì muốn thấy trong ảnh. Nếu muốn chỉnh sửa, bạn cung cấp ảnh gốc và nói rõ cần thay đổi gì. AI dùng thông tin này để tạo hoặc chỉnh sửa ảnh.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

Tôi có thể chọn chất lượng ảnh không?

Có, bạn có thể chọn độ phân giải 1K, 2K hoặc 4K.

Tôi có cần khóa đặc biệt để dùng không?

Có, bạn cần một khóa API của OpenRouter. Nếu chưa có, công cụ sẽ hướng dẫn bạn cách lấy.

Điều gì xảy ra nếu ảnh không được tạo đúng?

Nếu gặp lỗi thường gặp, như chưa thiết lập khóa API, công cụ sẽ cho bạn biết cần làm gì. Với các lỗi khác, bạn có thể cần thử lại hoặc kiểm tra kết nối.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7306
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự