如何编写 Gemini Nano Banana 的 JSON 提示词 指南

把生图提示词写成 JSON:风格、技术规格、材质、环境、构图各占一个字段。结构化之后每一项都能单独改而不影响其他。

作者:小互 AI 小教程09-03 · 6 分钟⚑ 方法教程
AI 实操 · 实操库
一分钟速览
  • 核心结构讲怎么把画面拆成逻辑清晰的 JSON 段落。
  • 风格定义、技术规格、材质属性、环境因素、构图控制,五大类字段逐个说明。
  • 分离成独立对象的好处是精确控制——改材质不会连带改构图。
  • 语法必须规范,括号逗号引号错一个就整体失效,提交前先验证。
  • JSON 提示词这套思路本身是跨模型的,字段名换换就能搬。

✅ 如何编写 Gemini Nano Banana 的 JSON 提示词

(你需要这样做才能获得最佳效果)

🔹 CORE STRUCTURE(核心结构)

  • 将图像提示词组织成逻辑清晰的 JSON 部分,系统化构建
  • 使用正确语法:括号、逗号、引号必须规范
  • 将视觉元素分离成独立对象,便于精确控制
  • 提交前先验证 JSON 结构,避免错误

🔹 STYLE DEFINITION(风格定义)

  • 指定主要风格:"photorealistic", "cinematic", "documentary"
  • 定义渲染质量:"hyperrealistic", "detailed", "high-resolution"
  • 设置表面纹理:"authentic material properties", "natural wear patterns"
  • 控制光照:"natural", "studio quality", "dramatic", "soft ambient"

🔹 TECHNICAL SPECIFICATIONS(技术规格)

  • 相机参数:景深、焦距、光圈效果、曝光
  • 分辨率:"high definition minimum", "professional quality"
  • 渲染:抗锯齿、降噪、色彩深度标准
  • 物理精度:重力效果、结构可信度

🔹 MATERIAL PROPERTIES(材质属性)

  • 皮肤纹理:"pores, natural imperfections, ethnic diversity"
  • 布料细节:"thread patterns, realistic drape, wear indicators"
  • 表面:"scratches, patina, authentic oxidation, natural irregularities"
  • 透明度:"accurate refraction, surface interactions"

🔹 ENVIRONMENTAL FACTORS(环境因素)

  • 大气条件:距离雾霭、天气效果、湿度
  • 时间/季节:光照条件、季节元素、温度提示
  • 粒子效果:灰尘、湿气、大气深度

🔹 COMPOSITION CONTROLS(构图控制)

  • 透视:"natural human vision", "photography composition rules"
  • 构图:三分法、黄金比例、专业取景
  • 主体摆放:平衡、美观、符合审美

🔹 QUALITY KEYWORDS(质量关键词)

  • 包含:"hyperrealistic", "photographic quality", "natural lighting", "authentic textures"
  • 避免:"digital artifacts", "unrealistic proportions", "oversaturated colors"
  • 参考:"National Geographic", "professional photography standards"

可直接使用的 JSON 提示词模板

你只需要把对应的占位符替换成你的描述即可。这样可以保证结构清晰,符合 Gemini Nano Banana 的最佳实践。

{
  "core_structure": {
    "description": "简要说明整体图像目标",
    "elements": [
      {
        "object": "主体名称或元素",
        "attributes": ["关键特征1", "关键特征2"]
      }
    ]
  },
  "style_definition": {
    "primary_style": "photorealistic | cinematic | documentary",
    "rendering_quality": "hyperrealistic | detailed | high-resolution",
    "surface_textures": ["authentic material properties", "natural wear patterns"],
    "lighting": "natural | studio quality | dramatic | soft ambient"
  },
  "technical_specifications": {
    "camera_settings": {
      "depth_of_field": "数值/描述",
      "focal_length": "数值/描述",
      "aperture": "f/1.8 | f/5.6 等",
      "exposure": "数值/描述"
    },
    "resolution": "high definition minimum | professional quality",
    "rendering": ["anti-aliasing", "noise levels", "color depth standards"],
    "physics_accuracy": ["gravity effects", "structural believability"]
  },
  "material_properties": {
    "skin_textures": ["pores", "natural imperfections", "ethnic diversity"],
    "fabric_details": ["thread patterns", "realistic drape", "wear indicators"],
    "surfaces": ["scratches", "patina", "authentic oxidation", "natural irregularities"],
    "transparency": ["accurate refraction", "surface interactions"]
  },
  "environmental_factors": {
    "atmosphere": ["distance haze", "weather effects", "humidity"],
    "time_season": ["lighting conditions", "seasonal elements", "temperature cues"],
    "particles": ["dust", "moisture", "atmospheric depth"]
  },
  "composition_controls": {
    "perspective": "natural human vision | photography composition rules",
    "framing": "rule of thirds | golden ratio | professional positioning",
    "subject_placement": "balanced | aesthetically pleasing arrangement"
  },
  "quality_keywords": {
    "include": ["hyperrealistic", "photographic quality", "natural lighting", "authentic textures"],
    "avoid": ["digital artifacts", "unrealistic proportions", "oversaturated colors"],
    "reference": ["National Geographic", "professional photography standards"]
  }
}

