AgentSkillsCN

nano-banana-illustrator

使用 Google 的 Nano Banana(Gemini 图像)API 生成插图。在从文本提示创建图像、插图、视觉内容或为文档/故事配图时使用。默认使用 Pro 模型,宽高比为横向(16:9)。需要环境中的 GOOGLE_API_KEY。

SKILL.md
--- frontmatter
name: nano-banana-illustrator
description: Generate illustrations using Google's Nano Banana (Gemini Image) API. Use when creating images, illustrations, visual content from text prompts, or illustrating documents/stories. Defaults to Pro model with landscape (16:9) aspect ratio. Requires GOOGLE_API_KEY in environment.

Nano Banana Illustrator

Generate images using Google's Gemini Image models.

Setup

bash
pip install google-genai
export GOOGLE_API_KEY=your_key_here

Usage

bash
python generate_image.py "A sunset over mountains" -o sunset.jpg
python generate_image.py "A robot" -o robot.jpg -a portrait -m flash

Models

  • pro (default): High quality, 4K
  • flash: Fast generation

Aspect Ratios

  • landscape (default): 16:9
  • portrait: 9:16
  • square: 1:1
  • cinematic: 21:9