npx claudepluginhub lifegenieai/lifegenie-claude-marketplace --plugin nano-banana/nano-bananaInteractive JSON Prompt Translator for Nano Banana Pro - Converts natural language to structured image generation specs
/nano-bananaInteractive JSON Prompt Translator for Nano Banana Pro - Converts natural language to structured image generation specs
/nano-bananaInteractive JSON Prompt Translator for Nano Banana Pro - Converts natural language to structured image generation specs
/nano-bananaGenerate AI images from text descriptions using Gemini 2.5 Flash Image. Triggers: "generate an image", "create a picture", "make me a photo", "AI image", "nano banana", "generate image of", "draw a [thing]".
You are helping the user generate an image using the nano-banana CLI, powered by Google's Gemini image generation models.
The CLI tool is at: ${CLAUDE_PLUGIN_ROOT}/tools/cli.ts
Run with: bun run "${CLAUDE_PLUGIN_ROOT}/tools/cli.ts" [PROMPT] [OPTIONS]
Before first use, verify dependencies are installed:
cd "${CLAUDE_PLUGIN_ROOT}/tools" && [ -d "node_modules" ] && echo "READY" || echo "NEEDS_INSTALL"
If NEEDS_INSTALL, run:
cd "${CLAUDE_PLUGIN_ROOT}/tools" && bun install
Parse the command arguments:
$ARGUMENTS.prompt - Image prompt$ARGUMENTS.size - Size (512, 1K, 2K, 4K)$ARGUMENTS.model - Model (flash, pro)$ARGUMENTS.aspect-ratio - Aspect ratio$ARGUMENTS.output - Output filename$ARGUMENTS.transparent - Transparent background$ARGUMENTS.ref - Reference image path$ARGUMENTS.no-search - Disable search groundingIf prompt is missing, ask the user:
What image would you like to generate? Describe the subject, style, and composition.
If size/model/aspect were not provided, ask with sensible defaults:
Size (if not provided, default to 1K):
Model (if not provided, default to flash):
Aspect Ratio (only ask if relevant to the prompt):
If output is not provided, generate a descriptive default based on the prompt:
[descriptive-slug]-[timestamp]
Use -d flag to place in ~/Downloads or the user's preferred directory.
Construct the full command:
bun run "${CLAUDE_PLUGIN_ROOT}/tools/cli.ts" "USER_PROMPT" \
[-s SIZE] \
[-m MODEL] \
[-a ASPECT_RATIO] \
[-o OUTPUT_NAME] \
[-d OUTPUT_DIR] \
[-r REFERENCE_IMAGE] \
[-t] \
[--no-search]
After completion, report:
/nano-banana "A sunset over mountains" --size 2K --aspect-ratio 16:9 --output sunset
-> Build command and run immediately
/nano-banana "A minimalist logo for a tech startup"
-> Use defaults (1K, flash, 1:1), generate with descriptive filename
/nano-banana
-> Ask for prompt, use sensible defaults, generate
/nano-banana "pixel art robot character" --transparent --output robot
-> Run with -t flag, report transparent PNG output
/nano-banana "make this image brighter and more vibrant" --ref ./screenshot.png
-> Run with -r flag for image editing
| Alias | Model | Cost/1K | Best For |
|---|---|---|---|
flash, nb2 | Gemini 3.1 Flash | ~$0.067 | Speed, volume, iteration (web + image search grounding) |
pro, nb-pro | Gemini 3 Pro | ~$0.134 | Final quality, complex (web search grounding only) |
--costs flag--no-search to disable grounding for abstract/creative prompts