近日,谷歌發佈了 nano banana 的官方 Prompt 模板,迅速在網上引發熱議。作爲一款基於 AI 技術的圖像生成工具,nano banana 憑藉其強大的效果吸引了衆多用戶的關注與嘗試。各種創意使用方式層出不窮,讓人感受到 AI 在圖像生成和處理領域帶來的巨大變革。

在社交媒體上,許多網友分享了使用 nano banana 生成的各種圖片和視頻,展示出其強大的創作能力。例如,有用戶通過 nano banana 將經典名畫的人物與現代場景相結合,創造出梵高和蒙娜麗莎在紐約中央公園浪漫相遇的畫面。此外,還有用戶利用該工具讓我們重回中土世界,展現出彷彿3A 遊戲般的史詩場景。這些創意展示了 AI 生成技術的無窮潛力。
爲了幫助用戶更好地掌握這一工具,谷歌特別提供了六套 Prompt 模板,涵蓋了寫實、貼紙、文本渲染、產品攝影等多種風格。用戶只需按照這些模板填寫相關信息,就能輕鬆生成高質量的圖像。例如,在寫實攝影的模板中,用戶需要考慮拍攝角度、光線和細節等元素,以引導 AI 生成更真實的圖片。
具體來說,模板會引導用戶描述主體、場景和氛圍,從而確保生成的圖像達到理想效果。即使沒有專業攝影經驗,用戶只需多加嘗試,就能獲得令人滿意的成果。此外,對於貼紙、插圖和文本渲染等需求,用戶只需明確風格和背景要求,便能快速得到符合預期的設計。
nano banana 的推出爲更多用戶打開了創意的大門,不論是專業設計師還是普通用戶,都可以在這個平臺上盡情發揮創意,體驗到 AI 技術帶來的便利與樂趣。未來,我們期待 nano banana 能帶來更多精彩的圖像生成作品。
nano banana 官方 Prompt 模板具體如下:
官方參考鏈接:https://x.com/GoogleAIStudio/status/1962957615262224511
1.寫實攝影
要獲得逼真的圖像,請像攝影師一樣思考。提及相機角度、鏡頭類型、光線和精細細節,將引導模型達到逼真的效果。
示例模板:
A photorealistic [shot type] of [subject], [action or expression], set in [environment]. The scene is illuminated by [lighting description], creating a [mood] atmosphere. Captured with a [camera/lens details], emphasizing [key textures and details]. The image should be in a [aspect ratio] format.
大意:一張寫實風格的[鏡頭類型],[主體],[動作或表情],場景設定在[環境]。畫面由[光線描述]照明,營造出[情緒]氛圍。使用[相機/鏡頭參數]拍攝,突出[關鍵材質與細節]。圖像應爲[縱橫比]格式。
示例Prompt:
A photorealistic close-up portrait of an elderly Japanese ceramicist with deep, sun-etched wrinkles and a warm, knowing smile. He is carefully inspecting a freshly glazed tea bowl. The setting is his rustic, sun-drenched workshop. The scene is illuminated by soft, golden hour light streaming through a window, highlighting the fine texture of the clay. Captured with an85mm portrait lens, resulting in a soft, blurred background (bokeh). The overall mood is serene and masterful. Vertical portrait orientation.
大意:一張寫實風格的特寫人像:一位日本老陶藝家,臉上被歲月與陽光刻下的深深皺紋,露出溫暖而睿智的微笑。他正仔細端詳一個剛上釉的茶碗。場景位於他質樸、陽光充足的工作室。柔和的黃金時刻光線自窗外傾瀉而入,凸顯陶土的細膩紋理。使用85mm人像鏡頭拍攝,帶來柔和的背景虛化(bokeh)。整體氛圍寧靜而老練。豎版人像構圖。
生成的圖片:

調用API生圖示例Python代碼:
from google import genai
from google.genai import types
from PIL import Image
from io import BytesIO
client = genai.Client()
# Generate an image from a text prompt
response = client.models.generate_content(
model="gemini-2.5-flash-image-preview",
contents="A photorealistic close-up portrait of an elderly Japanese ceramicist with deep, sun-etched wrinkles and a warm, knowing smile. He is carefully inspecting a freshly glazed tea bowl. The setting is his rustic, sun-drenched workshop with pottery wheels and shelves of clay pots in the background. The scene is illuminated by soft, golden hour light streaming through a window, highlighting the fine texture of the clay and the fabric of his apron. Captured with an 85mm portrait lens, resulting in a soft, blurred background (bokeh). The overall mood is serene and masterful.",
)
image_parts = [
part.inline_data.data
for part in response.candidates[0].content.parts
if part.inline_data
]
if image_parts:
image = Image.open(BytesIO(image_parts[0]))
image.save('photorealistic_example.png')
image.show()2.風格化的插圖與貼紙
要爲您的項目創建貼紙、圖標或資產,請明確說明樣式,並記得在需要時請求白色背景。
示例模板:
A [style] sticker of a [subject], featuring [key characteristics] and a [color palette]. The design should have [line style] and [shading style]. The background must be white.
大意:一張[風格]的[主體]貼紙,具有[關鍵特徵],採用[配色]。設計應當使用[線條風格]與[明暗/上色風格]。背景必須爲白色。
示例Prompt:
A kawaii-style sticker of a happy red panda wearing a tiny bamboo hat. It's munching on a green bamboo leaf. The design features bold, clean outlines, simple cel-shading, and a vibrant color palette. The background must be white.
大意:一張可愛風(kawaii)貼紙:一隻開心的小熊貓戴着迷你竹葉帽,正咀嚼一片綠色竹葉。設計使用粗壯、乾淨的描邊,簡單的賽璐璐上色,配色鮮豔。背景必須爲白色。
生成的圖片:

