学习如何编写提示词,获得您想要的精确图像。本指南涵盖从基础描述到现代AI图像生成器高级技巧的所有内容。
本指南针对 现代自然语言模型 进行了优化,如 Flux、Qwen Image、Z-Image Turbo 和 Chroma。这些模型对描述性句子和创意指导的理解远超旧式基于标签的系统(如SD1.5或SDXL)。虽然某些技巧是通用的,但叙事式提示词的强调在当代模型上效果特别好。
试试提示词增强器
不知道如何写详细的提示词?立即将简单想法转换为丰富、有效的提示词。
编写您的第一个提示词
现代AI图像生成器对自然语言的理解能力非常出色。只需像向艺术家解释一样描述您想看到的内容即可。
A golden retriever playing in autumn leaves, sunlight filtering through the trees
结果

描述越具体,结果越好。在编写提示词时,思考三个核心问题:
- 什么 在场景中?(主体、物体、角色)
- 在哪里 发生?(场景、环境、背景)
- 怎么样 看起来和感觉?(光线、氛围、颜色、风格)
与依赖标签和关键词堆砌的旧扩散模型不同,现代模型可以解析复杂句子并理解上下文。您不需要用逗号分隔每个概念——可以自然地书写。
现代模型偏好: "A woman with flowing red hair stands on a cliff overlooking a stormy sea at sunset"
旧式标签风格: "woman, red hair, cliff, ocean, storm, sunset, dramatic, 8k, masterpiece"
两者都可以使用,但自然描述让您对关系和构图有更多控制。
理解提示词结构
结构良好的提示词逐层引导AI理解您的愿景。以下是一个持续产生优秀结果的框架:
1. 以主体开头
从图像的主要焦点开始。这告诉模型什么最重要。
A young woman with short black hair...
An ancient dragon with crystalline scales...
A cozy coffee shop interior...
2. 添加描述性细节
丰富外观、服装、表情、纹理和区分特征。
A young woman with short black hair, wearing a tailored red leather jacket, her confident smile suggesting quiet determination, arms crossed
结果

3. 确定环境
描述场景发生的地点。环境对图像的贡献通常与主体一样重要。
A young woman with short black hair, wearing a red leather jacket, confident smile, standing on a rain-slicked Tokyo street at night, neon signs from nearby bars reflected in the puddles
4. 定义光线和氛围
氛围改变一切。指定光线如何表现以及您想要的情感基调。
A young woman with short black hair, wearing a red leather jacket, confident smile, standing on a rain-slicked Tokyo street at night, neon signs from nearby bars reflected in puddles, dramatic side lighting from a passing car, moody noir atmosphere
结果

使用风格预设
许多AI图像生成器提供风格预设,为您的图像应用特定的美学风格。这些就像艺术滤镜——您正常编写提示词,风格塑造视觉输出。
以下是同一基本概念使用不同风格预设的渲染效果:
A brave knight standing in front of a castle, pixel art style, 16-bit era, retro game aesthetic
结果

A magical girl with flowing pink hair, sparkles around her, anime style illustration, vibrant colors
结果

A couple dancing at a 1950s jazz club, warm film tones, vintage photography aesthetic, soft grain
结果

当您的提示词自然契合美学风格时效果最佳。"英勇骑士"的提示词与像素艺术搭配适合复古游戏风格,而"1950年代爵士俱乐部"则与复古摄影风格相得益彰。
光线与氛围
光线可能是改变图像影响力的最强大工具。以下是现代模型能很好理解的光线术语:
自然光条件
- 黄金时段 — 日出或日落时温暖柔和的光线
- 蓝色时刻 — 日出前或日落后凉爽空灵的光线
- 阴天 — 柔和漫射的光线,没有强烈阴影
- 斑驳光 — 透过树叶或百叶窗过滤的光线
- 逆光 — 主体从后方照亮,创造剪影或轮廓光
工作室和人造光
- 柔和光线 — 温和均匀的照明,阴影最少
- 强硬光线 — 强烈的定向光线,创造戏剧性阴影
- 轮廓光 — 主体边缘周围的光线轮廓
- 明暗对比法 — 光与影的高对比度交互(卡拉瓦乔风格)
- 霓虹灯光 — 彩色人工发光,常用于赛博朋克美学
氛围描述词
氛围词汇引导整体感觉:
黑暗和戏剧性
moody, noir, brooding, ominous, intense, gritty, shadowy
明亮和振奋
cheerful, vibrant, joyful, luminous, ethereal, dreamy, soft
神秘
misty, foggy, hazy, enigmatic, surreal, otherworldly, haunting
情感
melancholic, romantic, nostalgic, serene, peaceful, intimate, tender
分类示例提示词
以下是在不同主题上效果良好的详细提示词:
Close-up portrait of an elderly man with deep wrinkles mapping decades of experience, kind eyes that seem to hold countless stories, a well-groomed silver beard, wearing a hand-knitted wool sweater in earthy tones. Warm afternoon light streams through a nearby window, creating a shallow depth of field that softens the background.
结果

