网易首页 > 网易号 > 正文 申请入驻

刚刚,谷歌放出Nano Banana六大正宗Prompt玩法,手残党速来

0
分享至


机器之心报道

机器之心编辑部

最近几天,谷歌 Nano Banana 可是被广大网友玩出了新花样。

比如制作精致可爱的产品照片:



来源:https://x.com/azed_ai/status/1962878353784066342

将 13 张图像合并为单个图像 :



来源:https://x.com/MrDavids1/status/1960783672665128970

给人一键换衣:



反正你想到的,想不到的脑洞,都被广大网友挖掘出来了。

但别忘了,这些效果可不是凭空生成的。背后真正的魔法,其实是提示词。网友们正是用一条条巧妙的提示词,把这个模型玩出了无限可能。

就在刚刚,谷歌官方公布了 Nano Banana 六个文本转图像提示:



原文链接:https://x.com/googleaistudio/status/1962957615262224511

根据这些提示,你可以进行以下操作:

  • 文本生成图像:通过简单或复杂的文本描述生成高质量图像。
  • 图像 + 文本生成图像(图像编辑):提供一张图片,并使用文本提示词添加、删除或修改图像元素,调整风格或颜色。
  • 多图合成与风格迁移:输入多张图片,合成新的场景,或将其中一张的风格迁移到另一张上。
  • 迭代式优化:通过对话逐步优化图像,每次做小调整,直到达到理想效果。
  • 文本渲染:生成包含清晰、布局合理文字的图像,适用于 logo、图表、海报等视觉创作。

谷歌强调,这些指令可以最大限度的发挥 Nano Banana 的图像生成能力。

接下来,我们看看这些提示具体包含的内容:

1、照片级写实场景

对于写实风格的图像,要像摄影师一样思考。prompt 中要提及机位角度、镜头类型、光线以及细节描写,这样可以引导模型生成更逼真的效果。

模板如下:

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.

代码块如下:

from google import genaifrom google.genai import typesfrom PIL import Imagefrom io import BytesIOclient = genai.Client()# Generate an image from a text promptresponse = 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()

下图使用的完整 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.」



2、风格化插画与贴纸

在制作贴纸、图标或项目素材时,在 prompt 中明确说明需要的风格;另外,如果需要白色背景,记得在 prompt 中提出来。

模板如下:

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.

代码块如下所示:

from google import genaifrom google.genai import typesfrom PIL import Imagefrom io import BytesIOclient = genai.Client()# Generate an image from a text promptresponse = 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()

下图使用的完整 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.」



3、图上添加精准的文字

Gemini 擅长渲染文字。此类任务最好在 prompt 中明确说明文字内容、字体风格(用描述性的方式),以及整体设计。

模板如下:

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].

代码块如下:

from google import genaifrom google.genai import typesfrom PIL import Imagefrom io import BytesIOclient = genai.Client()# Generate an image from a text promptresponse = 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()

下图使用的完整 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. 」



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].

代码块如下:

from google import genaifrom google.genai import typesfrom PIL import Imagefrom io import BytesIOclient = genai.Client()# Generate an image from a text promptresponse = 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()

下图使用的完整 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.」



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].

代码块如下:

from google import genaifrom google.genai import typesfrom PIL import Imagefrom io import BytesIOclient = genai.Client()# Generate an image from a text promptresponse = 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()

下图使用的完整 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.」



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].

代码块如下:

from google import genaifrom google.genai import typesfrom PIL import Imagefrom io import BytesIOclient = genai.Client()# Generate an image from a text promptresponse = 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()

下图使用的完整 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 模板学下来,你大概就能掌握使用 Nano Banana 的精髓了。

不过,用户在使用中还有其他困扰,比如「在对已有图像进行编辑时,模型往往会返回一张一模一样的图像。」



另外有人指出了 Nano Banana 在编辑时存在的更多问题,「它在一致性上表现不如 Qwen 和 Kontext Pro,也不够稳定,特别是在持续对话过程中。对于文本转图像,直接用 Imagen 会更好且更可控。」



大家在使用 Nano Banana 的过程中有哪些独到的心得与技巧?欢迎在评论区分享出来。

特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。

Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.

相关推荐
热点推荐
随着樊振东4-2逆转王楚钦,产生了两大不可思议:连续4届杀进决赛

随着樊振东4-2逆转王楚钦,产生了两大不可思议:连续4届杀进决赛

侃球熊弟
2025-11-15 13:24:14
用AI假图骗“仅退款”,这是今年双十一最脏的一幕。

用AI假图骗“仅退款”,这是今年双十一最脏的一幕。

数字生命卡兹克
2025-11-14 09:22:51
羁绊!樊振东单打赢了,但他与王楚钦的全运会对决仍未结束

羁绊!樊振东单打赢了,但他与王楚钦的全运会对决仍未结束

