About nano-banana-2
A skill for generating images from text and editing or composing them with reference images through the Pilio CLI. It configures aspect ratio and resolution, then supports waiting for asynchronous tasks.
Key features
- 01Text-to-image generation
- 02Edit and compose with reference images
- 03Set aspect ratio and resolution
- 04Wait for task completion
Use cases
- 01Generate an image from a prompt
- 02Edit an image using one or more references
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ pilioai/ skills --skill nano-banana-2After installing, type/nano-banana-2in Claude Code to confirm it loaded.
Details
From the project READMENano 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"
Common options:
--input: local reference image path. Repeat for multiple references.--aspect-ratio:1:1,2:3,3:2,3:4,4:3,4:5,5:4,9:16,16:9,21:9,1:4,4:1,1:8, or8:1.--resolution:0.5K,1K,2K, or4K.
The command returns a task payload. If the task is still pending or processing, wait for it:
pnpm dlx @pilio/cli task wait <task_id>