# Nano Banana Image

> Generate or edit images through Google's Gemini image API using environment-provided credentials, explicit output paths, and reproducible request metadata.

- Skill: `batteryshark/nano-banana-image` (Agent Skill, multi-file: 5 files)
- Install (CLI): `npx skillmds@latest add batteryshark/nano-banana-image`
- Raw SKILL.md: https://api.skillmd.com/api/skills/batteryshark/nano-banana-image/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: batteryshark (https://skillmd.com/u/batteryshark)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/batteryshark/nano-banana-image

---


# Generate Images with Gemini

1. Confirm the requested content, aspect/size constraints, output directory, and whether source images may be sent to Google's API.
2. Read [references/request-safety.md](references/request-safety.md). Require the API key through `GEMINI_API_KEY`; never put it in arguments, source, logs, or generated metadata.
3. Run `bin/nano-banana-image --prompt ... --output ...` and pass source images only when editing is requested. The command validates MIME types, uses a user-selectable model, and writes returned image parts atomically.
4. Inspect every output image and record the prompt, model, source hashes, and response text without recording credentials.
5. If the API or model name has changed, verify the current official Google documentation before modifying the request.

Use [agents/image-request-reviewer.md](agents/image-request-reviewer.md) for sensitive source material or public-facing output.

