返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

nano-banana-illustrator

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

person作者: jakexiaohubgithub

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