Runbase

Command Palette

Search for a command to run...

Gemini

Nano Banana

ID:google/nano-banana

Google 的 Nano Banana 圖片產生 API — 基於 Gemini 2.5 Flash 的平價模型,11 種比例,最多 10 張參考圖片。

文字轉圖片圖片編輯參考圖片
輸入
Aspect ratio
Reference images
最多 10 張圖片,每張 10MB
輸出結果會顯示在這裡
固定
$0.03
cURL
curl https://api.runbase.net/v1/runs \
  -H "Authorization: Bearer $RUNBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/nano-banana",
    "input": {
      "prompt": "A cinematic product photo of a ceramic lamp",
      "aspect_ratio": "1:1",
      "resolution": "1K"
    }
  }'

範例

黃金時刻人像

黃金時刻人像

16:9

A woman standing in a sunlit field at golden hour, wearing ornate gold jewelry, warm cinematic light.

動態時尚照

動態時尚照

16:9

A woman spinning in a flowing red traditional dress with floral embroidery, motion blur capturing the movement.

夜間街景

夜間街景

4:3

A vintage orange sedan parked on a night road, teal fog and palm trees in the background, moody atmosphere.

概述

Nano Banana 是 Google 的入門級圖片模型,於 2025 年 8 月發布。基於 Gemini 2.5 Flash 構建,在 Nano Banana 系列中提供最快的產生速度和最低的價格。支援 11 種比例(含 auto,讓模型自動選擇)以及最多 10 張、每張 10 MB 的參考圖片。沒有解析度控制 — 模型自動決定輸出解析度。

使用情境

快速創意探索和概念圖迭代。預算有限的社群媒體視覺素材和縮圖。情緒板和早期設計階段。速度和成本比像素級保真度更重要的簡單圖片編輯。

輸入參數

所有參數都在執行請求的 input 物件中傳遞。

ParameterRequiredDescription
promptYes文字描述(1–5000 字元)
aspect_ratioNo輸出比例。預設 1:1。支援 11 種比例,含 auto
image_urlsNo最多 10 張參考圖片(每張最大 10 MB)用於圖片編輯

提示詞技巧

探索階段使用 auto 比例

不確定什麼比例適合提示詞時,將 aspect_ratio 設為 auto 讓模型決定。這通常比強制使用與主題不搭的比例產出更好的構圖。

描述氛圍和氣氛

Nano Banana 對氛圍提示的回應很好 — 「golden hour light」、「moody fog」、「high-contrast noir」。這些比詳細的版面指令更能可靠地引導整體感覺。

限制

  • 無解析度控制 — 輸出解析度由模型決定
  • 圖片中的文字渲染精確度不如 Nano Banana Pro 或 Nano Banana 2
  • 沒有品質或解析度參數
  • 每次請求最多 10 張參考圖片,每張 10 MB
  • 提示詞長度上限 5000 字元

常見問題

Nano Banana 支援哪些比例?

十一種選項:1:1、2:3、3:2、3:4、4:3、4:5、5:4、9:16、16:9、21:9 和 auto。預設為 1:1。

Nano Banana 支援解析度控制嗎?

不支援。與 Nano Banana 2 和 Nano Banana Pro 不同,沒有解析度參數。模型自動決定輸出解析度。

和 Nano Banana Pro 比起來如何?

Nano Banana 更快且更便宜,基於 Gemini 2.5 Flash。Nano Banana Pro 使用 Gemini 3 Pro 提供更高保真度和更銳利的文字渲染,但延遲和費用更高。