Skip to content
Back to skills

1178 Name Skill 54638827

ASecurity

Guide for generating and editing images using generative AI with the nanobanana CLI

  • 9 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 1, 2026
designgobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 1, 2026

npx -y skills add tools-only/X-Skills --skill 1178-name-skill_54638827 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1178 Name Skill 54638827?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 1178 Name Skill 54638827
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-1178-name-skill-54638827/badge)](https://www.skillsdirectory.com/skills/tools-only-1178-name-skill-54638827)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nanobanana
description: Guide for generating and editing images using generative AI with the nanobanana CLI
license: MIT
---

# Nanobanana

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.

## Installation

If the nanobanana CLI is not already installed, install it using:

```bash
go install maragu.dev/nanobanana@latest
```

## Prerequisites

The `GOOGLE_API_KEY` environment variable must be set, or a `.env` file with the key must be present in the working directory.

## Generating images

To generate a single image:

```bash
nanobanana generate output.png "a beautiful sunset over mountains"
```

The output can be either a `.png` or `.jpg` file.

## Using the pro model

To use the higher-quality pro model for generation:

```bash
nanobanana generate -pro output.png "a beautiful sunset over mountains"
```

The `-pro` flag enables Google's premium generative AI model, which typically produces higher quality results but may take slightly longer to generate.

## Editing existing images

To edit or modify an existing image using a text prompt:

```bash
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.

## Tips for effective prompts

- Be specific and descriptive about what you want in the image
- Include details about style, colors, mood, composition, and subject matter
- For edits, clearly describe what should change while the rest remains the same
- You can reference art styles, artists, or specific visual aesthetics

## Examples

Generate a logo:
```bash
nanobanana generate logo.png "minimalist tech company logo with geometric shapes in blue and white"
```

Create concept art:
```bash
nanobanana generate concept.png "futuristic city skyline at night with neon lights and flying vehicles, cyberpunk style"
```

Edit an existing photo:
```bash
nanobanana generate -i photo.png enhanced.png "enhance the colors and make it look like golden hour"
```

Files in this skill

  • README.md744 B
  • skill.md2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.