概述
提示词编写技巧
下图展示了提示词的结构和编写方法:
这个图展示了: - 主体描述: 描述主要对象,放在最前面 - 细节描述: 添加细节信息,用逗号分隔 - 风格描述: 指定艺术风格,影响整体风格 - 质量词: 提升质量,放在最后 - 权重语法: 使用括号调整权重
基本原则
1. 清晰性
- 使用明确的描述
- 避免模糊的表达
- 具体化抽象概念
2. 简洁性
- 避免冗余信息
- 使用关键词
- 保持提示词简洁
3. 结构化
- 合理组织提示词
- 使用逗号分隔
- 逻辑清晰
提示词结构
标准结构
graph LR
A[主体描述] --> B[风格修饰] --> C[质量增强] --> D[技术参数]
style A fill:#e1f5ff
style B fill:#ffe1f5
style C fill:#e1ffe1
style D fill:#fff4e1
详细结构
[主体] + [动作/姿态] + [环境/背景] + [风格/艺术] + [质量/细节] + [技术参数]
提示词分类
1. 主体提示词
描述图像的主要对象。
- 性别: man, woman, girl, boy, person
- 年龄: young, adult, elderly, child
- 外貌: beautiful, handsome, cute, elegant
- 特征: long hair, short hair, blue eyes, smile
- 自然: landscape, mountain, ocean, forest, sky
- 建筑: building, house, castle, city, street
- 室内: room, kitchen, bedroom, office, studio
- 日常: chair, table, cup, book, phone
- 艺术: painting, sculpture, drawing, photograph
- 抽象: shape, pattern, texture, color
2. 风格提示词
定义图像的艺术风格。
- 绘画: oil painting, watercolor, sketch, charcoal, pastel
- 数字艺术: digital art, 3D render, vector art, pixel art
- 摄影: photography, portrait, landscape, macro, street photography
- 古典: renaissance, baroque, romantic, victorian
- 现代: impressionism, cubism, surrealism, pop art
- 当代: contemporary, minimalist, abstract, conceptual
- 亚洲: anime, manga, ukiyo-e, chinese painting
- 欧洲: gothic, art nouveau, art deco
- 其他: tribal, folk art, indigenous
3. 质量提示词
提升图像质量。
- 分辨率: 4k, 8k, high resolution, ultra hd
- 细节: detailed, sharp, clear, crisp
- 质量: high quality, best quality, masterpiece, premium
- 摄影: professional photography, dslr, cinematic, dramatic lighting
- 艺术: award winning, trending on artstation, deviantart
- 技术: octane render, unreal engine, ray tracing
4. 技术提示词
控制技术参数。
- 光照: natural lighting, soft lighting, studio lighting, golden hour
- 构图: rule of thirds, symmetrical, dynamic, wide angle
- 效果: bokeh, depth of field, motion blur, long exposure
- 渲染: octane render, vray, cycles, arnold
- 效果: ray tracing, global illumination, ambient occlusion
- 风格: realistic, photorealistic, hyperrealistic
提示词技巧
技巧1: 权重控制
使用括号控制提示词权重。
(keyword): 权重1.1((keyword)): 权重1.21[keyword]: 权重0.9[[keyword]]: 权重0.81
beautiful woman, (detailed face:1.2), (soft lighting:1.1), [background:0.8]
技巧2: 提示词顺序
重要提示词放在前面。
- 主体描述
- 主要风格
- 次要风格
- 质量增强
- 技术参数
beautiful woman, portrait, oil painting, detailed, 4k, high quality
技巧3: 提示词组合
组合多个提示词获得更好效果。
graph TD
A[主体提示词] --> D[组合提示词]
B[风格提示词] --> D
C[质量提示词] --> D
style A fill:#e1f5ff
style B fill:#ffe1f5
style C fill:#e1ffe1
style D fill:#fff4e1
beautiful woman, portrait, oil painting style, detailed, 4k, high quality, professional
技巧4: 负向提示词
使用负向提示词避免不想要的元素。
ugly, blurry, low quality, distorted, bad anatomy, deformed, watermark, text, signature
- 人物: bad anatomy, bad hands, extra fingers, missing fingers
- 质量: blurry, low quality, pixelated, grainy
- 不想要的: watermark, text, signature, logo
提示词模板
模板1: 人物肖像
[性别] [年龄], [外貌特征], [表情], [姿态], [服装], [背景], [风格], [质量]
beautiful young woman, long brown hair, blue eyes, smiling, elegant dress, garden background, oil painting style, detailed, 4k, high quality
模板2: 风景画
[场景类型], [主要元素], [时间/天气], [氛围], [风格], [质量]
mountain landscape, snow-capped peaks, pine trees, sunset, peaceful, oil painting style, detailed, 4k, high quality
模板3: 抽象艺术
[抽象概念], [形状/图案], [颜色], [风格], [质量]
abstract geometric shapes, vibrant colors, dynamic composition, digital art, detailed, 4k, high quality
提示词优化
优化1: 迭代改进
逐步改进提示词。
graph LR
A[初始提示词] --> B[生成图像] --> C[评估结果] --> D[修改提示词] --> B
style A fill:#e1ffe1
style B fill:#fff4e1
style C fill:#ffe1f5
style D fill:#e1ffe1
- 初始:
beautiful woman - 改进:
beautiful woman, portrait, detailed - 优化:
beautiful woman, portrait, oil painting style, detailed face, 4k, high quality
优化2: A/B测试
比较不同提示词效果。
- 创建多个提示词变体
- 使用相同参数生成
- 比较结果
- 选择最佳提示词
优化3: 参考优秀提示词
学习和参考优秀提示词。
- Civitai提示词
- ArtStation作品描述
- 专业摄影师描述
- 艺术作品描述
常见问题
Q1: 提示词多长合适?
A: 通常20-50个关键词,根据需求调整。
Q2: 如何提高提示词效果?
A: 使用具体描述,合理组织结构,控制权重,迭代改进。
Q3: 负向提示词重要吗?
A: 很重要,可以避免不想要的元素,提高质量。
Q4: 如何学习提示词?
A: 参考优秀作品,学习提示词结构,多练习和实验。
Q5: 提示词顺序重要吗?
A: 重要,前面的提示词权重更高,重要提示词放在前面。
最佳实践
实践1: 从简单开始
先使用简单提示词,逐步添加细节。
实践2: 记录有效提示词
记录有效的提示词和参数组合。
实践3: 使用提示词库
建立自己的提示词库,方便复用。
实践4: 持续学习
关注社区动态,学习新的提示词技巧。
实践5: 实验和创新
尝试新的提示词组合,创新表达方式。
扩展阅读
更新日志
- 2026-01-26: 初始版本创建