⚡ 用法示例:

如果你要生成一张 “夜晚雨中霓虹灯下的未来城市街景”,你可以这样填:

{
  "core_structure": {
    "description": "夜晚的未来城市街景,霓虹灯照亮湿漉漉的街道",
    "elements": [
      {
        "object": "街道",
        "attributes": ["湿润", "反光", "未来风格"]
      },
      {
        "object": "建筑",
        "attributes": ["霓虹灯", "高层", "科幻氛围"]
      }
    ]
  },
  "style_definition": {
    "primary_style": "cinematic",
    "rendering_quality": "high-resolution",
    "surface_textures": ["authentic material properties"],
    "lighting": "dramatic"
  },
  "technical_specifications": {
    "camera_settings": {
      "depth_of_field": "深景深",
      "focal_length": "35mm",
      "aperture": "f/2.8",
      "exposure": "低曝光以突出霓虹灯"
    },
    "resolution": "professional quality",
    "rendering": ["anti-aliasing", "color depth standards"],
    "physics_accuracy": ["gravity effects"]
  },
  "environmental_factors": {
    "atmosphere": ["weather effects", "湿度", "雨雾"],
    "time_season": ["夜晚", "潮湿"],
    "particles": ["雨滴", "水雾"]
  },
  "composition_controls": {
    "perspective": "natural human vision",
    "framing": "rule of thirds",
    "subject_placement": "balanced"
  },
  "quality_keywords": {
    "include": ["photographic quality", "authentic textures"],
    "avoid": ["oversaturated colors"],
    "reference": ["professional photography standards"]
  }
}

最小可用 JSON 提示词模板

{
  "description": "简要描述你要生成的图像",
  "style": {
    "primary": "photorealistic | cinematic | documentary",
    "quality": "hyperrealistic | high-resolution",
    "lighting": "natural | dramatic | studio quality"
  },
  "technical": {
    "resolution": "professional quality",
    "camera": "focal length/景深/光圈 等"
  },
  "environment": {
    "time": "day | night | season",
    "effects": ["weather effects", "atmospheric depth"]
  },
  "composition": {
    "perspective": "natural human vision",
    "framing": "rule of thirds | golden ratio"
  },
  "quality_keywords": {
    "include": ["photographic quality", "authentic textures"],
    "avoid": ["digital artifacts", "oversaturated colors"]
  }
}

⚡ 示例:

如果你要生成 “白天阳光下的古老石桥”,可以这样写:

{
  "description": "阳光下的古老石桥,倒映在清澈的河面上",
  "style": {
    "primary": "photorealistic",
    "quality": "high-resolution",
    "lighting": "natural"
  },
  "technical": {
    "resolution": "professional quality",
    "camera": "35mm, f/5.6, 深景深"
  },
  "environment": {
    "time": "day",
    "effects": ["清澈的天空", "轻微雾气"]
  },
  "composition": {
    "perspective": "natural human vision",
    "framing": "rule of thirds"
  },
  "quality_keywords": {
    "include": ["photographic quality", "authentic textures"],
    "avoid": ["oversaturated colors"]
  }
}
来源
小互 AI 小教程小互 AI 小教程
↑ 正文结束
✓ 本篇全文免费开放

会员可复制、下载全文 Markdown,还能让你的 AI 订阅和提问。

📮 新解读第一时间进邮箱

读完觉得有用?留个邮箱,每篇新解读发布就送达,随时退订。