HiHuo
首页
博客
手册
工具
关于
首页
博客
手册
工具
关于
  • Stable Diffusion 完整实战

    • Stable Diffusion完全教程 - AI绘画从入门到精通 (2024最新)
    • 第一章: Stable Diffusion安装部署
    • 第二章: Stable Diffusion模型详解
    • 第三章: Stable Diffusion提示词技巧
    • 第四章: Stable Diffusion参数调优
    • 第五章: ControlNet精准控制
    • 第六章: Stable Diffusion实战案例

第三章: Stable Diffusion提示词技巧

提示词基础语法

基本结构

Prompt = 主体 + 风格 + 环境 + 画质 + 其他

示例:
a beautiful girl,           # 主体
anime style,               # 风格  
cherry blossoms background, # 环境
8k uhd, highly detailed,   # 画质
soft lighting              # 其他

权重控制

语法:

(keyword)        # 权重×1.1
((keyword))      # 权重×1.21  
(keyword:1.5)    # 权重×1.5
[keyword]        # 权重×0.9
{keyword}        # 权重×1.05(某些UI)

示例:
(beautiful face:1.3)    # 强调美丽面容
((masterpiece))         # 双重强调杰作
[background:0.8]        # 弱化背景

推荐范围:

  • 1.0-1.3: 轻度强调
  • 1.3-1.5: 中度强调(常用)
  • 1.5-2.0: 重度强调
  • 2.0: 容易出问题,慎用

关键词组合

AND(并列):

red hair AND blue eyes
# 红发 和 蓝眼

girl, smile, long hair
# 逗号分隔 = AND

OR(或):

[red|blue|green] dress
# 随机选择红/蓝/绿色裙子

排除(--no):

Negative Prompt: glasses, hat
# 不要眼镜和帽子

关键词顺序

重要性: 前 > 后

示例:
1girl, beautiful face, long hair, ...
# 1girl 最重要,优先生成

不推荐:
background, sky, clouds, 1girl, ...
# 背景在前,人物可能不明显

500+风格关键词库

艺术流派(100+)

经典艺术

impressionism          # 印象派
post-impressionism     # 后印象派
expressionism          # 表现主义
surrealism            # 超现实主义
cubism                # 立体主义
abstract              # 抽象
pop art               # 波普艺术
minimalism            # 极简主义
baroque               # 巴洛克
renaissance           # 文艺复兴
art nouveau           # 新艺术运动
art deco              # 装饰艺术

现代风格

cyberpunk             # 赛博朋克
steampunk             # 蒸汽朋克
vaporwave             # 蒸汽波
synthwave             # 合成波
retrowave             # 复古波
dieselpunk            # 柴油朋克
solarpunk             # 太阳朋克
biopunk               # 生物朋克

地域风格

japanese style        # 日式
chinese style         # 中式
korean style          # 韩式
european style        # 欧式
american style        # 美式
nordic style          # 北欧
mediterranean         # 地中海

插画风格(100+)

二次元

anime style           # 动漫风格
manga style           # 漫画风格
chibi                 # Q版
moe                   # 萌系
kawaii                # 可爱
bishoujo              # 美少女
seinen                # 青年向
shoujo                # 少女向

插画类型

watercolor painting   # 水彩
oil painting          # 油画
acrylic painting      # 丙烯画
ink painting          # 水墨画
pencil drawing        # 铅笔画
charcoal drawing      # 炭笔画
pastel drawing        # 粉彩画
digital painting      # 数字绘画
vector illustration   # 矢量插画
flat design           # 扁平设计
isometric             # 等距视角
pixel art             # 像素艺术
low poly              # 低多边形

艺术家风格

# 日本
miyazaki hayao style  # 宫崎骏
makoto shinkai style  # 新海诚
katsuhiro otomo style # 大友克洋

# 西方
van gogh style        # 梵高
monet style           # 莫奈
picasso style         # 毕加索
dali style            # 达利
andy warhol style     # 安迪·沃霍尔

摄影风格(80+)

