两种提示词写法,生成影棚级食物广告图
一条提示词生成悬浮在空中的食物广告图,效果直逼专业影棚。文本模板和 JSON 结构两种写法对照给出。
- 学完能用一条提示词生成悬浮食物广告图,效果直逼专业影棚拍摄。
- 两种写法各有场景:文本模板通用性好,JSON 结构精度高。
- 写法一文本模板逐段解释,知道每段管什么才改得动。
- 写法二 JSON 结构适合能读结构化指令的接口,字段对应关系列清。
- 变量替换表统一两种写法的槽位,换品类直接填。
学完这篇,你能用一条提示词生成悬浮在空中的食物广告图,效果直逼专业影棚拍摄。还能掌握文本模板和 JSON 结构两种写法,根据场景灵活切换。
先看效果。
效果展示


第一张是通用文本模板的效果,食物悬浮在空中,酥脆质感、自然高光、微小碎屑带来动态感。第二张是 JSON 结构提示词的效果,巧克力饼干对半劈开,焦糖拉丝连接两半,细节层次更丰富。
两张图都由 AI 一次性生成,下面拆解这两种写法的完整结构。
用什么工具
推荐使用 Gemini(Nano Banana Pro),它对食物材质、光影细节的理解特别到位,生成的高光和纹理很真实。ChatGPT GPT-4o 也能用,对构图的把控同样不错。
在 Google AI Studio 或 ChatGPT 对话框里直接粘贴提示词即可。
两种写法对比
开始之前,先说清楚这两种写法各自适合什么场景。
文本模板 JSON 结构 格式 一段自然语言,逗号分隔 JSON 键值对,层级分明 上手难度 低,改几个词就能用 中,需要理解 JSON 格式 可控性 一般,AI 自由发挥空间大 高,每个细节都有明确指令 适合场景 快速出图、批量生产 精确控制画面、需要复杂层次 修改效率 在长句中找位置改,容易遗漏 找到对应字段直接改,清晰明了 兼容性 所有 AI 工具都支持 部分工具对 JSON 解析更好(如 Gemini)
简单说:要快,用文本模板;要精,用 JSON 结构。日常批量出食物广告图,文本模板足够。需要精确控制内馅层次、焦糖拉丝角度这类复杂细节时,JSON 结构更合适。
写法一:文本模板
英文原文(直接复制使用)
Ultra-detailed studio food photography, [FOOD NAME] suspended in mid-air, crispy golden texture with natural highlights and realistic surface detail. One piece slightly opened to reveal [FILLING INGREDIENT] with visible texture. Scattered few ingredient elements and tiny crumbs around for subtle dynamic feel. Clean [BACKGROUND COLOR] gradient background with soft bokeh. Soft diffused studio lighting from front, gentle shadows, sharp focus, shallow depth of field. Professional commercial food advertising style, photorealistic, clean composition, 8K.
中文对照
超细节影棚级食物摄影,[食物名称] 悬浮在半空中,酥脆的金黄色质地,具有自然的高光和逼真的表面细节。其中一块略微打开,以展示[内馅成分]及其可见的纹理。周围散落着少量食材元素和微小碎屑,以营造微妙的动态感。干净的[背景颜色]渐变背景,带有柔和的焦外成像(bokeh)。来自前方的柔和漫射影棚照明,柔和的阴影,锐利的焦点,浅景深。专业商业食物广告风格,照片级真实感,干净的构图,8K。
负面提示词(可选)
blurry, low quality, burnt food, cluttered composition, repeated food, text, watermark, plates, cutlery, hands
负面提示词告诉 AI "不要生成什么"。burnt food 防止食物看起来焦糊,cluttered composition 避免构图杂乱,plates, cutlery, hands 确保画面里只有食物本身。
结构拆解
这条提示词分五个部分,每个部分各管一件事:
部分 英文关键词 作用 场景定义 Ultra-detailed studio food photography 告诉 AI 这是影棚食物摄影 主体状态 suspended in mid-air, crispy golden texture 食物悬浮 + 表面质感 内部展示 One piece slightly opened to reveal... 露出内馅,增加层次感 动态细节 Scattered few ingredient elements and tiny crumbs 碎屑飞散,营造动感 摄影参数 soft bokeh, shallow depth of field, 8K 焦外虚化、浅景深、高清
核心变量只有三个:[FOOD NAME]、[FILLING INGREDIENT]、[BACKGROUND COLOR]。替换这三个位置,就能生成不同食物的广告图。
写法二:JSON 结构
英文原文(直接复制使用)
{
"image_type": "studio food photography",
"aspect_ratio": "1:1",
"resolution_target": "8K",
"background": {
"color": "solid deep blue",
"texture": "smooth gradient studio backdrop",
"details": "clean minimal background with no patterns or objects"
},
"main_subject": {
"object": "chocolate-covered dessert cookie",
"state": "split into two halves and suspended in mid-air",
"coating": {
"material": "milk chocolate",
"surface": "smooth glossy finish",
"toppings": "small embedded crunchy bits visible on the chocolate shell"
},
"interior_layers": [
{
"layer": "crumbly biscuit or cake base",
"color": "light beige",
"texture": "soft crumb structure"
},
{
"layer": "caramel filling",
"color": "rich golden-orange",
"texture": "thick glossy caramel",
"behavior": "stretching between the two halves forming elastic strands"
},
{
"layer": "nut pieces",
"color": "light tan",
"texture": "rough chopped pieces embedded in caramel"
}
]
},
"composition": {
"layout": "two halves floating diagonally opposite each other",
"orientation": "top half slightly tilted upward, bottom half angled downward",
"center_focus": "elastic caramel strand stretching between the halves",
"negative_space": "ample empty blue background surrounding the subject"
},
"dynamic_elements": {
"floating_particles": ["small crumbs", "tiny nut fragments"],
"motion_effect": "crumbs scattered around the breaking point"
},
"lighting": {
"type": "soft studio lighting",
"direction": "front and slightly above",
"highlights": "subtle highlights on chocolate coating and glossy caramel",
"shadows": "soft minimal shadows under the floating halves"
},
"focus": {
"depth_of_field": "shallow",
"sharp_area": "caramel stretch, chocolate shell texture, nut pieces",
"background_blur": "slight blur on background"
},
"color_palette": {
"primary": ["milk chocolate brown", "caramel orange", "beige biscuit"],
"background": "deep blue",
"accent": "light tan nut pieces"
},
"style": ["hyper-realistic", "commercial food advertising", "high detail texture", "clean studio composition"]
}
中文对照(帮助理解,不需要复制)
图像类型:影棚食物摄影
画面比例:1:1
分辨率:8K
背景:纯深蓝色,光滑渐变影棚背景,干净无图案
主体:巧克力包衣饼干,对半劈开悬浮在空中
外层:牛奶巧克力,光滑亮面,表面嵌有小脆粒
内部层次:
- 酥碎饼干底,浅米色,柔软碎屑结构
- 焦糖夹心,浓郁金橙色,浓稠有光泽,在两半之间拉丝成弹性丝线
- 坚果碎,浅棕色,粗切碎块嵌在焦糖中
构图:两半对角线悬浮,焦糖拉丝是画面中心
动态元素:小碎屑和坚果碎片漂浮
灯光:正前方偏上的柔光,巧克力和焦糖表面有微妙高光
焦点:浅景深,焦糖拉丝和巧克力壳纹理锐利对焦
配色:巧克力棕 + 焦糖橙 + 饼干米色,深蓝背景
风格:超写实、商业食物广告、高细节纹理、干净影棚构图
层级拆解
JSON 结构的优势是每个维度独立控制,改一个不影响其他的:
顶层字段 控制什么 改它能做什么 background 背景 换颜色、换材质 main_subject 食物主体 换食物、换内馅层次 composition 构图 调整悬浮角度、画面布局 dynamic_elements 动态元素 调整飞散碎屑的种类 lighting 灯光 改方向、改亮度、改色温 focus 焦点 调整哪里清晰哪里模糊 color_palette 配色 统一调整画面色彩 style 整体风格 从写实改成插画等
interior_layers 是 JSON 结构最强的地方。它用数组逐层描述食物的内部结构,每一层有自己的颜色、纹理和行为。文本模板里只能写"展示内馅",JSON 能精确控制"第一层是饼干底、第二层是焦糖拉丝、第三层是坚果碎"。
变量替换表
不管用哪种写法,核心要替换的变量是一样的:
变量 说明 示例 [FOOD NAME] / main_subject.object 食物名称 sushi rolls, macarons, croissant [FILLING INGREDIENT] / interior_layers 内馅/内部成分 raw fish and rice, cream filling, buttery layers [BACKGROUND COLOR] / background.color 背景颜色 deep green, soft pink, warm beige 负面提示词中的食物类型 根据场景调整 burnt sushi → undercooked sushi coating 外层包裹材质 chocolate → sesame crust, pastry shell floating_particles 飘散的微小元素 sesame seeds, powdered sugar, flour dust
实战示例
以下 5 个案例全部使用文本模板格式,替换变量后可直接复制使用。
案例一:日式寿司(深绿背景)
Ultra-detailed studio food photography, premium sushi rolls suspended in mid-air, crispy nori wrap with natural highlights and realistic rice texture detail. One piece slightly opened to reveal fresh raw salmon, avocado slices and seasoned rice with visible grain texture. Scattered few sesame seeds, thin ginger slices and tiny rice grains around for subtle dynamic feel. Clean deep green gradient background with soft bokeh. Soft diffused studio lighting from front, gentle shadows, sharp focus, shallow depth of field. Professional commercial food advertising style, photorealistic, clean composition, 8K.
中文对照:
超细节影棚级食物摄影,高级寿司卷悬浮在半空中,酥脆的海苔外皮带有自然高光和逼真的米饭纹理细节。其中一块略微打开,展示新鲜三文鱼生、牛油果片和调味米饭的颗粒纹理。周围散落着少量芝麻、薄姜片和微小米粒,营造微妙的动态感。干净的深绿色渐变背景,带有柔和焦外成像。来自前方的柔和漫射影棚照明,柔和阴影,锐利焦点,浅景深。专业商业食物广告风格,照片级真实感,干净构图,8K。

