提示词技巧 #
提示词基础 #
什么是提示词? #
提示词(Prompt)是描述你想要生成图像的文本,是 AI 理解你需求的主要方式。
text
┌─────────────────────────────────────────────────────────────┐
│ 提示词作用 │
├─────────────────────────────────────────────────────────────┤
│ │
│ 提示词 ──────→ AI 模型 ──────→ 生成图像 │
│ │
│ "a beautiful sunset over the ocean" │
│ "golden hour lighting, vibrant colors" │
│ "highly detailed, 8k resolution" │
│ │
│ 提示词质量直接影响生成结果 │
│ │
└─────────────────────────────────────────────────────────────┘
提示词结构 #
text
推荐提示词结构:
主体描述 + 场景环境 + 风格修饰 + 质量标签
示例:
"a young woman, standing in a flower garden,
sunset lighting, soft bokeh background,
portrait photography, highly detailed,
8k resolution, masterpiece"
分解:
├── 主体:a young woman
├── 场景:standing in a flower garden
├── 光线:sunset lighting, soft bokeh background
├── 风格:portrait photography
└── 质量:highly detailed, 8k resolution, masterpiece
提示词语法 #
基本语法 #
text
逗号分隔:
├── 使用逗号分隔不同概念
├── 每个短语描述一个特征
└── 示例:"cat, sitting, garden, sunny"
顺序重要性:
├── 前面的词权重更高
├── 重要内容放前面
└── 按重要性排序
长度建议:
├── SD 1.5:75-150 tokens
├── SDXL:150-200 tokens
└── 过长可能被截断
权重语法 #
text
括号权重:
增强权重:
├── (word) - 权重 x1.1
├── ((word)) - 权重 x1.21
├── (((word))) - 权重 x1.33
└── 示例:"(beautiful:1.2) landscape"
精确权重:
├── (word:1.5) - 权重 x1.5
├── (word:0.8) - 权重 x0.8
└── 范围:0.1 - 1.9
减弱权重:
├── [word] - 权重 x0.9
├── [[word]] - 权重 x0.81
└── 示例:"[simple] background"
混合词:
├── [word1|word2] - 交替使用
├── 每 step 切换
└── 示例:"[cat|dog] playing"
高级语法 #
text
AND 语法(多提示词):
├── "prompt1 AND prompt2 AND prompt3"
├── 分别处理多个提示词
└── 可设置不同权重
BREAK 语法:
├── "prompt1 BREAK prompt2"
├── 强制分段处理
└── 用于复杂提示词
Embedding 引用:
├── "embedding:filename"
├── 引用预训练嵌入
└── 示例:"embedding:EasyNegative"
正向提示词 #
主体描述 #
text
人物描述:
├── 年龄:young, middle-aged, elderly
├── 性别:man, woman, girl, boy
├── 外貌:beautiful, handsome, cute
├── 特征:long hair, blue eyes, glasses
└── 服装:wearing dress, casual clothes
示例:
"a beautiful young woman with long flowing hair,
wearing a white summer dress,
gentle smile, looking at camera"
场景描述 #
text
室内场景:
├── living room, bedroom, kitchen
├── cozy, modern, minimalist
└── warm lighting, natural light
室外场景:
├── garden, park, street, beach
├── city, countryside, mountains
└── sunny, cloudy, rainy, sunset
示例:
"standing in a beautiful flower garden,
colorful blooming flowers, butterflies flying,
soft sunlight filtering through trees"
风格描述 #
text
艺术风格:
├── oil painting, watercolor, digital art
├── anime, manga, cartoon
├── realistic, photorealistic
└── impressionist, surrealist
摄影风格:
├── portrait photography
├── landscape photography
├── macro photography
└── street photography
示例:
"portrait photography, soft focus,
bokeh background, golden hour lighting,
professional photography, film grain"
质量标签 #
text
通用质量标签:
├── masterpiece - 杰作
├── best quality - 最佳质量
├── high quality - 高质量
├── highly detailed - 高度细节
└── ultra detailed - 超细节
分辨率标签:
├── 4k, 8k - 高分辨率
├── highres - 高分辨率
├── UHD - 超高清
└── wallpaper - 壁纸级别
示例:
"masterpiece, best quality, highly detailed,
8k resolution, sharp focus, intricate details"
负面提示词 #
负面提示词作用 #
text
负面提示词作用:
├── 排除不想要的元素
├── 修正常见问题
├── 提高图像质量
└── 减少生成错误
重要性:
├── 与正向提示词同等重要
├── 影响最终效果
└── 需要认真编写
通用负面提示词 #
text
基础负面提示词:
"ugly, low quality, lowres, blurry,
bad anatomy, bad proportions, deformed,
disfigured, mutation, mutated,
extra limbs, missing limbs,
watermark, text, signature"
质量相关:
"low quality, worst quality, bad quality,
jpeg artifacts, blurry, grainy,
pixelated, low resolution"
解剖相关:
"bad anatomy, bad proportions,
deformed, disfigured, mutation,
extra fingers, missing fingers,
extra limbs, missing limbs,
malformed hands, poorly drawn hands"
场景特定负面提示词 #
text
人物负面:
"bad face, poorly drawn face,
extra eyes, missing eyes,
bad eyes, crossed eyes,
bad nose, bad mouth,
bad teeth, open mouth,
double head, multiple heads"
背景负面:
"simple background, plain background,
crowded background, messy background,
out of frame, cropped"
风格负面:
"cartoon, anime, 3d render,
sketch, drawing, painting"
(当需要写实风格时)
负面提示词模板 #
text
通用模板:
"(worst quality:2), (low quality:2),
(normal quality:2), lowres, bad anatomy,
bad hands, normal quality,
((monochrome)), ((grayscale)),
skin spots, acnes, skin blemishes,
age spot, glans, extra fingers,
fewer fingers, strange fingers, bad hand"
高质量模板:
"(worst quality:1.4), (low quality:1.4),
(monochrome:1.1), (grayscale:1.1),
bad anatomy, bad hands,
missing fingers, extra digit,
fewer digits, cropped, text,
error, signature, watermark,
username, blurry, artist name"
提示词技巧 #
提示词优化 #
text
优化原则:
1. 具体化
├── 不够好:a person
└── 更好:a young woman with long brown hair
2. 结构化
├── 主体 → 场景 → 风格 → 质量
└── 按重要性排序
3. 避免冲突
├── 不要同时使用冲突的词
└── 如 "realistic" 和 "cartoon"
4. 使用专业术语
├── 摄影术语:bokeh, depth of field
├── 艺术术语:oil painting, watercolor
└── 技术术语:4k, 8k, HDR
常用提示词组合 #
text
人像摄影:
"portrait photography, professional photo,
soft lighting, bokeh background,
shallow depth of field, 85mm lens,
studio lighting, high key lighting"
风景摄影:
"landscape photography, golden hour,
dramatic lighting, wide angle lens,
HDR, long exposure, professional photo"
动漫风格:
"anime style, manga style,
cel shading, vibrant colors,
detailed eyes, beautiful face,
studio ghibli style"
写实风格:
"photorealistic, realistic,
raw photo, unedited,
DSLR, high resolution,
professional photography"
提示词调试 #
text
调试方法:
1. 逐步添加
├── 从简单提示词开始
├── 逐步添加细节
└── 观察每个词的效果
2. 权重调整
├── 测试不同权重
├── 找到最佳值
└── 记录有效组合
3. 负面优化
├── 添加针对性负面词
├── 解决特定问题
└── 保持负面词简洁
4. A/B 测试
├── 对比不同提示词
├── 选择最佳版本
└── 建立个人词库
高级技巧 #
风格混合 #
text
风格混合技巧:
1. 权重混合
"style1:0.7, style2:0.3"
├── 主风格权重高
└── 辅助风格权重低
2. 顺序混合
"[style1|style2]"
├── 每 step 切换
└── 产生融合效果
3. 区域混合
├── 使用区域控制
└── 不同区域不同风格
示例:
"(oil painting:0.8), (watercolor:0.4),
impressionist style, soft brushstrokes"
角色一致性 #
text
保持角色一致性的方法:
1. 详细描述
├── 固定外貌特征
├── 使用具体描述
└── 示例:
"young woman, long brown hair,
blue eyes, freckles, round face,
wearing glasses, casual clothes"
2. 使用 LoRA
├── 角色 LoRA
└── 保持一致性
3. 使用 IP-Adapter
├── 参考图像
└── 提取特征
4. 固定种子
├── 相同种子
├── 相同参数
└── 相似结果
提示词模板库 #
text
建立个人模板库:
人物模板:
├── 基础:"{subject}, {pose}, {location}"
├── 风格:"{style}, {lighting}"
└── 质量:"{quality_tags}"
风景模板:
├── 场景:"{scene}, {time_of_day}"
├── 天气:"{weather}"
└── 风格:"{style}, {quality}"
产品模板:
├── 产品:"{product}, {angle}"
├── 背景:"{background}"
└── 光线:"{lighting}"
提示词资源 #
提示词生成器 #
text
在线工具:
├── Civitai 提示词生成器
├── PromptHero
├── Stable Diffusion Prompt Generator
└── ChatGPT 辅助生成
浏览器插件:
├── SD Prompt Helper
├── ComfyUI Prompt Helper
└── 提示词管理插件
学习资源 #
text
提示词学习资源:
网站:
├── Civitai - 模型和提示词分享
├── PromptHero - 提示词搜索
├── Lexica - 图像和提示词库
└── OpenArt - AI 艺术社区
方法:
├── 分析优秀作品的提示词
├── 学习社区分享
├── 实践和总结
└── 建立个人词库
下一步 #
现在你已经掌握了提示词技巧,接下来学习 文生图基础,开始实践图像生成。
最后更新:2026-04-05