nano-banana-pro

Generate or edit PNG images from natural-language prompts via the Gemini 3 Pro Image API.

Updated Mar 21, 2026
One-click install
npx skills add https://github.com/Polealpha/XINNIAN_PI --skill nano-banana-pro-polealpha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nano-banana-pro
Source: https://github.com/Polealpha/XINNIAN_PI/tree/main/app%20windows/vendor/openclaw-runtime/skills/nano-banana-pro
Command: npx skills add https://github.com/Polealpha/XINNIAN_PI --skill nano-banana-pro-polealpha

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-genai, pillow, and includes scripts (resource) components.

What problem does it solve?

This Skill removes the friction of creating or revising images by letting you generate or edit PNG outputs from natural-language instructions using Gemini’s image model.

Core Features & Use Cases

  • Image Generation & Editing: Produce a new image from a prompt or modify an existing image using editing instructions.
  • Multi-Image Composition: Combine multiple input images (up to 14) into a single scene with one consolidated prompt.
  • OpenClaw Media Auto-Attach: Prints a MEDIA: line with the saved absolute path so supported chat providers can attach the result.

Use case example: Create a product banner by combining multiple photos (logo + background + texture) and describing the desired layout and style in one prompt.

Quick Start

Generate an image by setting GEMINI_API_KEY in your environment and running the bundled script to create a PNG: uv run {baseDir}/scripts/generate_image.py --prompt "your image description" --filename "output.png" --resolution 1K

Frequently Asked Questions about nano-banana-pro

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate PNG images from a natural-language prompt using Gemini?

To generate PNG images from a natural-language prompt using Gemini, you run the bundled script with your text description and desired filename. You can specify an output resolution of 1K, 2K, or 4K for the generated PNG file.

Can I combine multiple input images into a single scene with one prompt?

Yes, you can combine multiple input images into a single scene with one consolidated prompt. This multi-image composition feature supports up to 14 input images, allowing you to merge elements like logos and backgrounds into one cohesive output.

Do I need an API key to edit images with the Gemini model?

Yes, you need a GEMINI_API_KEY to edit images with the Gemini model. This key must be configured via your environment or the OpenClaw skill configuration before running the image generation or editing scripts.

What is the best way to automate image editing workflows for multiple assets?

The best way to automate image editing workflows is to use the bundled script to process PNG modifications. The script outputs a saved absolute path with a MEDIA: marker, enabling supported chat providers to automatically attach the edited image result downstream.

What are the limitations when using multi-image composition with Gemini?

A key limitation of multi-image composition with Gemini is that it supports a maximum of 14 input images per prompt. Additionally, the workflow requires a GEMINI_API_KEY and outputs exclusively PNG files at 1K, 2K, or 4K resolutions.