返回模型列表
用 14 張參考圖(4 位樂手、1 隻貓和 9 件道具)合成的虛構樂團 Moon Garage 專輯封面
14 張參考圖 → 1 張圖

Nano Banana 2.1 API

Google · Nano Banana圖像模型正常

Nano Banana 2.1 API 呼叫 Google 最新的 Nano Banana 模型:用文字生成圖片,或傳最多 14 張參考圖改圖;auto 加 14 種畫面比例(8:1 到 1:8),1K / 2K / 4K,思考強度和 Google 搜尋不加價,按張計費。

定價

1K 一張

4.2 折
¥0.096¥0.228/ 張
變體

輸入

參考圖片(選填)

最多 14 張 · 支援 JPEG、PNG、WebP

0 / 14
上傳
2552 / 32000
比例
解析度

更多參數

生成設定

思考程度

模型出圖前的思考程度,各級別價格相同。

預估費用¥0.107 / 張3.1 折官方價約 ¥0.343
¥1 可生成約 9 張

輸出

範例輸出2K16:9思考程度:高

結果連結為簽名連結,保留 24 小時,需要儲存請及時下載;失敗的任務全額退款。

儲值前先算清楚

Nano Banana 2.1 API 出一張圖多少錢

按張計費,價格只看解析度:文生圖和改圖同價,參考圖不另收費。帳戶餘額和扣費都按美元計;用支付寶付款時,按下單時的匯率折成人民幣支付。

你的第一次測試

1K 一張

$0.0142$0.034/ 張

提交時凍結這一張的價格,出圖後扣款;失敗的任務全額退回餘額。

儲值後大約能出(1K)

$10調提示詞、做效果驗證
約 705 張
$50一批電商主圖或社群配圖
約 3,527 張
$100接進產品做小規模上線
約 7,055 張

$5 起儲 · 餘額不過期

去儲值 →

常見花費

文字生圖

1K · 文生圖

$0.0142$0.034

最便宜的一檔,先用它調提示詞

改圖 · 14 張參考圖

1K · 圖生圖

$0.0142

參考圖不另收費;官方另按輸入 token 計

2K 成圖

2K

$0.0157$0.050

社群、商品頁夠用

4K 大圖

4K

$0.0189$0.113

印刷、大螢幕

解析度1K2K4K
每張$0.0142$0.034$0.0157$0.050$0.0189$0.113

劃線為 Google Gemini API 官方每張約價,由官方按 token 計的價格換算。按成功出圖的張數和解析度計費,失敗不扣費。

Nano Banana 2.1 模型介紹

Nano Banana 2.1,Google 新一代影像模型,文字更清晰、編輯更穩定

Nano Banana 2.1 是 Google 2026 年 10 月 6 日發布的 Nano Banana 圖像模型。Google 強調三點:整體畫質更乾淨、圖中文字更清晰、同一張圖連續改幾輪更穩定。用 Nano Banana 2.1 API 可以做海報和廣告圖、反覆修改商品圖、根據最新資訊出圖,以及 8:1 到 1:8 的橫幅和長條圖。

Nano Banana 2.1 能做什麼

Nano Banana 2.1 提示詞範例

每項配一張樣圖,標明是 APIKO 實測還是 Google 官方範例;欄位和上限見下面的參數卡。

廣告海報 · 2K · 16:9

APIKO 實測 · 2K 文生圖 · 2752×1536 · thinking high

可直接使用的排版文字

標題、標語和小字都能直接畫進圖裡。這張海報從「SMALL BANANA. BIG IMAGINATION.」到底部小字,每一行都和提示詞寫的一樣。

要出現的文字放在引號裡寫完整,並寫明放在哪裡。這張用的是 2K、16:9、thinking_level high。

提示詞(原文)