調用API生圖示例Python代碼:
from google import genai
from google.genai import types
from PIL import Image
from io import BytesIO
client = genai.Client()
# Generate an image from a text prompt
response = client.models.generate_content(
model="gemini-2.5-flash-image-preview",
contents="A kawaii-style sticker of a happy red panda wearing a tiny bamboo hat. It's munching on a green bamboo leaf. The design features bold, clean outlines, simple cel-shading, and a vibrant color palette. The background must be white.",
)
image_parts = [
part.inline_data.data
for part in response.candidates[0].content.parts
if part.inline_data
]
if image_parts:
image = Image.open(BytesIO(image_parts[0]))
image.save('red_panda_sticker.png')
image.show()3.圖片中的文本渲染
nano banana在文本渲染這項任務上的表現是格外矚目的。
你只需要把文字內容、字體風格(用描述性的詞描述)、整體設計說明白,就可以產出質量很好的圖片了。
示例模板:
Create a [image type] for [brand/concept] with the text "[text to render]" in a [font style]. The design should be [style description], with a [color scheme].
大意:爲[品牌/概念]創建一張[圖像類型],其中包含文本「[要渲染的文本]」,使用[字體風格]。設計應爲[風格描述],並採用[配色方案]。
示例Prompt:
Create a modern, minimalist logo for a coffee shop called 'The Daily Grind'. The text should be in a clean, bold, sans-serif font. The design should feature a simple, stylized icon of a coffee bean seamlessly integrated with the text. The color scheme is black and white.
大意:爲一家名爲「The Daily Grind」的咖啡店設計一個現代、極簡的Logo。文字使用乾淨、粗體的無襯線字體。設計帶有一個簡潔、風格化的咖啡豆圖標,並與文字無縫融合。配色爲黑白。
生成的圖片:

爲一家名爲「The Daily Grind」的咖啡店生成的現代極簡風Logo
調用API生圖示例Python代碼:
from google import genai
from google.genai import types
from PIL import Image
from io import BytesIO
client = genai.Client()
# Generate an image from a text prompt
response = client.models.generate_content(
model="gemini-2.5-flash-image-preview",
contents="Create a modern, minimalist logo for a coffee shop called 'The Daily Grind'. The text should be in a clean, bold, sans-serif font. The design should feature a simple, stylized icon of a a coffee bean seamlessly integrated with the text. The color scheme is black and white.",
)
image_parts = [
part.inline_data.data
for part in response.candidates[0].content.parts
if part.inline_data
]
if image_parts:
image = Image.open(BytesIO(image_parts[0]))
image.save('logo_example.png')
image.show()4.產品廣告和商業攝影
爲電子商務、廣告或品牌創建清晰、專業的產品照片。
示例模板:
A high-resolution, studio-lit product photograph of a [product description] on a [background surface/description]. The lighting is a [lighting setup, e.g., three-point softbox setup] to [lighting purpose]. The camera angle is a [angle type] to showcase [specific feature]. Ultra-realistic, with sharp focus on [key detail]. [Aspect ratio].
大意:一張高分辨率、影棚布光的[產品描述]產品照,置於[背景表面/描述]上。燈光爲[布光設置,如三點柔光箱布光],用於[照明目的]。機位爲[角度類型],以展示[特定賣點]。超寫實,對[關鍵細節]進行銳利對焦。[縱橫比]。
示例Prompt:
A high-resolution, studio-lit product photograph of a minimalist ceramic coffee mug in matte black, presented on a polished concrete surface. The lighting is a three-point softbox setup designed to create soft, diffused highlights and eliminate harsh shadows. The camera angle is a slightly elevated45-degree shot to showcase its clean lines. Ultra-realistic, with sharp focus on the steam rising from the coffee. Square image.
大意:一張高分辨率、影棚布光的產品照:一隻極簡風的消光黑陶瓷咖啡杯,擺放在拋光的混凝土表面上。燈光爲三點柔光箱布光,營造柔和的高光並消除硬陰影。機位爲略擡高的45度角,凸顯其乾淨的線條。超寫實,對咖啡升起的蒸汽進行銳利對焦。方形圖像。
生成的圖片:

