谷歌nano banana官方最強(qiáng)Prompt模板來(lái)了!先收藏再說(shuō)
nano banana爆火!網(wǎng)上看到的那些超強(qiáng)效果圖是如何生成的呢?谷歌的官方Prompt模板終于來(lái)了!趕緊先收藏再說(shuō)!
這幾天爆火的nano banana,讓更多人體驗(yàn)到AI對(duì)圖像生成與處理的革命。
網(wǎng)友們玩瘋了,開(kāi)發(fā)出各類好玩的用法。
有用nano banana直接將照片生成手辦模型的:
有人腦洞大開(kāi),讓nano banana、Seedance、Kling聯(lián)手,將梵高和蒙娜麗莎、戴珍珠耳環(huán)的少女等名畫(huà)的人物,同時(shí)帶到了今天的紐約中央公園里,開(kāi)啟了一段浪漫的邂逅。
還有人使用nano banana反過(guò)來(lái)帶我們穿越回了中土世界。
視頻以第一人稱視角在馬車上疾馳,穿越迥異的區(qū)域,充滿了3A游戲大作般的史詩(shī)感。
看到網(wǎng)上流傳的nano banana生成的以假亂真、腦洞大開(kāi)的圖片和視頻,不知道你是否也開(kāi)始嘗試使用nano banana了呢?
同樣是生成圖片,有人一句話就出大片,有人寫(xiě)滿滿一屏幕詞也不對(duì)版。
谷歌為了幫助大家快速上手,親自下場(chǎng)為我們帶來(lái)了nano banana官方最強(qiáng)Prompt模板!
甭管你暫時(shí)是否理解為什么這樣寫(xiě),先收藏起來(lái)試著套模板就對(duì)了!
其中的關(guān)鍵是,你要像講故事一樣寫(xiě)場(chǎng)景。
基于nano banana(Gemini 2.5 Flash Image),這6套Prompt模板覆蓋了寫(xiě)實(shí)、貼紙、文字、產(chǎn)品、留白與分鏡,直接套用就能高質(zhì)量生圖!
寫(xiě)實(shí)攝影
寫(xiě)實(shí)感強(qiáng)的照片,是離不開(kāi)攝影師的精心巧思的。
要生成寫(xiě)實(shí)感強(qiáng)的圖像,你得像攝影師一樣思考。
你需要考慮機(jī)位、鏡頭類型、光線、細(xì)節(jié)。
將這些元素加入Prompt后,會(huì)引導(dǎo)模型朝更逼真的效果靠近。
即使你不是專業(yè)攝影師,只要按照自己的理解多嘗試,也大概率會(huì)比未說(shuō)明這些關(guān)鍵要素而直接生成的圖片的效果要好。
示例模板:
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.
模板大意:
一張寫(xiě)實(shí)風(fēng)格的[鏡頭類型],[主體],[動(dòng)作或表情],場(chǎng)景設(shè)定在[環(huán)境]。畫(huà)面由[光線描述]照明,營(yíng)造出[情緒]氛圍。使用[相機(jī)/鏡頭參數(shù)]拍攝,突出[關(guān)鍵材質(zhì)與細(xì)節(jié)]。圖像應(yīng)為[縱橫比]格式。
示例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 an 85mm portrait lens, resulting in a soft, blurred background (bokeh). The overall mood is serene and masterful. Vertical portrait orientation.
Prompt大意:
一張寫(xiě)實(shí)風(fēng)格的特寫(xiě)人像:一位日本老陶藝家,臉上被歲月與陽(yáng)光刻下的深深皺紋,露出溫暖而睿智的微笑。他正仔細(xì)端詳一個(gè)剛上釉的茶碗。場(chǎng)景位于他質(zhì)樸、陽(yáng)光充足的工作室。柔和的黃金時(shí)刻光線自窗外傾瀉而入,凸顯陶土的細(xì)膩紋理。使用85mm人像鏡頭拍攝,帶來(lái)柔和的背景虛化(bokeh)。整體氛圍寧?kù)o而老練。豎版人像構(gòu)圖。
生成的圖片:
一張寫(xiě)實(shí)風(fēng)格的日本老陶藝家特寫(xiě)人像
調(diào)用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()
注意,上述代碼需要你在第11行的contents中輸入Prompt,在第22行的image.save()中輸入你要保存時(shí)取的文件名。
后續(xù)其他調(diào)用API生圖的代碼僅需要修改這兩處即可
插圖與貼紙
在生成貼紙、圖標(biāo)、插圖、項(xiàng)目素材這類圖片時(shí),你需要先把風(fēng)格說(shuō)清楚。
如果有其他特殊需求,比如需要白底的話,你得明確在Prompt中寫(xiě)出。
示例模板:
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.
模板大意:
一張[風(fēng)格]的[主體]貼紙,具有[關(guān)鍵特征],采用[配色]。設(shè)計(jì)應(yīng)當(dāng)使用[線條風(fēng)格]與[明暗/上色風(fēng)格]。背景必須為白色。
示例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.
Prompt大意:
一張可愛(ài)風(fēng)(kawaii)貼紙:一只開(kāi)心的小熊貓戴著迷你竹葉帽,正咀嚼一片綠色竹葉。設(shè)計(jì)使用粗壯、干凈的描邊,簡(jiǎn)單的賽璐璐上色,配色鮮艷。背景必須為白色。
生成的圖片:
一張可愛(ài)風(fēng)(kawaii)的小熊貓貼紙
調(diào)用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()
文本渲染
nano banana在文本渲染這項(xiàng)任務(wù)上的表現(xiàn)是格外矚目的。
你只需要把文字內(nèi)容、字體風(fēng)格(用描述性的詞描述)、整體設(shè)計(jì)說(shuō)明白,就可以產(chǎn)出質(zhì)量很好的圖片了。
示例模板:
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].
模板大意:
為[品牌/概念]創(chuàng)建一張[圖像類型],其中包含文本「[要渲染的文本]」,使用[字體風(fēng)格]。設(shè)計(jì)應(yīng)為[風(fēng)格描述],并采用[配色方案]。
示例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.
Prompt大意:
為一家名為「The Daily Grind」的咖啡店設(shè)計(jì)一個(gè)現(xiàn)代、極簡(jiǎn)的Logo。文字使用干凈、粗體的無(wú)襯線字體。設(shè)計(jì)帶有一個(gè)簡(jiǎn)潔、風(fēng)格化的咖啡豆圖標(biāo),并與文字無(wú)縫融合。配色為黑白。
生成的圖片:
為一家名為「The Daily Grind」的咖啡店生成的現(xiàn)代極簡(jiǎn)風(fēng)Logo
調(diào)用API生圖示例Python代碼:
from?google?import?genai
from?google.genai?import?types
from?PIL?import?Imagefrom?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()
商業(yè)攝影
為品牌打廣告時(shí),打造一個(gè)干凈、專業(yè)的產(chǎn)品照通常是一個(gè)比較不錯(cuò)的選擇。
商業(yè)感=干凈背景+可控布光+展示賣(mài)點(diǎn)的機(jī)位。
示例模板:
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].
模板大意:
一張高分辨率、影棚布光的[產(chǎn)品描述]產(chǎn)品照,置于[背景表面/描述]上。燈光為[布光設(shè)置,如三點(diǎn)柔光箱布光],用于[照明目的]。機(jī)位為[角度類型],以展示[特定賣(mài)點(diǎn)]。超寫(xiě)實(shí),對(duì)[關(guān)鍵細(xì)節(jié)]進(jìn)行銳利對(duì)焦。[縱橫比]。
示例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 elevated 45-degree shot to showcase its clean lines. Ultra-realistic, with sharp focus on the steam rising from the coffee. Square image.
Prompt大意:
一張高分辨率、影棚布光的產(chǎn)品照:一只極簡(jiǎn)風(fēng)的消光黑陶瓷咖啡杯,擺放在拋光的混凝土表面上。燈光為三點(diǎn)柔光箱布光,營(yíng)造柔和的高光并消除硬陰影。機(jī)位為略抬高的 45 度角,凸顯其干凈的線條。超寫(xiě)實(shí),對(duì)咖啡升起的蒸汽進(jìn)行銳利對(duì)焦。方形圖像。
生成的圖片:
一張高分辨率、影棚布光的極簡(jiǎn)黑色陶瓷咖啡杯產(chǎn)品照
調(diào)用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()
極簡(jiǎn)主義與留白設(shè)計(jì)
極簡(jiǎn)主義留白設(shè)計(jì),非常適合為網(wǎng)站、演示或營(yíng)銷素材創(chuàng)建背景,方便后面再在圖片上疊加文字。
示例模板:
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].
模板大意:
一幅極簡(jiǎn)構(gòu)圖,畫(huà)面中只有一個(gè)[主體],位于畫(huà)面[右下角/左上角等]。背景是一整片空曠的[顏色]純色畫(huà)布,創(chuàng)造顯著留白。柔和、克制的光線。[縱橫比]。
示例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.
Prompt大意:
一幅極簡(jiǎn)構(gòu)圖:一片精致的紅色楓葉位于畫(huà)面右下角。背景是一整片空曠的米白色純色畫(huà)布,為文字留出大量留白。來(lái)自左上方的柔和、漫射光。方形圖像。
生成的圖片:
一幅極簡(jiǎn)構(gòu)圖:一片精致的紅色楓葉
調(diào)用API生圖示例Python代碼:
from?google?import?genai
from?google.genai?import?types
from?PIL?import?Imagefrom?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()
漫畫(huà)
你可以通過(guò)聚焦清晰的場(chǎng)景描述,一格一格地創(chuàng)作吸引人的視覺(jué)敘事。
這種方式非常適合做漫畫(huà)、故事板等圖片。
示例模板:
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].
模板大意:
一格[藝術(shù)風(fēng)格]的漫畫(huà)分鏡。前景中,[人物描述與動(dòng)作]。背景中,[環(huán)境細(xì)節(jié)]。畫(huà)面包含一個(gè)[對(duì)白/旁白框],內(nèi)容為「[文本]」。用光營(yíng)造[情緒]氛圍。[縱橫比]。
示例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.
Prompt大意:
一格粗糲的黑色電影風(fēng)漫畫(huà),高反差黑白墨線。前景中,一位穿風(fēng)衣的偵探站在閃爍的路燈下,雨水打濕了他的雙肩。背景中,一家荒涼酒吧的霓虹招牌倒映在水坑里。頂部的旁白框?qū)懼骸冈谶@座城市,想守住秘密并不容易?!褂霉鈴?qiáng)硬,營(yíng)造戲劇而沉郁的氛圍。橫向畫(huà)幅。
生成的圖片:
一格粗糲的黑色電影風(fēng)漫畫(huà)分鏡
調(diào)用API生圖示例Python代碼:
from?google?import?genai
from?google.genai?import?types
from?PIL?import?Imagefrom?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()
有了以上谷歌官方的強(qiáng)大模板,人人都可以自己創(chuàng)造出高質(zhì)量圖片了!
先收藏再說(shuō),有空了快去親自試試吧!
參考資料:
https://x.com/googleaistudio/status/1962957615262224511
新智元報(bào)道 編輯:艾倫
本文由人人都是產(chǎn)品經(jīng)理作者【新智元】,微信公眾號(hào):【新智元】,原創(chuàng)/授權(quán) 發(fā)布于人人都是產(chǎn)品經(jīng)理,未經(jīng)許可,禁止轉(zhuǎn)載。
題圖來(lái)自Unsplash,基于 CC0 協(xié)議。
- 目前還沒(méi)評(píng)論,等你發(fā)揮!