Create an award-worthy creative advertising poster with the concept: “One banana, an entire future world.” The hero subject is a large, ripe banana resting on a pale cream photography surface, occupying approximately the right two-thirds of the composition. Its naturally curved peel has realistic fine fibers, tiny freckles, and a subtle organic sheen. It must look like a real banana, never a plastic toy. One side of the banana is elegantly peeled open, with three strips of peel draping naturally onto the surface. Inside, instead of ordinary fruit, reveal a beautifully crafted miniature futuristic city: transparent glass buildings, elevated walkways, small botanical conservatories, and a flowing blue canal. The buildings follow the inner curve of the banana. Every structure sits convincingly within the banana, with coherent perspective and believable spatial relationships. A tiny pedestrian bridge extends from the city onto the photography surface. At the end of the bridge, a miniature person wearing a yellow raincoat looks up at the city, creating a striking sense of scale. Warm light glows from the buildings, revealing distinct textures across glass, water, plants, and banana peel. Combine luxury product photography with highly detailed miniature architectural photography. Use soft side and back lighting, natural contact shadows, and crisp detail throughout the banana and miniature city. Keep the background clean. The palette consists of cream white, banana yellow, and restrained accents of icy blue. The scene should feel imaginative while maintaining realistic optics and lighting. Reserve the left side for elegant typography. Render exactly the following English text: Small heading at the top: “NANO BANANA 2.1” Large headline in the middle, arranged on two lines: “SMALL BANANA.” “BIG IMAGINATION.” Smaller supporting line underneath: “Give every idea a world of detail.” Brand signature at the bottom left: “APIKO” All text must be spelled correctly, sharp, and clearly readable. Use refined modern sans-serif typography with consistent alignment, generous spacing, and a strong visual hierarchy. Do not add any other words, duplicate letters, random symbols, or extra logos. Typography must never overlap the banana. The final image should look ready for a premium brand launch: a striking hero subject, bold composition, intricate details, and restrained editorial typography. Avoid cluttered backgrounds, excessive glow, generic science-fiction imagery, and cartoon styling. Landscape composition, 16:9 aspect ratio.

參考圖:前一輪生成的菜單卡
Nano Banana 2.1 改圖 · 1K

APIKO 實測 · 1K 改圖 · C2PA:Google LLC

多輪編輯保持一致

給參考圖,寫清楚要改什麼、哪些不動。這張把木桌換成灰色大理石、加了一杯拿鐵,菜單卡和上面的每個價格都原樣保留。

在 APIKO 上一次最多傳 14 張參考圖。要繼續改,就把上一張結果當參考圖再送出。

提示詞(原文)

Keep the menu card and every word on it unchanged. Replace the wooden table with grey marble and add a latte beside the card.

thinking_level:minimal
thinking_level:high

APIKO 實測 · 同一提示詞兩檔思考 · C2PA:Google LLC

用思考程度處理複雜版式

thinking_level 決定出圖前推理多少:minimal、medium 或 high,不傳由模型自行決定。這道菜單題兩檔都把每行字寫對了;文字更多、版面更複雜時再調高。

在 APIKO 上每一檔同價;線上體驗裡在「更多參數」中設定。

提示詞(原文)

A flat lay photo of a printed cafe menu card on a wooden table. The card reads, exactly: title "HARBOR BEANS", then three lines "Flat White $4.50", "Cold Brew $5.25", "Cardamom Bun $3.75", and a footer "Open daily 7am - 3pm". Natural window light.

web_search · 3:4
image_search · 16:9

APIKO 實測 · 1K · C2PA:Google LLC

基於 Google 搜尋生成

打開 web_search,模型會先查 Google 再出圖,這張東京天氣海報的回傳裡帶有搜尋紀錄。image_search 會參考 Google 圖片搜尋的結果,右邊的里亞托橋就是這樣生成的。

兩個開關預設關閉,在 APIKO 上不加價。發布前核對日期和數字:這張海報生成時東京已是 11 月 8 日凌晨,圖上寫的仍是 11 月 7 日下午。

提示詞(原文)

A poster of today's weather forecast for Tokyo with the real current temperature

8:1 · 2K · 5856×704
8:1 · 1K · 2928×352

APIKO 實測 · 8:1 · C2PA:Google LLC

從 8:1 橫幅到 1:8 長條