深绿背景呼应海苔的颜色,整体画面有日式料理的高级感。散落的芝麻和米粒让画面不会太"干净"而显得假。
案例二:法式马卡龙(浅粉背景)
Ultra-detailed studio food photography, colorful French macarons suspended in mid-air, smooth delicate shell with natural highlights and realistic cracked edge detail. One piece slightly opened to reveal rich buttercream ganache filling with visible creamy texture. Scattered few macaron shell crumbs, powdered sugar particles and tiny pistachio bits around for subtle dynamic feel. Clean soft pink gradient background with soft bokeh. Soft diffused studio lighting from front, gentle shadows, sharp focus, shallow depth of field. Professional commercial food advertising style, photorealistic, clean composition, 8K.
中文对照:
超细节影棚级食物摄影,彩色法式马卡龙悬浮在半空中,光滑细腻的外壳带有自然高光和逼真的裂纹边缘细节。其中一块略微打开,展示浓郁的奶油甘纳许夹心及其可见的奶油质感。周围散落着少量马卡龙外壳碎屑、糖粉颗粒和微小开心果碎,营造微妙的动态感。干净的浅粉色渐变背景,带有柔和焦外成像。来自前方的柔和漫射影棚照明,柔和阴影,锐利焦点,浅景深。专业商业食物广告风格,照片级真实感,干净构图,8K。

