
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": "A cinematic product photo of a ceramic lamp",
"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 個具有獨特視覺特徵的角色,模型會在產生的圖片中維持其外觀一致性。使用參考圖片可進一步穩固每個角色的樣貌。