auto 加 14 種畫面比例,涵蓋方圖、4:5 動態牆、16:9 和 21:9 主視覺,以及 4:1、8:1、1:4、1:8 的超長條,橫幅不用再從方圖裁切。

實測 8:1 在 1K 回傳 2928×352,在 2K 回傳 5856×704。

提示詞(原文)

A panoramic city skyline at dusk along a river, warm windows, no text.

Nano Banana 2.1 適合哪些情境

海報與廣告創意

帶標題和標語的產品主視覺,文字直接渲染在圖中,可用於新品發布或行銷活動。

2Kthinking_level: high

迭代式產品圖

對同一張產品圖連續修改,產品、光線和場景保持不變。

images ≤ 142K

時效性視覺

開啟 web_search,製作依賴最新事實的圖片,例如活動回顧、天氣或新聞中的地點。

web_search1K

橫幅與特殊尺寸

網站長條圖、直式故事畫面和電商橫幅,8:1 到 1:8 直接出圖,無需裁切方圖。

8:1 / 1:82K

Nano Banana 2.1 模型規格

下面是 nano-banana-2.1 請求內容的全部欄位,預設值取自 API。

modelstring

模型 ID,固定為 nano-banana-2.1。

預設值:必填

promptstring

畫面描述;要出現的文字放在引號裡寫完整。

預設值:必填

sizeenum

畫面比例:auto, 1:1, 1:4, 4:1, 1:8, 8:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9。改圖不傳時沿用參考圖的比例。

預設值:1:1

resolutionenum

1k, 2k, 4k,按檔位計費。

預設值:1k

imagesarray

參考圖的公開 HTTPS 連結,1–14 張;POST /v1/images/edits 必填。

預設值:不傳

thinking_levelenum

思考程度:minimal、medium、high;不傳由模型決定。

預設值:不傳

web_searchboolean

用 Google 網頁搜尋結果輔助生成(時事、真實地點);不額外收費。

預設值:false

image_searchboolean

用 Google 圖片搜尋結果作視覺參考;不額外收費。

預設值:false

ninteger

每次 1 張。

預設值:1

asyncboolean

true 時立即回傳任務 ID,用 GET /v1/tasks/{id} 查結果。

預設值:false

response_formatenum

url(簽名連結,保留 24 小時)或 b64_json。

預設值:url

callback_urlstring

任務完成後通知這個 HTTPS 位址;不傳就自己輪詢任務狀態。

預設值:不傳

如何使用 nano-banana-2.1

輸入你的想法,按需新增參考圖,三步完成創作。

01

描述主體與場景

先寫主體、環境和畫面目標,再補充材質、光線、鏡頭與需要出現的文字。

02

選擇輸出參數

從文字生成圖片,或填入參考圖地址進行編輯。選擇畫幅與解析度,每次執行生成一張圖片。

03

驗證後接入 API

線上體驗確認效果後,用同一提示詞和模型 ID 建立非同步任務。

Nano Banana 2.1 API 快速開始

兩種接法共用同一個 API Key 和餘額:在自己的程式碼裡直接呼叫 API,或讓 Claude Code、Codex 透過 APIKO MCP 幫你呼叫。

方式一 · 在程式碼裡呼叫 API

適合:產品後端、批次任務、自動化流程

1

請求驗證

在主控台建立 API Key,存進環境變數 APIKO_API_KEY,每次請求都在標頭帶上 Authorization: Bearer <key>。

2

提交 nano-banana-2.1 任務

向 POST /v1/images/generations 傳送模型 ID、提示詞和 async: true,立即拿到任務 ID。

3

查詢產生結果

輪詢 GET /v1/tasks/{id},直到狀態變成 completed,讀取 data[0].url。結果連結 24 小時後過期,請及時下載。

