
DIY 信息图
16:9High-quality flat lay photography creating a DIY infographic that simply explains how the water cycle works, with hand-drawn arrows and labels.
google/nano-banana-2Google 推出的 Nano Banana 2 图片生成 API —— 基于 Gemini 3.1 Flash,支持 4K 输出、15 种画面比例、最多 5 个角色一致性。
curl https://api.runbase.net/v1/runs \
-H "Authorization: Bearer $RUNBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/nano-banana-2",
"input": {
"prompt": "一张陶瓷台灯的电影级产品照片",
"aspect_ratio": "1:1",
"resolution": "1K"
}
}'
High-quality flat lay photography creating a DIY infographic that simply explains how the water cycle works, with hand-drawn arrows and labels.

A three-panel comic-style comparison of Cumulus, Stratus, and Cirrus clouds in dramatic skies, each panel with a bold legible label.

A four-panel collage of the same kangaroo character in a consistent outfit across vacation scenes — boating, a café, a hotel room, and a bouncy castle.
Nano Banana 2 是 Google Nano Banana 系列中功能最全面的模型,于 2026 年 2 月发布。基于 Gemini 3.1 Flash 构建,它以 Flash 的速度提供 Pro 级别的质量。支持 15 种画面比例——可选范围最广——包括超宽选项(8:1、1:8)和 auto。输出分辨率最高 4K。可接受最多 14 张参考图(每张 30 MB),并能在图片之间保持最多 5 个角色的一致性。
大规模品牌素材批量生产。角色一致性工作流——漫画、分镜、吉祥物系列。带准确文字渲染的信息图和示意图。使用 8:1 或 21:9 比例制作超宽横幅和全景构图。使用最多 14 张图进行参考图引导编辑。
所有参数通过运行请求的 input 对象传入。
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | 文本描述(1–20000 字符) |
| aspect_ratio | No | 输出画面比例。默认 1:1。支持 15 种比例,包括超宽(8:1、1:8)和 auto |
| resolution | No | 输出分辨率。默认 1K。可选:1K、2K、4K |
| image_urls | No | 最多 14 张参考图(每张最大 30 MB)用于引导生成 |
使用角色一致性功能时,为每个角色设定独特的视觉描述,并在多次提示词中保持一致。"The red-haired fox in a blue scarf" 这样的描述每次都应使用相同的措辞。
1K 适合快速迭代,速度快成本低。2K 在质量和成本之间取得平衡。4K 留给最终交付物——价格差异显著。
8:1 和 1:8 非常适合横幅和纵向长图,但需要提示词能填满画面空间。描述场景时要包含足够的元素,避免构图稀疏。
十五种:1:1、1:4、1:8、2:3、3:2、3:4、4:1、4:3、4:5、5:4、8:1、9:16、16:9、21:9 和 auto。默认为 1:1。
1K(默认)、2K 和 4K。每个分辨率档位价格不同。
用独特的视觉特征描述最多 5 个角色,模型会在生成的图片中保持他们的外观一致。使用参考图可以进一步锚定每个角色的形象。