調用API生圖示例Python代碼:
from google import genai
from google.genai import types
from PIL import Image
from io import BytesIO
client = genai.Client()
# Generate an image from a text prompt
response = client.models.generate_content(
model="gemini-2.5-flash-image-preview",
contents="A high-resolution, studio-lit product photograph of a minimalist ceramic coffee mug in matte black, presented on a polished concrete surface. The lighting is a three-point softbox setup designed to create soft, diffused highlights and eliminate harsh shadows. The camera angle is a slightly elevated 45-degree shot to showcase its clean lines. Ultra-realistic, with sharp focus on the steam rising from the coffee. Square image.",
)
image_parts = [
part.inline_data.data
for part in response.candidates[0].content.parts
if part.inline_data
]
if image_parts:
image = Image.open(BytesIO(image_parts[0]))
image.save('product_mockup.png')
image.show()5.極簡主義與留白設計
非常適合爲網站、演示文稿或營銷材料創建將疊加文本的背景。
示例模板:
A minimalist composition featuring a single [subject] positioned in the [bottom-right/top-left/etc.] of the frame. The background is a vast, empty [color] canvas, creating significant negative space. Soft, subtle lighting. [Aspect ratio].
大意:一幅極簡構圖,畫面中只有一個[主體],位於畫面[右下角/左上角等]。背景是一整片空曠的[顏色]純色畫布,創造顯著留白。柔和、剋制的光線。[縱橫比]。
示例Prompt:
A minimalist composition featuring a single, delicate red maple leaf positioned in the bottom-right of the frame. The background is a vast, empty off-white canvas, creating significant negative space for text. Soft, diffused lighting from the top left. Square image.
大意:一幅極簡構圖:一片精緻的紅色楓葉位於畫面右下角。背景是一整片空曠的米白色純色畫布,爲文字留出大量留白。來自左上方的柔和、漫射光。方形圖像。
生成的圖片:

調用API生圖示例Python代碼:
from google import genai
from google.genai import types
from PIL import Image
from io import BytesIO
client = genai.Client()
# Generate an image from a text prompt
response = client.models.generate_content(
model="gemini-2.5-flash-image-preview",
contents="A minimalist composition featuring a single, delicate red maple leaf positioned in the bottom-right of the frame. The background is a vast, empty off-white canvas, creating significant negative space for text. Soft, diffused lighting from the top left. Square image.",
)
image_parts = [
part.inline_data.data
for part in response.candidates[0].content.parts
if part.inline_data
]
if image_parts:
image = Image.open(BytesIO(image_parts[0]))
image.save('minimalist_design.png')
image.show()6.連環畫/漫畫
通過關注清晰的場景描述,逐個面板創建引人入勝的視覺敘事,非常適合開發故事板、漫畫或任何形式的連續藝術。
示例模板:
A single comic book panel in a [art style] style. In the foreground, [character description and action]. In the background, [setting details]. The panel has a [dialogue/caption box] with the text "[Text]". The lighting creates a [mood] mood. [Aspect ratio].
大意:一格[藝術風格]的漫畫分鏡。前景中,[人物描述與動作]。背景中,[環境細節]。畫面包含一個[對白/旁白框],內容爲「[文本]」。用光營造[情緒]氛圍。[縱橫比]。
示例Prompt:
A single comic book panel in a gritty, noir art style with high-contrast black and white inks. In the foreground, a detective in a trench coat stands under a flickering streetlamp, rain soaking his shoulders. In the background, the neon sign of a desolate bar reflects in a puddle. A caption box at the top reads "The city was a tough place to keep secrets." The lighting is harsh, creating a dramatic, somber mood. Landscape.
大意:一格粗糲的黑色電影風漫畫,高反差黑白墨線。前景中,一位穿風衣的偵探站在閃爍的路燈下,雨水打溼了他的雙肩。背景中,一家荒涼酒吧的霓虹招牌倒映在水坑裏。頂部的旁白框寫着:「在這座城市,想守住祕密並不容易。」用光強硬,營造戲劇而沉鬱的氛圍。橫向畫幅。
生成的圖片:

調用API生圖示例Python代碼:
from google import genai
from google.genai import types
from PIL import Image
from io import BytesIO
client = genai.Client()
# Generate an image from a text prompt
response = client.models.generate_content(
model="gemini-2.5-flash-image-preview",
contents="A single comic book panel in a gritty, noir art style with high-contrast black and white inks. In the foreground, a detective in a trench coat stands under a flickering streetlamp, rain soaking his shoulders. In the background, the neon sign of a desolate bar reflects in a puddle. A caption box at the top reads \"The city was a tough place to keep secrets.\" The lighting is harsh, creating a dramatic, somber mood. Landscape.",
)
image_parts = [
part.inline_data.data
for part in response.candidates[0].content.parts
if part.inline_data
]
if image_parts:
image = Image.open(BytesIO(image_parts[0]))
image.save('comic_panel.png')
image.show()