/gemini:nanobanana [image description] [--aspect-ratio 16:9] [--resolution 2K] [--image ref.png]from Gemini
Generate or edit photorealistic images with perfect text rendering using Nano Banana Pro (Gemini 3 Pro Image) or Nano Banana 2.1. Automatically enhances prompts for this reasoning-based model and supports aspect ratio, resolution, and reference-image editing. Use when users ask to create or edit images, logos, infographics, posters, diagrams, wallpapers, or any still visual content. For video use gemini:omni.
Ships in Gemini. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill enables high-quality image generation using Nano Banana Pro via the Gemini API. It automatically transforms user requests into optimized prompts that exploit Nano Banana Pro's unique capabilities: perfect text rendering, complex reasoning for infographics, and photorealistic consistency.
Nano Banana Pro is a reasoning engine, not just a pattern matcher. It requires clear, natural language directives describing the scene's logic, lighting, and exact textual content. Avoid "word salad" keywords like "4k, trending on artstation."
When a user requests an image, follow these steps:
Identify which pattern applies:
Use this modular structure (plain text, no markdown):
[Subject & Action] + [Context & Environment] + [Specific Text/Data] + [Style & Medium] + [Technical Parameters]
1. Subject & Action (The "Who" and "What")
2. Specific Text & Data (The Superpower)
3. Context & Environment
4. Style & Medium
5. Technical Parameters
Pattern A: Infographic (Reasoning Heavy)
Pattern B: Typographic (Text Heavy)
Pattern C: Character Consistency
DO:
DON'T:
After creating the enhanced prompt, write it to a file with the Write tool (use your scratchpad directory, or another temporary directory), then pass that file to the script:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/nanobanana.py --prompt-file /path/to/prompt.txt
Never put the prompt text inside double quotes on the command line. The shell
expands $, backticks, and backslashes there, so a price like $5 or a code
snippet in the prompt is changed or run before the script sees it. If you
cannot write a file, pipe the prompt through a quoted heredoc instead:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/nanobanana.py - --aspect-ratio 16:9 <<'PROMPT'
ENHANCED PROMPT HERE
PROMPT
The script will:
~/.cache/claude-gemini-plugin/venv and install google-genai into it
(it never changes the system Python; this prints one line and takes a
moment)Cost: about $0.134 per Pro image at 1K or 2K, $0.24 at 4K. Nano Banana 2.1
(--fast) is $0.034 at 1K, $0.050 at 2K, $0.113 at 4K. Lite is $0.034. There
is no free tier for image models. Mention the price when a user asks for many
images or 4K.
Use these when the request implies a specific framing, quality, or an edit of an existing image:
--aspect-ratio <ratio> — choose framing instead of relying on the prompt
alone. All models: 1:1 2:3 3:2 3:4 4:3 4:5 5:4 9:16 16:9 21:9. Nano Banana
2.1 (--fast) adds the panoramic 1:4 4:1 1:8 8:1. Pick 9:16 for phone
wallpapers/stories, 16:9 or 21:9 for banners/wide shots, 1:1 for
avatars/icons, 4:5 for portrait social posts, 4:1 or 8:1 for skinny web
banners and 1:4 or 1:8 for tall side banners.--resolution <1K|2K|4K> — output resolution. Default is 1K. Use
2K/4K for posters, print, or detailed infographics with fine text.
Lite is 1K only. 512 exists only on the older gemini-3.1-flash-image.--image <path> — provide a reference/input image to edit or combine.
Repeatable up to 14 times to merge subjects, keep a character consistent, or
transfer a style. The prompt then describes the desired change. Pro keeps up
to 5 characters and 6 objects faithful, plus 3 style references; Nano Banana
2.1 keeps up to 4 characters and 10 objects. Lite is not tuned for several
references.--fast — use the faster, cheaper Nano Banana 2.1 for quick drafts and
iteration. Default (omit it) uses Nano Banana Pro for best text and fidelity.--lite — use the cheapest Lite model. 1K only. Good for icons and thumbnails.--thinking minimal|medium|high — not on Pro. Nano Banana 2.1 defaults to
medium; Lite defaults to minimal. Use high for complex scenes with many
elements or tricky spatial logic.--png — re-encode the output as PNG for tools that require .png. The
model itself emits JPEG.--output-dir <dir> — save somewhere other than the current directory.--model <id> — explicit model ID when the user names one.Examples:
# A 9:16 phone wallpaper at 2K (prompt written to prompt.txt first)
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/nanobanana.py --prompt-file prompt.txt --aspect-ratio 9:16 --resolution 2K
# Edit an existing photo; prompt.txt says what to change, e.g. "Replace the
# background with a snowy mountain range at golden hour, keep the subject unchanged"
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/nanobanana.py --prompt-file prompt.txt --image portrait.png
# Combine two reference images; prompt.txt says how, e.g. "Put the product from
# the first image onto the marble countertop from the second image, studio lighting"
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/nanobanana.py --prompt-file prompt.txt --image product.png --image kitchen.png
User Request: "Make a cool poster for a jazz night called 'Blue Moon' happening on Friday."
Enhanced Prompt: "A moody, atmospheric jazz club poster. In the center, a silhouette of a saxophone player is backlit by a large, glowing blue moon. The text 'BLUE MOON' is rendered in a stylish, Art Deco font at the top. Below the player, the text 'Friday Night Jazz' appears in a smaller, elegant serif font. The color palette is deep indigo, black, and silver. Texture of grainy cardstock."
User Request: "Show me a diagram of a plant cell."
Enhanced Prompt: "A detailed, educational cross-section illustration of a plant cell. The image clearly shows and labels the 'Nucleus', 'Chloroplast', 'Vacuole', and 'Cell Wall'. The style is clean, 3D educational render with bright, distinct colors for each organelle. Background is clean white for readability."
User Request: "A photo of a cyberpunk street."
Enhanced Prompt: "A hyper-realistic wide shot of a rainy cyberpunk street in Tokyo at night. Neon signs reflect in the puddles. One prominent holographic sign in the foreground reads 'CYBER NOODLES' in bright pink katakana and English. Steam rises from street vents. Cinematic lighting, high contrast."
Set the GEMINI_API_KEY environment variable:
export GEMINI_API_KEY="your-api-key-here"
Get a key at https://aistudio.google.com/apikey
Python 3.10 or later is required. On first run the script creates a
private virtual environment at ~/.cache/claude-gemini-plugin/venv (or
under $CLAUDE_PLUGIN_DATA when that variable is set) and installs
google-genai there (pillow too, only for --png). It never installs
into the system or Homebrew Python. To rebuild the environment, delete
that directory and run the script again.
The script handles common errors:
All errors include helpful messages for troubleshooting.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
gemini@0-to-1-labs is listed by 0-to-1-labs/claude-marketplace — review the source before installing
npx claudepluginhub 0-to-1-labs/claude-marketplace --plugin gemini5 skills in this plugin
/lyriaCompose a full song with vocals and lyrics, or an instrumental track, from a text description using Lyria 3.5. Outputs MP3 or WAV and prints the lyrics. Use when users ask for music, a song, a jingle, a soundtrack, a beat, background music, or a theme tune./omniGenerate, edit, or extend short videos (3 to 15 seconds, with sound) using Gemini Omni 1.2 Flash. Supports text-to-video, image-to-video, first-and-last-frame animation, up to 6 subject reference images, conversational edits, and extending a clip to 30 seconds. Use when users ask for a video, animation, clip, motion, b-roll, or to animate an image. For still images use gemini:nanobanana./ttsConvert text to natural speech audio (WAV) with Gemini TTS, using one of 30 studio voices, the extended voice library, a remixed custom voice, or a two-speaker dialogue, with style directions like "calm" or "excited". Use when users ask to read text aloud, make a voiceover, narration, audiobook clip, podcast intro, or spoken dialogue. Free tier available./understandAnalyze, summarize, transcribe, or answer questions about video, audio, images, PDFs, and public YouTube links using Gemini. Use when a user points at a media file or YouTube URL that Claude cannot read directly, asks for a transcript, meeting notes, a video summary, or what a recording or document says.