A powerful sorceress stands atop a windswept cliff at the edge of the world, her long white hair whipping in the gale. Her eyes glow with deep purple arcane energy as she channels ancient magic. She wears intricate robes of black silk embroidered with golden runes that shimmer with power. Storm clouds gather behind her, lightning flickering in the distance, dramatic lighting from below.
结果

Misty mountain peaks pierce through a sea of morning clouds at sunrise. A crystal-clear alpine lake in the foreground perfectly mirrors the jagged peaks above. Dense pine forest lines the shores, their dark silhouettes contrasting against the golden light breaking through gaps in the clouds. A sense of pristine wilderness untouched by humanity.
结果

An anime girl with long pink hair styled in playful twin tails, wearing a crisp school uniform with a navy blazer and plaid skirt. Cherry blossom petals drift lazily around her as she stands in a Japanese high school courtyard. A shy, hopeful expression on her face, soft spring lighting casting gentle shadows, detailed background showing traditional school architecture.
结果

A vintage leather-clad camera rests on a weathered oak desk, surrounded by scattered black and white photographs from decades past. Warm afternoon sunlight streams through a dusty window, catching motes floating in the air. The scene evokes nostalgia for an era of careful, intentional photography.
结果

高级技巧
掌握基础后,这些高级技巧可以帮助您获得更具体的结果:
相机和构图术语
现代模型理解摄影术语:
特写镜头
Close-up 和 extreme close-up 用于紧凑构图。非常适合人像和细节拍摄。
广角
Wide angle 和 ultra-wide 用于开阔视野。可以戏剧性地扭曲边缘。
视角控制
Bird's eye view(俯视)、low angle(仰视)、Dutch angle(倾斜画面)。
构图
Rule of thirds(偏心主体)、centered(对称)、telephoto compression(压缩景深)。
艺术风格和流派
参考艺术流派获得特定美学:
经典艺术流派
Art Nouveau(有机曲线)、Art Deco(几何、奢华)、Impressionism(强调光线)。
奇幻和超现实
Surrealism(梦幻、不可能)、Fantasy illustration(史诗、神话主题)。
未来主义
Cyberpunk(反乌托邦、霓虹、雨)、Solarpunk(乐观、自然与科技结合)。
摄影风格
Film noir(阴影、神秘)、Editorial(杂志品质)、Documentary(真实、抓拍)。
技术质量修饰词
这些可以影响输出质量和细节水平:
细节增强
Highly detailed、intricate、ornate — 鼓励复杂纹理和元素。
摄影术语
Sharp focus、shallow depth of field、bokeh — 控制视觉清晰度和模糊。
电影感
Cinematic、dramatic lighting、film grain — 电影般的构图和调色。
专业品质
Professional photography、editorial、studio lighting — 精致、高端的外观。
添加太多质量修饰词可能会模糊您的结果。选择对您的图像最重要的1-2个,而不是无休止地堆砌"8k, ultra detailed, masterpiece, best quality"。
常见错误
以下是导致不良结果的最常见问题:
过于模糊
"一张漂亮的图片"或"很酷的东西"没有给AI方向。要具体说明您想要什么。
自相矛盾
"黑暗的、明亮的房间"会造成混乱。确保您的描述保持一致。
主体太多
试图在一张图像中塞入所有内容会分散焦点。从一个主要主体开始。
否定表述
"背景没有树"不如描述您确实想看到的内容有效。
关键词堆砌
无休止地使用"8k, HDR, masterpiece, award-winning"不如清晰的描述有效。
风格冲突
混合不兼容的美学如"照片级真实的动漫"可能产生混乱的输出。
当前限制
有些事情对AI图像生成仍然具有挑战性:
文字和字母
文字经常出现乱码或无意义。避免在图像中依赖文字。
精确手势
手指数量和特定手势可能不可预测。保持手部简单或隐藏。
真人肖像
生成特定名人或个人通常效果不好。
复杂互动
多个角色以特定方式互动难以精确控制。
当结果不符合预期时
如果您的图像与愿景不符,尝试以下修复方法:
先简化
移除元素,看看核心主体是否改善。复杂性可能令人困惑。
前置重要元素
模型更关注提示词的前半部分。把关键细节放在前面。
尝试不同表述
"A cat sitting" vs "a seated cat" 可能产生不同结果。多尝试!
重新生成
相同提示词会产生不同输出。多试几次以获得最佳结果。
常见问题
准备好创作了吗?将这些技巧付诸实践,看看您能创造什么。
