github avatar

Nano Banana Pro Openrouter

A straightforward wrapper around OpenRouter's Gemini 3 Pro Image model that handles the API calls and file management for you. Takes text prompts and optional input images, outputs PNG files with proper path handling and multi-image support. The resolution options (1K/2K/4K) and system prompt customization via assets/SYSTEM_TEMPLATE give you decent control without complexity. Error handling covers the usual suspects like missing API keys and rate limits. Good for when you need programmatic image generation in Claude workflows without manually wrestling with OpenRouter's API or figuring out base64 encoding.

skills.sh installs
10K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill nano-banana-pro-openrouter --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Git & Pull Requests, AI & Agent Building

More from github/awesome-copilot

All 318
1github avatarmarkdown-to-htmlgithub/awesome-copilotConvert Markdown files to HTML similar to `marked.js`, `pandoc`, `gomarkdown/markdown`, or similar tools; or writing custom script to convert markdown to html a9.9Kskills.sh installs
2github avatarmeeting-minutesgithub/awesome-copilotGenerate concise, actionable meeting minutes for internal meetings. Includes metadata, attendees, agenda, decisions, action items (owner + due date), and follow9.9Kskills.sh installs
3github avatardataverse-python-production-codegithub/awesome-copilotGenerate production-ready Python code using Dataverse SDK with error handling, optimization, and best practices9.8Kskills.sh installs
4github avatarboost-promptgithub/awesome-copilotInteractive prompt refinement workflow: interrogates scope, deliverables, constraints; copies final markdown to clipboard; never writes code. Requires the Joyri9.8Kskills.sh installs
5github avatarkotlin-springbootgithub/awesome-copilotGet best practices for developing applications with Spring Boot and Kotlin.9.8Kskills.sh installs
6github avatarimage-manipulation-image-magickgithub/awesome-copilotProcess and manipulate images using ImageMagick. Supports resizing, format conversion, batch processing, and retrieving image metadata. Use when working with im9.8Kskills.sh installs