马卡龙的关键词是 smooth delicate shell(光滑细腻外壳)和 cracked edge detail(裂纹边缘细节),这两个细节让马卡龙看起来真实而不是塑料感。浅粉背景配彩色马卡龙,甜美但不腻。
案例三:牛角面包(暖米色背景)
Ultra-detailed studio food photography, freshly baked croissant suspended in mid-air, crispy golden flaky texture with natural highlights and realistic layered surface detail. One piece slightly opened to reveal soft buttery laminated layers with visible airy honeycomb structure. Scattered few golden flaky crumbs, flour dust and tiny butter fragments around for subtle dynamic feel. Clean warm beige gradient background with soft bokeh. Soft diffused studio lighting from front, gentle shadows, sharp focus, shallow depth of field. Professional commercial food advertising style, photorealistic, clean composition, 8K.
中文对照:
超细节影棚级食物摄影,新鲜出炉的牛角面包悬浮在半空中,酥脆金黄的片状质地带有自然高光和逼真的分层表面细节。其中一块略微打开,展示柔软的黄油千层结构及其可见的蜂窝状气孔。周围散落着少量金色酥皮碎屑、面粉粉尘和微小黄油碎片,营造微妙的动态感。干净的暖米色渐变背景,带有柔和焦外成像。来自前方的柔和漫射影棚照明,柔和阴影,锐利焦点,浅景深。专业商业食物广告风格,照片级真实感,干净构图,8K。

