nano-banana-imagegen

Generate and edit images using Google Gemini image models via the nano-banana CLI.

Updated Jul 16, 2026
One-click install
npx skills add https://github.com/The-Focus-AI/walking-thoughts --skill nano-banana-imagegen-the-focus-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nano-banana-imagegen
Source: https://github.com/The-Focus-AI/walking-thoughts/tree/main/.agents/skills/nano-banana-imagegen
Command: npx skills add https://github.com/The-Focus-AI/walking-thoughts --skill nano-banana-imagegen-the-focus-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @the-focus-ai/nano-banana, and includes references (resource) components.

What problem does it solve? Creating custom images for blogs, apps, and marketing materials typically requires design skills or stock photo subscriptions. This Skill lets you generate and edit images directly from text prompts using Google's Gemini image models, covering everything from hero images to logos without leaving your workflow. ## Core Features & Use Cases - Text-to-Image Generation: Create photorealistic photos, illustrations, icons, and logos from detailed natural-language prompts. - Image Editing: Modify existing images with instructions like background replacement, style transfer, object addition or removal, and color grading via the --file option. - Prompt Engineering Guidance: Includes a comprehensive prompting guide and categorized example prompts for headers, icons, illustrations, and product photography. - Use Case: You need a 16:9 hero image for a technology blog post. Describe the subject, style, color palette, and exclusions, then generate it with one CLI command and iteratively refine the result. ## Quick Start Ask the AI to generate a wide 16:9 minimalist header image for a technology blog with teal and orange geometric shapes on a white background.

Frequently Asked Questions about nano-banana-imagegen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an image with Google Gemini from the command line?

Run npx @the-focus-ai/nano-banana followed by your prompt in quotes, such as "a serene mountain landscape at sunset". The GEMINI_API_KEY environment variable must be set, and output defaults to output/generated-<timestamp>.png.

How do I edit an existing image with AI using a text prompt?

Pass the input image with the --file flag and describe the change, for example "add a hot air balloon to the sky" --file photo.jpg. Edits support background replacement, object addition or removal, style transfer, and color adjustments.

What makes a good prompt for Gemini image generation?

Strong prompts combine a specific subject, action, setting, style reference, lighting, and composition, plus explicit exclusions like "no text, no dark backgrounds". Layered prompts of 30-60 words with concrete details outperform vague short prompts.

Which Gemini model should I use for image generation?

Use the --model flag to select a specific model or --flash for gemini-2.5-flash-image, which is faster and suited to simpler images. Run --list-models to see all available models.

Why does Gemini image generation return no image in the response?

The prompt may have triggered safety filters or the selected model may not support image generation. Rephrase with less ambiguous terms and verify the model supports image output.

Can I create consistent branded images across multiple generations?

Yes. Define a style guide in your prompt with fixed color hex codes and style descriptors, reuse the same descriptors across prompts, and reference earlier outputs with --file when editing subsequent images.