神笔马良:图像生成提示词精进
掌握图像提示词四大要素,学习风格、构图、光影控制,创作惊艳视觉效果。
图像提示词核心要素详解
构建有效的图像提示词,就像给一位才华横溢但需要精确指令的画家布置任务。关键要素包括(通常用逗号分隔):
-
1. 主体 (Subject)是什么/谁? 必须清晰。
一只猫
vs一只蓬松的、戴着小礼帽的苏格兰折耳猫
。
数量?一只
,一群
,三个
...
特征/细节?蓝色的眼睛
,穿着破旧的皮夹克
,翅膀上有复杂的金色纹路
。
姿态/动作/表情?正在奔跑
,好奇地歪着头
,沉思的表情
,挥舞着魔法棒
。 -
2. 环境/背景 (Environment/Setting)地点?
在月球表面
,在一个舒适的图书馆角落
,在繁华的东京街头
。
时间/天气?日落时分
,暴风雨之夜
,雾气弥漫的早晨
。
氛围?宁静祥和
,神秘诡异
,充满未来科技感
。
背景元素?背景是模糊的城市灯光
,远处有连绵的雪山
,周围环绕着漂浮的魔法符文
。 -
3. 风格/媒介 (Style/Medium)艺术流派:
印象派
,超现实主义
,波普艺术
,装饰艺术 (Art Nouveau)
,表现主义
...
艺术家风格:in the style of Van Gogh
,Miyazaki Hayao anime style
,by Alphonse Mucha
...
媒介:oil painting
,watercolor sketch
,woodblock print
,pencil drawing
,3D render
,pixel art
,claymation
...
特定风格词:cyberpunk
,steampunk
,fantasy art
,minimalist
,geometric
,vintage poster
... -
4. 构图/视角 (Composition/View)景别:
close-up
(特写),medium shot
(中景),full shot
(全身),long shot
(远景),extreme wide shot
(大远景)。
视角:eye-level view
(平视),low angle view
(仰视),high angle view
(俯视),bird's-eye view
(鸟瞰),worm's-eye view
(虫视),dutch angle
(倾斜)。
构图规则:rule of thirds
(三分法),centered composition
(居中),symmetrical
(对称),leading lines
(引导线)。
镜头效果:wide-angle lens
(广角),telephoto lens
(长焦),macro lens
(微距),fisheye lens
(鱼眼),shallow depth of field
(浅景深),bokeh
(焦外虚化),motion blur
(动态模糊)。 -
5. 光照 (Lighting)类型/方向:
cinematic lighting
(电影感光效),dramatic lighting
(戏剧性光效),soft light
(柔光),hard light
(硬光),rim light
(轮廓光),backlight
(逆光),natural light
(自然光),studio lighting
(影棚光),volumetric lighting
(体积光),god rays
(耶稣光),neon lighting
(霓虹灯光)。
时间/色温:golden hour
(黄金时刻),blue hour
(蓝色时刻),warm light
(暖光),cool light
(冷光),night scene
(夜景)。 -
6. 色彩 (Color)主色调/方案:
monochromatic blue
(单色蓝),vibrant colors
(鲜艳色彩),pastel colors
(粉彩色),earthy tones
(大地色系),complementary colors
(互补色),analogous colors
(邻近色),color palette based on [电影名/画作名]
。
饱和度/对比度:high saturation
,low contrast
,desaturated
(低饱和度)。 -
7. 效果/质量 (Effect/Quality)
highly detailed
,intricate details
,sharp focus
,photorealistic
,hyperrealistic
,masterpiece
,best quality
,8K
,UHD
,trending on ArtStation
(特定平台风格),award-winning photography
。
技巧: 将这些要素用英文逗号 ,
分隔,并按照你认为的逻辑顺序或重要性排列。可以尝试不同的组合和侧重,多实验!
示例应用
示例(组合):<code>A majestic griffin soaring through a stormy sky above a medieval castle, dramatic lighting with god rays breaking through the clouds, oil painting style, highly detailed, cinematic composition, wide angle view.</code>
负面提示词:排除干扰,提升纯净度
有时,AI 会“画蛇添足”,生成一些你不想要的东西,比如多余的手指、奇怪的文字、模糊的背景等。负面提示词 (Negative Prompt) 就是用来告诉 AI 不要包含哪些元素,从而提升画面的纯净度和准确性。 在本平台,你可以在提示词中通过在不想出现的词前面加上减号 `-` 来实现(确保减号后紧跟单词,中间无空格,词与词之间仍用英文逗号分隔)。 常见负面提示词分类示例:
- 排除低质量/瑕疵:
-low quality, -worst quality, -blurry, -jpeg artifacts, -noise, -error, -watermark, -signature, -text, -words, -letters
- 排除人体/解剖错误:
-deformed, -mutated, -mutilated, -extra limbs, -extra fingers, -too many fingers, -fused fingers, -bad anatomy, -malformed hands, -poorly drawn hands, -poorly drawn face
- 排除特定风格/元素:
-cartoon, -drawing, -illustration, -sketch, -anime, -3d render
(如果你想要照片写实),-people, -person, -man, -woman
(如果你不想要人物) - 排除特定对象:
-dog
(如果你只要猫),-car
(如果你只要建筑) - 排除模糊/重复:
-duplicate, -cropped, -out of frame, -tiling
photorealistic cat sitting on a windowsill, highly detailed, sharp focus, -cartoon, -drawing, -illustration, -anime, -signature, -text, -watermark
技巧:
- 从通用的排除低质量和变形的负面提示词开始。
- 根据生成结果,针对性地添加你不想要的具体元素或风格。
- 负面提示词并非越多越好,过多的负面约束有时也会限制 AI 的创意。
示例应用
示例:<code>A beautiful landscape painting of a serene lake at sunrise, highly detailed, masterpiece, <strong>-people, -boats, -text, -signature, -watermark, -low quality</strong></code> (确保画面纯净,没有人、船或文字,并排除低质量)
示例:<code>Close-up portrait of an old woman with kind eyes and detailed wrinkles, photorealistic, natural lighting, sharp focus, <strong>-makeup, -smooth skin, -illustration, -drawing, -bad anatomy, -deformed</strong></code> (强调真实皮肤纹理,排除化妆和平滑皮肤,排除绘画感和变形)
利用评估反馈优化图像提示词 (再回顾)
图像提示词的评估反馈能帮你精准定位问题:
- 视觉清晰/主体识别度低? 主体描述是否具体?特征是否给足?尝试更精确的名词和形容词。
- 风格控制/统一性差? 风格词是否准确、核心?是否混入了冲突风格?尝试更具体的流派、艺术家名或媒介词汇。
- 构图/视角/姿态不佳? 添加或优化构图指令(视角、景别、法则),描述更生动的姿态表情。
- 细节/纹理不足或不当? 增加符合主体、环境和风格的关键细节、材质、纹理描述。思考哪些细节能“画龙点睛”。
- 氛围/光影效果不理想? 用更具表现力的词汇描述光线类型、方向、色温和整体氛围。思考光影如何服务于主体和情绪。
- 效率/关键词不佳? 提炼核心关键词,移除冗余描述,尝试调整词语顺序或使用权重(如果模型支持)。
Chinese ink painting style (Shui Mo Hua), black and white, minimalist composition, visible brush strokes, ink wash effects, on rice paper texture, -color, -photorealistic
。
不断尝试,观察细微词语变化对生成结果的影响,是提升图像提示词能力的关键。多看优秀作品的提示词也是很好的学习方式。