inference-sh avatar

Nano Banana 2

This wraps Google's Gemini 3.1 Flash Image Preview model through the inference.sh CLI, giving you text-to-image generation, image editing with up to 14 input images, and Google Search grounding for real-time info. It's the sequel to the original nano-banana skill, updated for the newer Gemini model. You get options for aspect ratios, resolution up to 4K, and multi-image outputs. The grounding feature is interesting if you want current weather or news data baked into generated images. Requires the belt CLI and an inference.sh account, but once set up it's just bash commands or Python SDK calls. Good pick if you're already in the inference.sh ecosystem and want quick access to Google's image models without dealing with their API directly.

skills.sh installs
1.1K
GitHub stars
804
last updated
Aug 21, 2026

Install

$ npx -y skills add inference-sh/skills --skill nano-banana-2 --agent claude-code

Installs into .claude/skills of the current project.

Files

Install the belt CLI skill: npx skills add belt-sh/cli

Nano Banana 2 - Gemini 3.1 Flash Image Preview

Generate images with Google Gemini 3.1 Flash Image Preview via inference.sh CLI.

Quick Start

Requires inference.sh CLI (belt). Install instructions

belt login

belt app run google/gemini-3-1-flash-image --input '{"prompt": "a banana in space, photorealistic"}'

Examples

Basic Text-to-Image

belt app run google/gemini-3-1-flash-image --input '{
  "prompt": "A futuristic cityscape at sunset with flying cars"
}'

Multiple Images

belt app run google/gemini-3-1-flash-image --input '{
  "prompt": "Minimalist logo design for a coffee shop",
  "num_images": 4
}'

Custom Aspect Ratio

belt app run google/gemini-3-1-flash-image --input '{
  "prompt": "Panoramic mountain landscape with northern lights",
  "aspect_ratio": "16:9"
}'

Image Editing (with input images)

Sponsors

Details

Repository
github.com/inference-sh/skills
Categories
CLI & Terminal, Generative Media
First seen
Jun 3, 2026

More from inference-sh/skills

All 80
1pixverseai avatarpixverse-ai-image-and-video-generatorpixverseai/skillsPixVerse CLI — generate AI videos, images, audio, and MiniApp projects from the command line. Supports PixVerse V6, MiniMax H3, Veo, Sora, Grok, Seedance, Kling1.1Kskills.sh installs
2jezweb avatargws-installjezweb/claude-skillsQuick install of the Google Workspace CLI (gws) on an additional machine using existing OAuth credentials. Requires client_secret.json from a previous gws-setup1.1Kskills.sh installs
3samuraigpt avatarmuapi-media-generationsamuraigpt/generative-media-skillsGenerate AI images, videos, music, and audio from the terminal via muapi.ai — supports 100+ models including Flux, Midjourney v7, Kling 3.0, Veo3, and Suno V51.1Kskills.sh installs
4inference-sh avatarllm-modelsinference-sh/skillsAccess Claude, Gemini, Kimi, GLM and 100+ LLMs via inference.sh CLI using OpenRouter. Models: Claude Opus 4.5, Claude Sonnet 4.5, Claude Haiku 4.5, Gemini 3 Pro1.1Kskills.sh installs
5mvanhorn avatarpp-hackernewsmvanhorn/printing-press-libraryHacker News from your terminal — with a local SQLite store, snapshot history, and agent-native output no other HN tool has. Trigger phrases: `check hacker news`1Kskills.sh installs
6subsy avatarralph-tui-create-beads-rustsubsy/ralph-tuiConvert PRDs to beads for ralph-tui execution using beads-rust (br CLI). Creates an epic with child beads for each user story. Use when you have a PRD and want 1Kskills.sh installs