nano-banana-gen

Generate images from prompts via Gemini Nano Banana models and save local artifacts.

3|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/eaglhuang/cocos_new --skill nano-banana-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nano-banana-gen
Source: https://github.com/eaglhuang/cocos_new/tree/main/.github/skills/nano-banana-gen
Command: npx skills add https://github.com/eaglhuang/cocos_new --skill nano-banana-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dotenv, @google/generative-ai, and includes scripts (resource) components.

What problem does it solve?

Nano Banana image generation requires wrapping Gemini models behind a stable CLI wrapper to streamline asset generation and exploration workflows.

Core Features & Use Cases

  • Unified Gemini image generation: Call Nano Banana family models (gemini-2.5/3.1/3-pro) via a single wrapper.
  • Local artifact download: Save generated images to local paths for asset pipelines.
  • Safe key handling: Reads API key from a .env in tools_mcp; keeps keys out of prompts.

Quick Start

Provide a prompt and an output path to generate an image using the nano-banana-gen skill.

Frequently Asked Questions about nano-banana-gen

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

FAQPage Schema
How do I generate UI assets using Gemini image models via CLI?

To generate UI assets using Gemini image models, you can use a CLI wrapper that calls the Nano Banana family models. You provide a prompt and output path, and the tool saves the generated concept art or UI drafts locally while returning image metadata.

Can I use prompt files instead of inline text for AI art generation?

Yes, you can use prompt files for AI art generation by passing the --prompt-file argument to the CLI. This allows you to load complex prompts from a file rather than typing them inline via the --prompt argument.

What is the best way to securely handle API keys for Gemini image generation?

The best way to securely handle API keys for Gemini image generation is to store your Google AI key in a .env file located in tools_mcp/nano-banana-mcp/. This ensures keys are kept out of your prompts and command line history.

Does the Nano Banana CLI support different model versions for concept exploration?

Yes, the Nano Banana CLI supports different model versions for concept exploration. You can choose between nano-banana, nano-banana-2, and nano-banana-pro models to generate assets based on your specific design requirements.

How do I save generated images locally for asset pipelines?

You save generated images locally for asset pipelines by specifying an output path when running the generation command. The tool downloads the resulting image from the Gemini model to that local path and returns its metadata.