nano-banana-2
Generate images with Google Gemini 3.1 Flash Image Preview (Nano Banana 2) via inference.sh CLI. Capabilities: text-to-image, image editing, multi-image input (up to 14 images), Google Search grounding. Triggers: nano banana 2, nanobanana 2, gemini 3.1 flash image, gemini 3 1 flash image preview, google image generation
Security Assessment
About nano-banana-2
The nano-banana-2 skill leverages Google Gemini 3.1 Flash Image Preview to generate and edit images through the inference.sh CLI. It provides a streamlined interface for creating visuals from textual prompts or modifying existing images, making it ideal for designers, content creators, and developers who need quick, high-quality imagery without manual graphic design. By integrating with the command-line workflow, users can automate image generation tasks efficiently while maintaining control over output parameters and quality.
Key features include text-to-image generation, image editing with up to 14 input images, customizable aspect ratios, high-resolution outputs up to 4K, and Google Search grounding for real-time contextual content. The skill supports various image formats such as JPEG, PNG, and WebP, and offers advanced prompt customization, allowing users to specify styles, lighting, composition, and detailed visual elements. Additionally, it integrates with Python SDKs, enabling programmatic access and live streaming of generation progress.
Nano-banana-2 is particularly useful for digital artists, marketing teams, UX/UI designers, and developers who require rapid prototyping of visuals or automated image creation for web and mobile applications. It can be used to create promotional graphics, concept art, UI mockups, social media content, and context-aware illustrations. Its combination of versatility, high-quality output, and automation capabilities makes it suitable for both individual creatives and teams in professional settings.
FAQ
How do I generate an image using nano-banana-2?
You can generate an image by running the inference.sh CLI command with your prompt, for example: `infsh app run google/gemini-3-1-flash-image-preview --input '{"prompt": "A banana in space, photorealistic"}'`.
Can I edit existing images?
Yes, you can provide up to 14 input images in JPEG, PNG, or WebP format for editing along with your prompt.
What resolutions and aspect ratios are supported?
Output resolutions include 1K, 2K, and 4K. Supported aspect ratios are '1:1', '16:9', '9:16', '4:3', '3:4', and 'auto'.
Do I need any special tools to use this skill?
Yes, nano-banana-2 requires the inference.sh CLI (`infsh`) installed on your system. Instructions for installation are available in the documentation.
Can the skill provide real-time information for prompts?
Yes, enabling the `enable_google_search` parameter allows the model to ground images in current events or contextual data like weather and news.
Install nano-banana-2
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
inferen-sh/skills