拍摄类型

professional photography    # 专业摄影
portrait photography       # 人像摄影
fashion photography        # 时尚摄影
street photography         # 街拍
landscape photography      # 风景摄影
wildlife photography       # 野生动物
macro photography          # 微距
architectural photography  # 建筑摄影
aerial photography         # 航拍
underwater photography     # 水下摄影

摄影技巧

bokeh                 # 虚化/散景
depth of field        # 景深
shallow focus         # 浅景深
tilt-shift            # 移轴
long exposure         # 长曝光
double exposure       # 双重曝光
HDR                   # 高动态范围
film grain            # 胶片颗粒
motion blur           # 运动模糊
lens flare            # 镜头光晕
chromatic aberration  # 色差
vignette              # 暗角

相机设备

shot on Canon EOS R5       # 佳能R5拍摄
shot on Sony A7R IV        # 索尼A7R4
shot on Nikon D850         # 尼康D850
shot on iPhone 14 Pro      # iPhone 14 Pro
85mm f/1.2                 # 85mm f1.2镜头
50mm f/1.4                 # 50mm f1.4
35mm f/1.4                 # 35mm f1.4

光影效果(60+)

光线类型

soft lighting         # 柔光
hard lighting         # 硬光
natural lighting      # 自然光
studio lighting       # 影棚灯光
dramatic lighting     # 戏剧性光
cinematic lighting    # 电影感光
volumetric lighting   # 体积光
god rays              # 上帝之光
rim lighting          # 边缘光/轮廓光
backlighting          # 逆光
front lighting        # 正面光
side lighting         # 侧光

光线颜色

golden hour           # 黄金时刻
blue hour             # 蓝调时刻
warm lighting         # 暖光
cool lighting         # 冷光
neon lighting         # 霓虹灯
candlelight           # 烛光
moonlight             # 月光
sunlight              # 阳光

光影效果

ray tracing           # 光线追踪
global illumination   # 全局光照
ambient occlusion     # 环境光遮蔽
subsurface scattering # 次表面散射
caustics              # 焦散
shadow                # 阴影
reflection            # 反射
refraction            # 折射

材质纹理(80+)

金属

gold                  # 金
silver                # 银
copper                # 铜
bronze                # 青铜
iron                  # 铁
steel                 # 钢
chrome                # 铬/镀铬
aluminum              # 铝
metallic              # 金属质感
brushed metal         # 拉丝金属

自然材质

wood                  # 木头
stone                 # 石头
marble                # 大理石
granite               # 花岗岩
leather               # 皮革
fabric                # 布料
silk                  # 丝绸
cotton                # 棉
wool                  # 羊毛
fur                   # 毛皮

现代材质

glass                 # 玻璃
plastic               # 塑料
rubber                # 橡胶
ceramic               # 陶瓷
porcelain             # 瓷器
crystal               # 水晶
diamond               # 钻石
ice                   # 冰
water                 # 水
smoke                 # 烟雾

画质增强词(50+)

质量词

masterpiece           # 杰作
best quality          # 最佳质量
high quality          # 高质量
ultra detailed        # 超详细
highly detailed       # 高度详细
intricate details     # 精细细节
8k uhd                # 8K超高清
4k                    # 4K
photorealistic        # 照片级真实
hyperrealistic        # 超现实
professional          # 专业的

细节强化

detailed face         # 详细面部
detailed eyes         # 详细眼睛
detailed hands        # 详细手部
detailed background   # 详细背景
sharp focus           # 清晰焦点
crisp                 # 清脆/清晰
clean                 # 干净
polished              # 精致
refined               # 精炼

情绪氛围(40+)

happy                 # 快乐
sad                   # 悲伤
angry                 # 愤怒
peaceful              # 平静
mysterious            # 神秘
dramatic              # 戏剧性
romantic              # 浪漫
horror                # 恐怖
epic                  # 史诗
dreamy                # 梦幻
melancholic           # 忧郁
energetic             # 充满活力
calm                  # 平静
intense               # 强烈

