From fabrik
Guides using nanobanana CLI to generate and edit images with Google's generative AI models. Covers installation via Go, prompts, v2/pro options, and editing existing images.
How this skill is triggered — by the user, by Claude, or both
Slash command
/fabrik:nanobananaThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This is a guide for generating and editing images using the nanobanana CLI tool.
This is a guide for generating and editing images using the nanobanana CLI tool.
Nanobanana is a command-line interface for the Nano Banana image generation API, which uses Google's generative AI models.
If the nanobanana CLI is not already installed, install it using:
go install maragu.dev/nanobanana@latest
The GOOGLE_API_KEY environment variable must be set, or a .env file with the key must be present in the working directory.
To generate a single image:
nanobanana generate output.png "a beautiful sunset over mountains"
The output can be either a .png or .jpg file.
Always use the -v2 flag unless the user specifically requests the pro model. Version 2 offers improved quality and aspect ratio support:
nanobanana generate -v2 output.png "a beautiful sunset over mountains"
To use the highest-quality pro model (only when explicitly requested):
nanobanana generate -pro output.png "a beautiful sunset over mountains"
To edit or modify an existing image using a text prompt:
nanobanana generate -i input.png output.png "make the sky purple and add stars"
This is useful for making specific changes to existing images based on natural language instructions.
Generate a logo:
nanobanana generate logo.png "minimalist tech company logo with geometric shapes in blue and white"
Create concept art:
nanobanana generate concept.png "futuristic city skyline at night with neon lights and flying vehicles, cyberpunk style"
Edit an existing photo:
nanobanana generate -i photo.png enhanced.png "enhance the colors and make it look like golden hour"
npx claudepluginhub maragudk/fabrik --plugin fabrikGenerates or edits images using Google Gemini API via nanobanana Python script. Supports prompts, aspect ratios, resolutions up to 4K, models like gemini-3.1-flash-image-preview, and image inputs for editing.
Generates or edits images using Google Gemini API via nanobanana.py Python script. Supports prompts, aspect ratios like 9:16, models such as gemini-3.1-flash, and resolutions up to 4K.
Generates and edits images via Google's Gemini 3.1 Flash (gemini-3.1-flash-image-preview). Supports 512/1K/2K/4K resolutions. Use for thumbnails, cover art, or photo edits.