Transform simple descriptions into detailed, optimized image generation prompts using Gemini 2.0 Flash AI.
Transforms simple descriptions into detailed, optimized image generation prompts using AI.
/plugin marketplace add dnvriend/gemini-nano-banana-tool/plugin install gemini-nano-banana-tool@gemini-nano-banana-toolTransform simple descriptions into detailed, optimized image generation prompts using Gemini 2.0 Flash AI.
gemini-nano-banana-tool promptgen DESCRIPTION [OPTIONS]
DESCRIPTION - Simple description to enhance (e.g., "wizard cat", "cyberpunk city")-t, --template TEXT - Apply specialized template (photography, character, scene, food, abstract, logo)-s, --style TEXT - Style hint (photorealistic, artistic, minimalist, etc.)-o, --output PATH - Save prompt to file instead of stdout--json - Output in JSON format-v, --verbose - Show analysis and reasoning--list-templates - Show all available templates# Generate detailed prompt from simple description
gemini-nano-banana-tool promptgen "wizard cat"
# With template for better results
gemini-nano-banana-tool promptgen "wizard cat" --template character
# Save to file for reuse
gemini-nano-banana-tool promptgen "sunset landscape" -o prompt.txt
# Single pipeline: description → optimized prompt → image
gemini-nano-banana-tool promptgen "wizard cat in magical library" | \
gemini-nano-banana-tool generate --stdin -o wizard-cat.png -a 16:9
# Photography template - technical camera details
gemini-nano-banana-tool promptgen "mountain landscape" --template photography
# Food template - plating and lighting
gemini-nano-banana-tool promptgen "pasta dish" --template food
# Scene template - foreground/midground/background
gemini-nano-banana-tool promptgen "cyberpunk city" --template scene
# Get structured output
gemini-nano-banana-tool promptgen "sunset" --json
# Output format:
# {
# "original": "sunset",
# "prompt": "A breathtaking golden hour sunset...",
# "template": null,
# "style": null,
# "tokens_used": 156
# }
photography - Professional photography with technical details (aperture, focal length, lighting)character - Character design with pose, attire, expressionscene - Scene composition with foreground/midground/background layersfood - Food photography with plating, garnish, lightingabstract - Abstract art with shapes, colors, patternslogo - Logo design with typography, symbolism, brand identityCreating effective image generation prompts requires knowledge of:
Promptgen automates this expertise using AI, transforming simple ideas into detailed, effective prompts.
--json) - Structured output for scripts and automation-v) - Shows AI analysis and reasoning processPromptgen uses Gemini 2.0 Flash for prompt generation:
Requires GEMINI_API_KEY or GOOGLE_API_KEY environment variable.
Get your API key: https://aistudio.google.com/app/apikey