万能提示词模板(20个)

模板1: 写实人像

Positive:
(masterpiece, best quality:1.2), photorealistic,
1girl, [年龄] years old, [发型] hair, [发色] hair color,
[表情], looking at viewer,
[服装描述],
professional photography, soft lighting,
depth of field, bokeh,
shot on Canon EOS R5, 85mm f/1.2,
8k uhd, film grain

Negative:
(worst quality:2), (low quality:2), (normal quality:2),
lowres, bad anatomy, bad hands, extra fingers,
fewer digits, extra limbs, text, error,
jpeg artifacts, watermark, signature, username,
blurry, artist name

参数:
Sampler: DPM++ 2M Karras
Steps: 25-30
CFG: 4-7
Size: 512x768

模板2: 二次元角色

Positive:
(masterpiece, best quality:1.4),
1girl, [特征描述],
anime style, highly detailed, vibrant colors,
beautiful eyes, detailed face,
[背景描述],
soft lighting, depth of field

Negative:
easynegative, (worst quality:2), (low quality:2),
lowres, bad anatomy, bad hands,
text, error, missing fingers, cropped,
normal quality, jpeg artifacts, signature,
watermark, username, blurry

参数:
Sampler: DPM++ 2M Karras
Steps: 20-28
CFG: 7-11
Size: 512x768 or 768x512

模板3: 风景场景

Positive:
(masterpiece, best quality:1.2),
[场景类型, 如: mountain landscape, ocean sunset],
beautiful scenery, detailed background,
[时间, 如: golden hour, blue hour],
[天气, 如: clear sky, cloudy],
volumetric lighting, cinematic,
8k uhd, sharp focus,
professional landscape photography

Negative:
(worst quality:2), (low quality:2),
lowres, blurry, jpeg artifacts,
watermark, signature, text

参数:
Sampler: DPM++ 2M Karras  
Steps: 25-35
CFG: 7-9
Size: 768x512 or 1024x576

模板4: 产品渲染

Positive:
product photography, [产品名称],
clean white background, studio lighting,
professional, commercial,
high-end, minimalist,
octane render, 8k, ultra detailed,
perfect lighting, no shadows on background

Negative:
(worst quality:2), dirty background,
cluttered, messy, low quality,
blurry, jpeg artifacts

参数:
Sampler: Euler a
Steps: 20-25
CFG: 5-7
Size: 768x768 or 1024x1024

模板5: 赛博朋克

Positive:
cyberpunk [主体],
neon lights, futuristic city, night scene,
rain, reflections, wet ground,
purple and blue color scheme,
blade runner aesthetic,
cinematic lighting, atmospheric,
highly detailed, 8k uhd

Negative:
(worst quality:2), (low quality:2),
lowres, blurry, bright daylight,
clean, simple

参数:
Sampler: DPM++ 2M Karras
Steps: 28-35
CFG: 7-9
Size: 768x512

模板6-20简要列举

6. 古风/中国风

ancient chinese style, hanfu dress,
traditional architecture, ink painting,
elegant, detailed, cultural heritage

7. 水彩插画

watercolor illustration, soft colors,
delicate brushstrokes, white background,
artistic, dreamy

8. 像素艺术

pixel art, 8-bit, 16-bit,
retro gaming style, pixelated,
vibrant colors, nostalgia

9. 3D渲染

3d render, octane render, blender,
ray tracing, photorealistic lighting,
ultra detailed, 8k

10. 电影海报

movie poster, cinematic,
dramatic composition, title text,
professional design, theatrical

11-20: 科幻场景、恐怖氛围、童话风格、日系小清新、油画质感、素描风格、低多边形、蒸汽朋克、水墨画、卡通风格

反向提示词(Negative Prompt)

万能反向词

(worst quality:2), (low quality:2), (normal quality:2),
lowres, bad anatomy, bad hands, text, error,
missing fingers, extra digit, fewer digits,
cropped, jpeg artifacts, signature, watermark,
username, blurry, artist name

