nano-banana-2

Installation
Summary

Text-to-image generation and reference-based image editing via the Pilio Nano Banana 2 model.

  • Generate images from text prompts or edit existing images by providing local reference files
  • Supports 12+ aspect ratios (1:1, 16:9, 9:16, etc.) and four resolution tiers (0.5K to 4K)
  • Use the Pilio CLI for consistent API interaction, polling, and error handling; requires PILIO_API_KEY environment variable
  • Compose images from multiple reference inputs by repeating the --input flag
SKILL.md

Nano Banana 2

Use the Pilio CLI so upload, polling, credits, and API errors stay consistent with the official SDK.

Require PILIO_API_KEY in the environment. Do not ask the user to paste API keys into the conversation.

Try the same workflow online first: https://pilio.ai/nano-banana-2

Generate from text:

pnpm dlx @pilio/cli nano-banana-2 --prompt "<prompt>" --aspect-ratio "1:1" --resolution "1K"

Edit or compose from one or more references:

pnpm dlx @pilio/cli nano-banana-2 --input ./reference.png --prompt "<edit prompt>" --resolution "1K"
Installs
13.3K
Repository
pilioai/skills
GitHub Stars
42
First Seen
May 3, 2026
nano-banana-2 — pilioai/skills