Nano Banana Pro 提示詞指南:結構、文字、參考影像與編輯
如何撰寫 Nano Banana Pro 提示詞:五要素結構、讓影像中的文字正確、為參考影像分配角色、只修改需要改的部分,以及輸出 2K 或 4K 影像。
以 Markdown 閱讀好的 Nano Banana Pro 提示詞會用完整的句子描述畫面:畫面裡是誰或什麼、鏡頭如何取景、正在發生什麼、場景在哪裡、整體是什麼風格。把要呈現的文字原封不動放進雙引號,說明每張參考影像的用途;如果是編輯,既要說清楚要改什麼,也要說清楚哪些必須保持不變。尺寸和寬高比透過請求參數設定,不寫在提示詞裡。下文的建議來自 Google 自己的 Nano Banana Pro 文件與提示詞技巧(查證於 2026 年 9 月 29 日),以及 SeedRouter API 的規則。
如何撰寫 Nano Banana Pro 提示詞?
Google 的 Nano Banana Pro 提示詞技巧列出了五個要寫進去的要素:
- 主體。「畫面裡是誰或什麼?要具體。」
- 構圖。「鏡頭如何取景?」例如特寫、廣角或低角度。
- 動作。「正在發生什麼?」
- 地點。「場景發生在哪裡?」
- 風格。「整體美感是什麼?」例如寫實攝影、水彩或 3D 動畫。
把這些寫成句子,而不是一串關鍵字。Nano Banana Pro 是會思考的模型:它在繪製之前會先推敲提示詞,所以清楚的描述比一串標籤提供更多資訊。Google 的影像生成指南也是這麼說的:「你描述得越具體,對結果的掌控就越多。」
Google 最佳做法中還有兩個習慣,幾乎對每個提示詞都有幫助:
- 說明用途。「為一個高端、極簡的保養品牌設計 logo」比「設計一個 logo」效果更好,因為模型會運用這些脈絡。
- 描述你想要的,而不是你不要的。 Google 稱之為「語意化的負面提示」:不要寫「沒有汽車」,而是寫「一條空蕩蕩、看不到任何車流的街道」。
以下是按照五要素寫成的提示詞:
A close-up photograph of a hand-thrown ceramic bowl filled with ripe cherries, resting on a weathered wooden table in a sunlit farmhouse kitchen. Morning light comes from a window on the left and casts soft shadows to the right. Shallow depth of field, warm and natural colors, editorial food photography.如何讓 Nano Banana Pro 影像中的文字正確?
文字呈現是 Nano Banana Pro 的強項之一。Google 稱它是「在影像中直接產生正確呈現、清晰易讀文字的最佳模型」。要讓文字正確:
- 把要出現的文字原封不動放進雙引號,並說明放在哪裡。Google 的範例:「標題 'URBAN EXPLORER' 以粗體、白色、無襯線字體呈現在頂部。」
- 用文字描述字型,例如粗襯線、手寫體或窄體無襯線。
- 先把文案定下來。 Google 的指南指出,模型「最好先產生文字,再要求產生含有這些文字的影像」。在寫提示詞之前先確定正確的文案,不要讓模型同時撰寫文案又負責設計。
- 檢查小字。 Google 把「呈現小字、細節與正確拼字」列為可能尚不完美的地方。關鍵文字要放大,每次產生影像都要校對。
A minimalist concert poster in a 2:3 vertical layout. The headline "MIDNIGHT ORCHESTRA" sits at the top in tall, condensed, cream-colored serif letters. Below it, a single violin floats against a deep navy background lit by a soft spotlight. At the bottom, the line "Live at the Harbor Hall, October 18" appears in small, clean sans-serif text. No other text.Nano Banana Pro 也能寫出其他語言的文字,並翻譯影像中既有的文字。Google 提醒,多語言文字「可能出現文法錯誤或遺漏特定的文化細節」,所以請找母語人士檢查。
如何在 Nano Banana Pro 提示詞中使用參考影像?
一個請求最多可以附上 14 張參考影像。Google 的文件對 Nano Banana Pro 的上限是這樣劃分的:最多 6 張物件影像(高保真保留)、最多 5 張人物影像(維持角色一致),以及最多 3 張作為風格參考的影像。
提示詞要說明每張影像的用途。Google 的建議是:「使用上傳的影像時,要清楚定義每一張的角色。(例如:『用影像 A 作為人物姿勢,用影像 B 作為畫風,用影像 C 作為背景環境。』)」依照你附加影像的順序來指稱它們。
在 SeedRouter 上,參考影像以公開影像 URL 的形式放在 fileData 部分傳入,不接受 base64 與檔案上傳。附兩張參考影像的請求如下:
{
"model": "gemini-3-pro-image",
"contents": [{
"role": "user",
"parts": [
{"text": "Place the lamp from the first image on the desk in the second image. Keep the lamp's shape, color and materials exactly as they are. Match the warm evening light of the second image."},
{"fileData": {"mimeType": "image/jpeg", "fileUri": "https://example.com/lamp.jpg"}},
{"fileData": {"mimeType": "image/png", "fileUri": "https://example.com/desk.png"}}
]
}],
"generationConfig": {
"responseModalities": ["IMAGE"],
"imageConfig": {"aspectRatio": "4:3", "imageSize": "2K"}
}
}請求送到 POST /v1/images/generations,回傳一個任務 ID;Nano Banana 2 API 教學完整示範了送出與輪詢的流程,Nano Banana Pro 的步驟完全相同。
如何用 Nano Banana Pro 提示詞編輯影像?
附上影像,直接描述要做的修改。Google 對編輯的建議是:「直接、具體。(例如:把那位男士的領帶改成綠色、移除背景裡的車)」。
如果只修改影像的一部分,Google 的指南把這種技巧稱為語意遮罩:用文字界定範圍,而不是畫遮罩。它提供的範本是:「只把[特定元素]改成[新元素/描述]。影像中其他一切都保持完全不變,保留原本的風格、光線與構圖。」
Using the provided photo of a reading nook, change only the gray armchair to a dark green velvet armchair with brass legs. Keep everything else exactly the same, including the bookshelf, the rug, the window and the lighting.其他依照同樣思路寫的編輯範例:
Transform the provided photo of a harbor at dusk into a flat vector illustration with bold outlines and a limited palette of teal, orange and cream. Keep the composition of the boats and buildings.Turn this rough pencil sketch of a desk lamp into a polished product photo of the finished lamp on a white studio background. Keep the angled arm and round base from the sketch, and make the shade brushed aluminum.如果要在多輪對話中持續修改同一張影像,每次新請求都要把先前的輪次一起送回去。Nano Banana Pro API 參考說明了如何根據已完成的任務重建模型那一輪。
如何從 Nano Banana Pro 取得 2K 與 4K 影像?
尺寸在請求中設定,而不是寫在提示詞裡。generationConfig.imageConfig.imageSize 可選 1K(預設)、2K 或 4K,K 必須大寫。aspectRatio 可選十種比例:1:1、2:3、3:2、3:4、4:3、4:5、5:4、9:16、16:9 與 21:9。未設定比例時,輸出會沿用輸入影像的比例;沒有輸入影像時則為正方形。
"generationConfig": {
"responseModalities": ["IMAGE"],
"imageConfig": {"aspectRatio": "16:9", "imageSize": "4K"}
}在 16:9 下,三種尺寸分別輸出 1376×768、2752×1536 與 5504×3072。影像要印刷或大幅裁切時用 4K;用於螢幕顯示時,2K 通常就夠了。輸出尺寸由 imageSize 決定:不設定就是 1K,提示詞怎麼寫都一樣。尺寸如何影響費用,請見 Nano Banana API 價格。
一個 Nano Banana Pro 提示詞能產生多張影像嗎?
一個請求只會回傳一張影像:candidateCount 只接受 1。在提示詞裡要求「四個版本」並不會多出影像,Google 的指南也指出,模型「不一定會完全遵照使用者明確要求的影像數量輸出」。
有兩種做法:
- 每張影像送一個請求。 每次請求之間只改一個細節,方便比較不同版本。
- 在一張影像裡要求多個設計。 例如「四個圖示變化,在白色背景上排成 2×2 網格」,得到的是一張同時呈現四個設計的影像。
Four app icon variations for a weather app, arranged in a 2x2 grid on a plain white background. Each icon is a rounded square with a soft gradient: a sun, a cloud, a raindrop and a snowflake. Flat, clean vector style with gentle shadows. No text.Nano Banana Pro 提示詞最長可以寫多長?
Google 標示此模型的輸入上限為 65,536 個 token,文字與參考影像合併計算。大多數提示詞只需要幾句話。加長之所以有用,是因為它帶來具體細節;用不同說法重複同一個指示並沒有幫助。
面對複雜的場景,Google 建議用分步驟的指示取代一個長句:「首先,建立一個黎明時分寧靜、霧氣瀰漫的森林背景。接著,在前景加入一座長滿青苔的古老石祭壇。最後,在祭壇上放一把發光的劍。」
更多 Nano Banana Pro 提示詞範例
以下每個範例都遵循上面的結構。換掉主體,其餘部分保留即可。
產品照
A studio product photograph of a matte white wireless speaker on a pale sage-green surface. Soft, diffused light from a large softbox above, with a subtle shadow beneath the speaker. Slightly elevated three-quarter view that shows the fabric grille. Sharp focus, clean background, square format.貼紙
A cute sticker of a small orange fox wearing a knitted scarf, curled up asleep on a stack of books. Thick white border, bold clean outlines, simple cel shading and bright colors. The background is plain white.資訊圖表
A clean infographic titled "How to Brew Pour-Over Coffee" in five numbered steps, arranged from top to bottom: heat the water, rinse the filter, add ground coffee, pour in slow circles, serve. Each step has a simple line icon and a short label. Flat design, warm brown and cream palette, generous white space.等角場景
A 45-degree isometric miniature of a small seaside town with a lighthouse, a harbor with fishing boats and a row of pastel houses. Soft, realistic materials and gentle afternoon light. Clean composition on a solid pale-blue background.分鏡
A four-panel storyboard in black-and-white pencil sketch style for a short scene: an establishing shot of a mountain cabin in snow, a medium shot of a hiker opening the door, a close-up of a kettle on a stove, and a wide shot of the cabin window glowing at night.Nano Banana Pro 還有哪些做不好的地方?
Google 列出以下仍需改進的方面:
- 小字、細節與正確拼字;
- 圖表、資訊圖表這類資料導向視覺內容的事實正確性,Google 建議一律查證;
- 多語言文字的文法與文化細節;
- 融合、調整光線等進階編輯的自然程度;
- 多次編輯之間的角色一致性,「可能會有差異」。
凡是要發布的內容,都要安排審核步驟。
常見問題
在 SeedRouter 上,Nano Banana Pro 提示詞可以使用 Google 搜尋嗎?
不行。Google 搜尋基礎是透過 tools 送出的,SeedRouter 目前尚未對此模型接受這個欄位。請直接把需要的事實寫進提示詞。
Nano Banana Pro 提示詞一定要用英文嗎?
不必。Google 列出效果最好的語言除英文外,還包括日文、韓文、德文、西班牙文、法文、葡萄牙文、俄文、越南文與中文等。
可以看到 Nano Banana Pro 如何理解我的提示詞嗎?
可以。把 generationConfig.thinkingConfig.includeThoughts 設為 true,已完成的任務會在 output.thoughts 中回傳模型的思考摘要。讀一讀它,能幫助你了解模型如何理解提示詞。
這些提示詞該用哪個 Nano Banana 模型?
同樣的提示詞在 Nano Banana 2 與 Nano Banana Pro 上都能使用。Nano Banana 2 vs Pro vs 2 Lite 說明了什麼時候值得選 Pro。
在 Nano Banana Pro 上試一個提示詞
撰寫程式之前,可以先在 Nano Banana Pro playground 測試提示詞。每次請求都和 API 呼叫一樣計費,失敗的請求不收費。API 參考列出了所有參數。



