Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
github avatar

Nano Banana Pro Openrouter

  • 9.8k installs
  • 37.1k repo stars
  • Updated July 28, 2026
  • github/awesome-copilot

How do I generate, edit, or composite images programmatically using a managed API and advanced generative model?

About

Nano Banana Pro OpenRouter wraps the google/gemini-3-pro-image-preview model for prompt-driven image generation, single-image editing, and multi-image composition. Developers invoke it via CLI commands using uv to generate cinematic scenes, edit existing images with text prompts, or combine up to 3 source images into composites. The skill reads optional system prompts from assets/SYSTEM_TEMPLATE for customization and outputs images with MEDIA: path logging; supports 1K/2K/4K resolutions and persists multiple results with auto-indexed filenames.

  • Prompt-only image generation and single-image editing with text instructions
  • Multi-image composition: combine up to 3 input images into one output
  • Selectable resolution: 1K, 2K, or 4K output sizes
  • System prompt customization via assets/SYSTEM_TEMPLATE without code changes
  • CLI-driven via uv with OPENROUTER_API_KEY authentication and MEDIA: logging

Nano Banana Pro Openrouter by the numbers

  • 9,790 all-time installs (skills.sh)
  • +24 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #84 of 1,340 Generative Media skills by installs in the Skillselion catalog
  • Security screen: CRITICAL risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

nano-banana-pro-openrouter capabilities & compatibility

Capabilities
prompt driven image generation · single image editing via text prompts · multi image composition · resolution selection (1k/2k/4k) · system prompt customization · batch filename indexing
Use cases
image generation · ui design · copywriting
Platforms
macOS · Windows · Linux · WSL
Runs
Remote server
Pricing
Bring your own API key
From the docs

What nano-banana-pro-openrouter says it does

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.
README
The skill reads an optional system prompt from `assets/SYSTEM_TEMPLATE`. This allows you to customize the image generation behavior without modifying code.
README - System prompt customization
npx skills add https://github.com/github/awesome-copilot --skill nano-banana-pro-openrouter

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs9.8k
repo stars37.1k
Security audit1 / 3 scanners passed
Last updatedJuly 28, 2026
Repositorygithub/awesome-copilot

What it does

Generate, edit, and composite images via OpenRouter's Gemini 3 Pro model at 1K/2K/4K resolution.

Who is it for?

Rapid image generation, editing, and composition in development scripts or agent workflows; no GPU setup required.

Skip if: Real-time interactive image editing GUIs; batch processing at massive scale; models requiring specialized hardware.

When should I use this skill?

Need to generate marketing visuals, edit reference images, or composite scene elements as part of a build or agent task.

What you get

Images are generated or edited on-demand via OpenRouter CLI, saved to disk with metadata logging, and support multi-image workflows.

  • Generated or edited PNG image(s) saved to specified --filename path
  • MEDIA: <path> log for each saved image

By the numbers

  • Supports up to 3 input images per composition
  • 3 resolution tiers: 1K, 2K, 4K

Files

SKILL.mdMarkdownGitHub ↗

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:

SymptomResolution
OPENROUTER_API_KEY is not setAsk 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 recognizedmacOS/Linux: <code>curl -LsSf https://astral.sh/uv/install.sh &#124; sh</code>. Windows: <code>powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 &#124; iex"</code>. Then restart the terminal.
AuthenticationError / HTTP 401Key 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.

Related skills

How it compares

Use nano-banana-pro-openrouter when images must be produced through OpenRouter's Gemini endpoint inside agent scripts, not for general HTML/CSS mockups.

FAQ

What image models does this skill use?

It uses google/gemini-3-pro-image-preview via OpenRouter. Supports prompt-only generation, single-image edits, and multi-image composition.

How many input images can I combine?

Up to 3 input images via repeated --input-image flags. Output appends -1, -2, etc. if multiple results are returned.

What resolution options are available?

1K, 2K, or 4K via --resolution flag. Default is 1K if not specified.

Is Nano Banana Pro Openrouter safe to install?

skills.sh reports 1 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.