skills/skills.volces.com/nano-banana-2-direct-direct

nano-banana-2-direct-direct

SKILL.md

Nano Banana 2 Direct - Gemini 3.1 Flash Image

Generate new images or edit existing ones using Google's Gemini 3.1 Flash Image Preview API directly (no inference.sh required).

Usage

Run the script using absolute path (do NOT cd to skill directory first):

Generate new image:

uv run ~/.openclaw/workspace/skills/nano-banana-2-direct/scripts/generate_image.py --prompt "your image description" --filename "output-name.png" [--resolution 1K|2K|4K] [--api-key KEY]

Edit existing image:

uv run ~/.openclaw/workspace/skills/nano-banana-2-direct/scripts/generate_image.py --prompt "editing instructions" --filename "output-name.png" --input-image "path/to/input.png" [--resolution 1K|2K|4K] [--api-key KEY]

Important: Always run from the user's current working directory so images are saved where the user is working, not in the skill directory.

Installs
19
First Seen
Mar 27, 2026