牛角面包的灵魂是层次感。flaky texture(片状质地)描述外皮的酥脆层叠,airy honeycomb structure(蜂窝状气孔)描述内部的松软空气感。暖米色背景让整个画面有烘焙房的温暖氛围。
案例四:墨西哥卷饼(橙红背景)
Ultra-detailed studio food photography, loaded Mexican burrito suspended in mid-air, crispy golden tortilla wrap with natural highlights and realistic charred grill marks detail. One piece slightly opened to reveal seasoned ground beef, melted cheddar cheese, fresh salsa and black beans with visible chunky texture. Scattered few cilantro leaves, chili flakes and tiny tortilla chip crumbs around for subtle dynamic feel. Clean warm orange-red gradient background with soft bokeh. Soft diffused studio lighting from front, gentle shadows, sharp focus, shallow depth of field. Professional commercial food advertising style, photorealistic, clean composition, 8K.
中文对照:
超细节影棚级食物摄影,料满满的墨西哥卷饼悬浮在半空中,酥脆金黄的饼皮带有自然高光和逼真的炭烤纹路细节。其中一块略微打开,展示调味牛肉碎、融化的切达芝士、新鲜莎莎酱和黑豆及其可见的颗粒质感。周围散落着少量香菜叶、辣椒碎和微小玉米片碎屑,营造微妙的动态感。干净的暖橙红色渐变背景,带有柔和焦外成像。来自前方的柔和漫射影棚照明,柔和阴影,锐利焦点,浅景深。专业商业食物广告风格,照片级真实感,干净构图,8K。

卷饼的看点是"料多到溢出来"。loaded(料满满的)这个词让 AI 知道要塞很多馅料。charred grill marks(炭烤纹路)增加真实感。橙红色暖色背景和墨西哥风味很搭,视觉上就能感受到辣味。
案例五:草莓蛋糕(奶白背景)
Ultra-detailed studio food photography, strawberry layer cake slice suspended in mid-air, crispy golden sponge texture with natural highlights and realistic fluffy surface detail. One piece slightly opened to reveal fresh strawberry slices, whipped cream layers and strawberry jam with visible fruit seed texture. Scattered few freeze-dried strawberry pieces, cake crumbs and tiny powdered sugar particles around for subtle dynamic feel. Clean creamy white gradient background with soft bokeh. Soft diffused studio lighting from front, gentle shadows, sharp focus, shallow depth of field. Professional commercial food advertising style, photorealistic, clean composition, 8K.
中文对照:
超细节影棚级食物摄影,草莓夹层蛋糕切片悬浮在半空中,酥松金黄的海绵质地带有自然高光和逼真的蓬松表面细节。其中一块略微打开,展示新鲜草莓片、奶油夹层和草莓酱及其可见的果籽纹理。周围散落着少量冻干草莓碎、蛋糕碎屑和微小糖粉颗粒,营造微妙的动态感。干净的奶白色渐变背景,带有柔和焦外成像。来自前方的柔和漫射影棚照明,柔和阴影,锐利焦点,浅景深。专业商业食物广告风格,照片级真实感,干净构图,8K。

草莓蛋糕的细节在于层次分明:海绵蛋糕、奶油、草莓片、草莓酱,每一层都有不同的质感。fruit seed texture(果籽纹理)这个小细节让草莓看起来很真实。奶白背景干净素雅,适合甜品店的宣传物料。
操作指南
第一步:打开 Google AI Studio 选择 Gemini 模型,或者打开 ChatGPT 使用 GPT-4o。两个都支持直接粘贴提示词生成图片。
第二步:决定用哪种写法。快速出图选文本模板(从 5 个案例里挑一个最接近的改),精确控制画面选 JSON 结构。
第三步:替换核心变量。文本模板只需要改三个方括号里的内容:食物名称、内馅成分、背景颜色。JSON 结构需要修改 main_subject 和 background 两个字段。
第四步:粘贴英文提示词到 AI 工具的输入框,点生成。如果用文本模板,可以在提示词后面加上负面提示词(用 Negative prompt: 开头),效果会更稳定。
第五步:多跑几次。食物广告图对细节要求高,AI 生成有随机性,3-5 次中通常能出一张构图和质感都满意的。重点看三个地方:食物表面的光泽是否自然、内馅的纹理是否清晰、碎屑的分布是否合理。
两种写法可以混合使用:先用文本模板快速确认构图方向,满意后再用 JSON 结构精细调整内部层次和灯光细节。
本文参考:ShaHid WaNii 的推文 | https://x.com/meng_dagg695/status/2031019073367363724
