喜大普奔!谷歌nano banana官方Prompt模板发布,附完整代码示例
近日,谷歌发布了 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 descri喜大ption], 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 genaifrom googl普奔e.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 lig!谷ht 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.datafor part in response.candidates[0].content.partsif 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.
大意:一张[风格]的[主体]贴纸,具有[关键特征],采用[配色]。设计应当使歌n用[线条风格]与[明暗/上色风格]。背景必须为白色。
示例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 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&annbsp;features bold, clean outlines, simple cel-shading, and a vibrant color palette. The background must be white.",)image_parts = [part.inline_data.datafor part in response.candidates[0].content.partsif 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 seamlesslo y integrated with the text. The color scheme is black and white.
大意:为一家名为「The Daily Grind」的咖啡店设计一个现代、极简的Logo。文字使用干净、粗体的无衬线字体。设计带有一个简洁、风格化的咖啡豆图标,并与文字无缝融合。配色为黑白。
生成的图片:
为一家名为「The Daily Grind」的咖啡店生成的现代极简风Logo
调用API生图示例Python代码:
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&banbsp;coffee bean seamlessly integrated with the text. The color scheme is black and white.",)image_parts = [part.inline_data.datafor part in response.candidates[0].content.partsif 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 cenaramic 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 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 cernaamic 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.datafor part in response.candidates[0].content.partsif 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 genaifrom google.genai import typesfrom PIL import Imagefrom io import BytesIOclient = genai.Client()# Generate an image from a text promptresponse = clienPrt.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.datafor part in response.candidates[0].content.partsif 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, [charaomcter 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 genaifrom google.genai import typesfrom PIL import Imagefrom io import BytesIOclient =pt 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.datafor part in response.candidates[0].content.partsif part.inline_data]if image_parts:image = Image.open(BytesIO(image_parts[0]))image.save('comic_panel.png')image.show()(责任编辑:技术前沿)
-
云梦级3月5日云梦级消息,今天上午,阿里巴巴CEO吴泳铭在内部邮件中回应林俊旸离职一事。他表示,将继续坚持开源模型策略,持续加大AI研发投入和吸纳优秀人才力度。 邮件全文内容如下: 各位通义实验室同学...[详细]
-
云梦级11月21日云梦级消息,美国半导体行业协会(SIA)11 月 21 日发布公告,宣布 AMD 董事长兼首席执行官苏姿丰当选为该协会董事会主席。 美国半导体行业协会(SIA)成立于 1977 年,...[详细]
-
DeepMind 携手耶鲁大学发布 C2S-Scale27B 模型:AI 发现癌症治疗新途径
谷歌 DeepMind 近日与耶鲁大学合作,推出了一款名为 C2S-Scale27B 的全新人工智能模型。该模型基于开放的 Gemma 模型系列 构建,专注于复杂的 单细胞分析 ,并成功发现了一条 此...[详细]
-
快科技3月1日消息,国家安全部官方发文,提醒企业对于数据托管切莫“托而不管”,并特别提到了境外黑客攻击某电商平台数据库的案例。 如今,不少企业选择将数据存储在数据托管平台,降本增效,省心省力,但这也潜...[详细]
-
软银豪掷225亿美元加码OpenAI,AI音乐与超级融资计划全面提速
在人工智能竞赛进入深水区的关键时刻,软银集团再次以惊人的资本魄力押注未来。近日,软银董事会正式批准向OpenAI追加225亿美元(约合1600亿元人民币)投资,使其对这家AI巨头的总投资额飙升至325...[详细]
-
Soul语音模型SoulX-Podcast震撼发布:90分钟无中断播客生成,AI语音革命再升级
近日,AI语音领域迎来重大创新——Soul推出的SoulX-Podcast语音模型,以其革命性功能迅速成为行业焦点。该模型专为播客式内容设计,实现了高真实度的语音生成,支持长时段、多说话人、多语种交互...[详细]
-
OpenAI Sora 引爆 App Store“山寨潮”:30万次下载!苹果审核机制遭质疑
OpenAI 推出仅限邀请的 Sora 视频生成移动应用后,苹果 App Store 随即被大量假冒应用攻陷,这些应用盗用“Sora”甚至抢先使用“Sora2”的名称,成功绕过苹果的审核机制并公然上架...[详细]
-
大数据公司Palantir获得美国陆军一份价值1.14亿美元合同
12月23日消息,据国外媒体报道,大数据公司Palantir获得美国陆军一份价值1.14亿美元的合同。 2019年12月,美国陆军与Palantir签署了一份价值4.58亿美元的合同,用于开发全面的数...[详细]
-
宇树科技IPO冲刺新动态:更名“去地域化”,募资项目紧密配合未来战略
据证券时报报道,机器人制造商宇树科技(Unitree Robotics)的首次公开募股(IPO)进程近日取得新进展。其辅导机构中信证券已向监管机构提交了 “辅导工作进展情况报告(第一期)” 。 报告中...[详细]
-
云梦级3月5日云梦级消息,2026年3月5日,高途集团(NYSE:GOTU)发布2025财年第四季度及全年财务报告。财报显示,截至2025年12月31日,高途在第四季度实现收入16.9亿元,同比增长2...[详细]
- https://www.selfsufficientish.com/main/?s=谷歌快排操作流程【tg:seogoogle987】,P07
- https://www.remit.co.jp/vi/?s=谷歌快排操作流程【tg:seogoogle987】,sTO
- https://www.tailoy.com.pe/catalogsearch/result/?q=谷歌快排操作流程【tg:seogoogle987】,uOo
- https://www.tmtpost.com/search?q=谷歌快排操作流程【tg:seogoogle987】,75D
- https://www.tycoonstory.com/?s=谷歌快排操作流程【tg:seogoogle987】,ujX
- https://www.remit.co.jp/pt/?action=CHECK&s=谷歌快排操作流程【tg:seogoogle987】,FAh
- https://dict.naver.com/dict.search?dicQuery&query=谷歌快排操作流程【tg:seogoogle987】449
- https://www.impactpool.org/search/?type=79&q=谷歌快排操作流程【tg:seogoogle987】jce
- https://www.roberthalf.com/us/en/jobs/all/谷歌快排操作流程【tg:seogoogle987】mEs
- https://www.soccerbible.com/search?q=谷歌快排操作流程【tg:seogoogle987】,Y2l

男生吃口红是什么梗
美国与马斯克的 xAI 达成协议,显示与特朗普的关系改善
谷歌 DeepMind 联手核聚变初创企业,共同探索清洁能源的未来
小米注册小米汽车商标# 这一次是真小米注册
Kafka集群的搭建
