nano-banana-illustrator

majiayu000 的头像作者 majiayu000

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.

📖 中文导读: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. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

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

pip install google-genai
export GOOGLE_API_KEY=your_key_here

Usage

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