檢視完整 API 文件
POST /v1/images/generations
TASK_ID=$(curl https://api.apiko.app/v1/images/generations \
  -H "Authorization: Bearer $APIKO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "nano-banana-2.1",
  "prompt": "Create an award-worthy creative advertising poster with the concept: “One banana, an entire future world.”\nThe hero subject is a large, ripe banana resting on a pale cream photography surface, occupying approximately the right two-thirds of the composition. Its naturally curved peel has realistic fine fibers, tiny freckles, and a subtle organic sheen. It must look like a real banana, never a plastic toy.\nOne side of the banana is elegantly peeled open, with three strips of peel draping naturally onto the surface. Inside, instead of ordinary fruit, reveal a beautifully crafted miniature futuristic city: transparent glass buildings, elevated walkways, small botanical conservatories, and a flowing blue canal. The buildings follow the inner curve of the banana. Every structure sits convincingly within the banana, with coherent perspective and believable spatial relationships.\nA tiny pedestrian bridge extends from the city onto the photography surface. At the end of the bridge, a miniature person wearing a yellow raincoat looks up at the city, creating a striking sense of scale. Warm light glows from the buildings, revealing distinct textures across glass, water, plants, and banana peel.\nCombine luxury product photography with highly detailed miniature architectural photography. Use soft side and back lighting, natural contact shadows, and crisp detail throughout the banana and miniature city. Keep the background clean. The palette consists of cream white, banana yellow, and restrained accents of icy blue. The scene should feel imaginative while maintaining realistic optics and lighting.\nReserve the left side for elegant typography. Render exactly the following English text:\nSmall heading at the top:\n“NANO BANANA 2.1”\nLarge headline in the middle, arranged on two lines:\n“SMALL BANANA.”\n“BIG IMAGINATION.”\nSmaller supporting line underneath:\n“Give every idea a world of detail.”\nBrand signature at the bottom left:\n“APIKO”\nAll text must be spelled correctly, sharp, and clearly readable. Use refined modern sans-serif typography with consistent alignment, generous spacing, and a strong visual hierarchy. Do not add any other words, duplicate letters, random symbols, or extra logos. Typography must never overlap the banana.\nThe final image should look ready for a premium brand launch: a striking hero subject, bold composition, intricate details, and restrained editorial typography. Avoid cluttered backgrounds, excessive glow, generic science-fiction imagery, and cartoon styling.\nLandscape composition, 16:9 aspect ratio.",
  "size": "1:1",
  "resolution": "1k",
  "async": true
}' | python3 -c 'import json,sys; print(json.load(sys.stdin)["id"])')

while :; do
  TASK=$(curl -s https://api.apiko.app/v1/tasks/$TASK_ID \
    -H "Authorization: Bearer $APIKO_API_KEY")
  printf '%s\n' "$TASK"
  printf '%s' "$TASK" | grep -qE '"status": *"(completed|failed)"|"error": *\{' && break
  sleep 5
done

方式二 · 在 Claude Code 或 Codex 裡呼叫

適合:快速出片、試提示詞、讓 Agent 幫你把串接寫好

1

裝上 APIKO MCP

Key 放在環境變數裡,不要貼進對話。

2

告訴 Agent 要什麼

畫面、畫幅、解析度和畫質,再給一個預算上限。

3

Agent 報價、提交、跟進

先 estimate_cost 報價,再 generate_image 提交,把圖片連結給你。

# Claude Code

claude mcp add apiko --scope user -e APIKO_API_KEY=sk-... -- npx -y apiko-mcp

# Codex

codex mcp add apiko --env APIKO_API_KEY=sk-... -- npx -y apiko-mcp

Agent 提示詞

用 APIKO 的 nano-banana-2.1 生成一張圖:1K、1:1。提示詞:<在這裡寫畫面>。先用 estimate_cost 報價,超過 $1 先問我;確認後用 generate_image 提交,把圖片連結發給我;失敗就告訴我原因。

開始用 Nano Banana 2.1 創作

在本頁線上體驗調好提示詞、比例、解析度、思考程度和搜尋增強,再透過 APIKO API 用同一個模型 ID 呼叫。

獲取 API Key

更多 Google 模型

探索 APIKO 上的 Google 影像與文本模型,為不同任務選擇合適的能力。

Nano Banana 2.1 常見問題

Nano Banana 2.1 是什麼?何時發布?

