nano-banana-illustrator

omkamal 的头像作者 omkamal

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

📖 中文导读:使用Google的Nano Banana(Gemini图像)API生成插图。在从文本提示创建图像、插图、视觉内容或说明文档/故事时使用。默认为横向(16:9)宽高比的专业模型。需要在环境中有GOOGLE_API_KEY。 以下正文为该技能的原始 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