澎湃新闻
2025-11-15 16:30:29
高市早苗涉台错误言论,在日本国内遭到多方质疑

高市早苗涉台错误言论,在日本国内遭到多方质疑

环球时报新闻
2025-11-15 14:08:40
中国籍男子涉连环性侵案,在英国被判终身监禁

中国籍男子涉连环性侵案,在英国被判终身监禁

扬子晚报
2025-11-15 13:46:02
朝媒狠批日本:“千年宿敌”

朝媒狠批日本:“千年宿敌”

中国日报网
2025-11-15 10:51:02
台名嘴狠批高市早苗:就凭你日本?无条件投降国

台名嘴狠批高市早苗:就凭你日本?无条件投降国

看看新闻Knews
2025-11-15 15:12:08
赵薇49岁突传逝世消息,胃癌去世传闻5个月前已证实

赵薇49岁突传逝世消息,胃癌去世传闻5个月前已证实

领悟看世界
2025-11-15 01:44:47
中国向全球郑重通告,对日反击已划下红线,越线必遭迎头痛击

中国向全球郑重通告,对日反击已划下红线,越线必遭迎头痛击

娱乐圈的笔娱君
2025-11-14 05:38:40
江苏连云港一公司女职员陪酒后死亡,事后家属得知死者体内被检出男性精液,申请公开死因被拒后起诉警方

江苏连云港一公司女职员陪酒后死亡,事后家属得知死者体内被检出男性精液,申请公开死因被拒后起诉警方

观威海
2025-11-14 16:30:07
就在今天!樊振东4-2王楚钦,创造全运会史无前例66年纪录,奇迹

就在今天!樊振东4-2王楚钦,创造全运会史无前例66年纪录,奇迹

侃球熊弟
2025-11-15 13:58:24
钟嘉欣婚变风波升级!曝其签婚前协议被骗婚,狂接工作争抚养权

钟嘉欣婚变风波升级!曝其签婚前协议被骗婚,狂接工作争抚养权

萌神木木
2025-11-15 12:42:02
郑丽文接受日媒专访倡导“一中保台”,反对大幅增加军费

郑丽文接受日媒专访倡导“一中保台”,反对大幅增加军费

海峡导报社
2025-11-15 08:03:07
11月15日俄乌最新:转折点来了?

11月15日俄乌最新:转折点来了?

西楼饮月
2025-11-15 13:27:48
洪秀柱痛批高市早苗涉台谬论:台海的事,关你日本人什么事?

洪秀柱痛批高市早苗涉台谬论:台海的事,关你日本人什么事?

环球网资讯
2025-11-15 14:34:38
继三大航司后,多家航司同日发布通知:赴日机票可免费退改签

继三大航司后,多家航司同日发布通知:赴日机票可免费退改签

界面新闻
2025-11-15 17:09:58
日本野心藏不住了?一旦开战,我军将如何吊打日军?

日本野心藏不住了?一旦开战,我军将如何吊打日军?

兵国大事
2025-11-15 00:45:04
大反转!狗主人上门打砸遭反杀续:重要证据出现,谁杀了谁不好说

大反转!狗主人上门打砸遭反杀续:重要证据出现,谁杀了谁不好说

吭哧有力
2025-11-14 10:22:35
中金:国内房价从2021年6月至今已下跌35%,但还未止跌

中金:国内房价从2021年6月至今已下跌35%,但还未止跌

知识圈
2025-11-15 14:38:45
男子线上下单6台苹果手机,骑手取货后连夜出逃,平台:已垫付相关款项

男子线上下单6台苹果手机,骑手取货后连夜出逃,平台:已垫付相关款项

极目新闻
2025-11-15 12:38:03
2025-11-15 17:40:49
机器之心Pro incentive-icons
机器之心Pro
专业的人工智能媒体
11720文章数 142505关注度
往期回顾 全部

科技要闻

撕掉流量外衣,小米还剩什么?

头条要闻

山西"狗咬人被摔死"案狗主家10人进院 喊"弄死你全家"

头条要闻

山西"狗咬人被摔死"案狗主家10人进院 喊"弄死你全家"

体育要闻

樊振东和他的尖子班 勇闯地表最强乒乓球赛

娱乐要闻

钟嘉欣婚变风波升级!被骗婚?

财经要闻

小米之“惑”

汽车要闻

限时10.59万起 新款星海S9将11月19日上市

态度原创

手机
数码
健康
游戏
教育

手机要闻

17是个好名字!iPhone 17/小米17系列都大获成功:首月销量大涨超20%

数码要闻

曝疑似小米Watch S5将支持UWB技术 采用表冠设计

金振口服液助力科学应对呼吸道疾病

高玩招魂《星鸣特攻》私服成功 宣传片火速被下架

教育要闻

山东卷和重庆卷打起来了?

无障碍浏览 进入关怀版