Nano Banana 2.1 是 Google 的影像生成與編輯模型,於 2026 年 10 月 6 日發布,是 Nano Banana 2 的後續版本。它在 APIKO 上的模型 ID 是 nano-banana-2.1。

它和 Nano Banana 2 有什麼不同?

Google 介紹它的整體畫質、排版與文字渲染,以及多輪編輯的一致性都有提升。在 APIKO 上它支援的參數也更多:14 種比例加 auto(Nano Banana 2 為 8 種)、最多 14 張參考圖(Nano Banana 2 為 9 張)、thinking_level,以及 web_search / image_search 搜尋增強。

支援哪些解析度和比例?

resolution 可選 1k、2k、4k(預設 1k)。size 可選 1:1、1:4、4:1、1:8、8:1、2:3、3:2、3:4、4:3、4:5、5:4、9:16、16:9、21:9,或傳 auto 由模型選擇。不傳 size 時,生成預設為 1:1,編輯沿用參考圖的比例;多張參考圖比例不同時由模型自行選擇,需要固定比例請傳 size。

thinking_level 有什麼用?

它控制模型出圖前的思考程度:minimal、medium 或 high;不傳時使用模型預設值。較高的級別有助於處理密集文字和複雜版式,各級別價格相同。

可以使用 Google 搜尋嗎?會額外收費嗎?

可以。傳 "web_search": true,用 Google 搜尋結果為圖片提供依據(時事、真實地點、事實);傳 "image_search": true,用 Google 圖片搜尋結果作為視覺參考。兩者預設都是 false。Google 官方 API 對搜尋增強單獨計費;在 APIKO 上開啟任一項都不改變價格。

最多可以傳幾張參考圖?

在 POST /v1/images/edits 上最多 14 張,每張都須是直接指向圖片檔案的公網 HTTPS URL。不接受檔案上傳、base64 和 data URL。本地圖片先上傳到 POST /v1/uploads/images,再使用回傳的連結(保留 72 小時)。

Nano Banana 2.1 在 APIKO 上怎麼計費?

按張計費,價格取決於解析度檔位:1K 最便宜,4K 最貴。thinking_level 和搜尋增強不影響價格,失敗的任務會退款。價格頁籤會列出各檔位的即時價格和 Google 官方價格。

支援同步還是非同步呼叫?

都支援。傳 "async": true 可立即拿到任務 id,再輪詢 GET /v1/tasks/{id};也可以加一個公網 HTTPS 的 callback_url,任務結束時接收通知。結果連結保留 24 小時。

支援用遮罩做局部重繪嗎?

不支援。Nano Banana 2.1 收到 mask 欄位會回傳 HTTP 400(mask is not supported)。要修改局部區域,請把原圖作為參考圖傳到 POST /v1/images/edits,並在 prompt 裡寫清改什麼、改在哪裡;也可以再加一張參考圖,說明那裡應該出現什麼。

Nano Banana 2.1 如何計費?

每次成功呼叫按公佈的單次費率或所選檔位計費。失敗請求的退款規則見下方問題。

是否相容 OpenAI?

相容。使用閘道 base URL 與 API Key,並按模型選擇圖片或影片端點及上方欄位。

如何獲取 API Key?

註冊後在控制台建立 API Key。一個 API Key 可以呼叫閘道上的所有模型。

Nano Banana 2.1 API 可以免費試用嗎?

可以。用 Gmail 帳號透過 Google 登入,餘額自動到帳 0.20 美元試用額度,無需綁定信用卡,每人限一次。nano-banana-2.1 和其他所有模型都能用。

如何獲取生成的檔案?

圖片為非同步任務:提交請求,輪詢 GET /v1/tasks/<id>,完成後讀取 data[0].url。影片輪詢 GET /v1/videos/<id>,完成後下載 video_url。APIKO 簽名連結保留 24 小時。

請求失敗會怎樣?

失敗或報錯的呼叫不計費。可以重試;若持續失敗,請點頁面右下角的線上客服聯絡我們。

本頁更新於