# 使用EasyNegative(推荐)
easynegative
# 一个词等于上面一大段

针对性反向词

人物类:

bad anatomy          # 坏的解剖结构
bad hands            # 手部畸形
bad face             # 面部畸形
extra fingers        # 多余手指
fewer digits         # 手指缺失
malformed limbs      # 四肢畸形
fused fingers        # 手指融合
too many fingers     # 手指过多
long neck            # 脖子过长
cross-eyed           # 斗鸡眼
ugly                 # 丑陋

画质类:

blurry               # 模糊
lowres               # 低分辨率
pixelated            # 像素化(非刻意时)
jpeg artifacts       # JPEG压缩瑕疵
compression artifacts # 压缩瑕疵
grainy               # 颗粒感(非刻意时)

内容类:

text                 # 文字
watermark            # 水印
signature            # 签名
username             # 用户名
logo                 # 标志

风格类:

cartoon              # 卡通(写实时排除)
3d                   # 3D(2D时排除)
anime                # 动漫(写实时排除)
realistic            # 写实(二次元时排除)

提示词优化技巧

技巧1: 分层组织

# 不推荐(杂乱)
girl, smile, red dress, park, sunny, beautiful, ...

# 推荐(分层)
1girl, beautiful face, smile, looking at viewer,  # 人物主体
red dress, white shoes,                           # 服装
park, trees, flowers, sunny day,                  # 环境
professional photography, soft lighting,          # 摄影参数
8k uhd, highly detailed                          # 画质

技巧2: 权重调节

1girl, beautiful, (detailed background:1.5)

# 优化: 弱化背景
(1girl:1.3), beautiful face, (simple background:0.8)

技巧3: 使用同义替换

# 一般
beautiful girl

# 更好
stunning, gorgeous, attractive, charming

# 测试不同词,效果可能差异很大

技巧4: 参考别人的图

1. Civitai看图
2. 点击图片查看参数
3. 复制Prompt
4. 修改为自己的需求

技巧5: 迭代优化

第1次: 基础prompt → 生成
第2次: 发现手部有问题 → 加 (perfect hands:1.2)
第3次: 背景太乱 → 加 (simple background:0.9)  
第4次: 光线不好 → 加 soft lighting, golden hour
...

提示词调试工具

Prompt Matrix(提示词矩阵)

启用: Script > Prompt matrix

示例:
girl, [red|blue|green] dress, [short|long] hair

生成:
- girl, red dress, short hair
- girl, red dress, long hair
- girl, blue dress, short hair
- girl, blue dress, long hair
- girl, green dress, short hair
- girl, green dress, long hair

共6张图,对比效果

X/Y/Z Plot

作用: 测试不同参数组合

示例:
X轴: CFG Scale (5, 7, 9, 11)
Y轴: Steps (20, 25, 30)
生成: 4×3=12张图,找最佳参数

常见问题

为什么加了很多关键词还是不出我想要的效果? A:

  • 关键词太多反而干扰,聚焦核心3-5个
  • 权重没调好,重要的加权
  • 模型不匹配,换个模型

手总是画不好怎么办? A:

  • Negative加: bad hands, extra fingers
  • Positive加: (perfect hands:1.3)
  • 用ControlNet的OpenPose控制
  • 后期用PS修

提示词是英文还是中文? A:

  • 推荐英文,效果更好
  • 中文也可以,但可能不够精准
  • 不要中英混用

关键词顺序重要吗? A:

  • 重要!越前面越重要
  • 核心内容放前面
  • 画质词放最后

逗号和句号有区别吗? A:

  • 都表示分隔
  • 逗号最常用
  • 句号和逗号效果基本一样

下一章预告

第四章: 参数调优

  • 采样器详解与选择
  • CFG Scale调优
  • 采样步数优化
  • 高清修复技巧
  • Seed的使用
  • 批量生成技巧

掌握了提示词,下一步就是参数调优,让图片更完美!

Prev
第二章: Stable Diffusion模型详解
Next
第四章: Stable Diffusion参数调优