如何写好 AI 提示词
为 AI 模板写出清晰的提示词:结构、标点、权重、负向提示词和现成示例。
提示词是告诉 AI 要生成什么的文字。清晰的提示词能让每场活动的结果都稳定、可控。本指南介绍在使用文字提示词的 AI 模板中可以用到的结构、标点和权重,并附有现成示例。
基本原则
- 主提示词用英文编写。动态提示词 中给宾客的问题可以用任何语言,但提示词本身用英文效果最好。
- 使用简单的结构:
[Style/Theme], [Descriptive elements], [Techniques]。 - 使用逗号分隔的关键词,避免长句,除非需要交代上下文。
- 保持简短:通常一到两行就够了。
示例:surreal landscape, swirling clouds, bold contrasting colors, impasto brush strokes, dramatic depth, crisp detail
关键词还是指令?
提示词有两种写法,各有用处:
| 写法 | 样子 | 适用情况 |
|---|---|---|
| 关键词 | night street fashion, neon bokeh, rim light, 50mm lens, cinematic | 描述某种风格或场景,并希望用标点和权重精细控制(本指南内容)。 |
| 指令 | Change the clothes of the people in this photo to … Keep the same people … Do not add anyone. | 模板要修改宾客自己的照片(例如 AI Offline 的 Re-Imagine,或 AI Online 的图片 → 图片模型),并且宾客必须仍然认得出来。 |
无论哪种写法,都要用真实照片测试每个提示词:单人、情侣和多人。并非所有 AI 模型对标点和权重的反应都相同,请用您自己的模板检查效果。
各标点的作用
| 标点 | 作用 | 示例 |
|---|---|---|
, 逗号 | 概念之间的软分隔。 | mountains, river, blue sky |
; 分号 / . 句号 | 概念之间的硬分隔。 | ancient cavern; hidden treasure |
! 感叹号 | 强调。 | cityscape at night! |
: 冒号 | 精确设定权重。 | cat:2.0, eyes:1.8 |
( ) 圆括号 | 分组并轻度强调。 | (beautiful sunset) |
(( ))、((( ))) | 嵌套括号:每多一层强调越强。 | ((detailed texture)) |
[ ] 方括号 | 降低权重。 | [sunset] |
| 竖线 | 融合两种不同的概念。 | cyberpunk city | traditional batik |
提示词权重
权重告诉 AI 某个词有多重要。
| 数值 | 含义 |
|---|---|
1.0 | 正常(默认)。 |
大于 1.0 | 更重要。 |
小于 1.0 | 不那么重要。 |
0 | 忽略。 |
| 写法 | 效果 |
|---|---|
keyword:value | 精确权重,例如 cat:2.0。 |
(keyword) | 轻度强调(约 1.1)。 |
((keyword)) | 中度强调(约 1.2–1.3)。 |
(((keyword))) | 高度强调(约 1.3–1.4)。 |
[keyword] | 弱化(约 0.9)。 |
可以组合使用:a (cat:2.0), ((playful)), a [eyes:0.7], (curious)
找到效果好的权重后就保留下来;测试时每次只改一个数值。
合照:保持男女原样
在合照中,AI 模型容易偏向女性面孔。用权重防止男性被变成女性(具体数值可根据整个提示词调整):
(man:1.6) or (woman:1.1)
如果有戴头巾(hijab)的宾客:
(man:1.6) or (woman:1.1) or (hijab woman:0.7)
- 确保提示词中的人数和性别与预期的照片一致。
- 多人模板请加上
group shot。
负向提示词
部分 AI Offline 模板在普通提示词旁会显示 负向提示词 栏,用来列出结果中应避免的内容。它是可选的:保持简短、相关。
lowres, blurry, artifact, oversaturated, bad anatomy, extra fingers
提示词模板
单人肖像
portrait, [style], [face/skin/hair details], [wardrobe], [lighting], [lens], [background], [techniques], (detailed face:1.3)
合照
(man:1.6) or (woman:1.1), [style], [wardrobe], [lighting], [lens], group shot, [background], (detailed face:1.3)
把每个方括号部分换成您自己的词,例如 [lighting] → soft key light。
现成示例
| 主题 | 提示词 | 负向提示词 |
|---|---|---|
| 超现实风景 | surreal landscape, swirling clouds, bold contrasting colors, impasto brush strokes, dramatic depth, crisp detail | |
| 多人室内休闲照 | (man:1.6) or (woman:1.1), casual indoor portrait, soft key light, 35mm lens, mid-shot trio, neutral background, natural skin tones, subtle film grain | blurry, lowres, deformed hands, gender swap |
| 夜间街头时尚(含头巾) | (man:1.6) or (woman:1.1) or (hijab woman:0.7), night street fashion, neon bokeh, rim light, candid pose, 50mm lens, cinematic | overexposed highlights, plastic skin |
| 赛博朋克 + 蜡染融合 | cyberpunk city alley | traditional batik patterns, neon glow, reflective puddles, moody atmosphere, volumetric light, ((texture detail:1.3)) | |
| 面部特写,突出眼睛 | portrait close-up, (detailed face:1.3), (sharp eyes:1.6), soft skin, studio lighting, 85mm lens, shallow DOF |
保存前检查清单
- 主提示词为英文。
- 遵循
[Style], [Descriptive], [Techniques]结构。 - 权重正确,且没有改动已经验证有效的权重。
- 人数和性别一致。
- 每个标点都按其作用使用。
- 负向提示词(如有)简短且相关。
- 已用真实照片测试:单人、情侣和多人。
把效果好的提示词保存到 提示词库,以便在其他模板中重复使用。
下一步
仍需要帮助?
我们的团队在 WhatsApp 上为您解答。请告知 Q-Booth 版本及屏幕上显示的内容。