如何编写Flux提示词:自然语言、布局和文本
Flux遵循完整句子、空间布局和引用文本。了解其提示词结构、设置和示例,以获得最佳效果。
Flux,来自Black Forest Labs,与旧版图像模型理解语言的方式大相径庭。它使用大型T5文本编码器与CLIP结合使用,这意味着它能够理解长而自然的句子,按照描述放置物体,并准确渲染短文本。以旧式“关键词堆砌”风格编写的提示词会浪费这一能力。本指南将展示如何编写能够发挥Flux优势的提示词。
写句子,而不是标签列表
比较:
标签风格(效果不佳)
woman, cafe, rain, window, coffee, cinematic, 8k, masterpiece, best quality
自然语言(效果良好)
A young woman sits by a rain-streaked café window, holding a cup of coffee
with both hands. Warm light from inside contrasts with the blue evening
street outside. Shot on 35mm film with a shallow depth of field.
Flux会读取第二个提示词中的关系——谁拿着什么,光线从何而来——并据此构图。诸如masterpiece或8k之类的质量标签效果甚微,可以省略。
可靠的结构
- 主体和动作 — 主要事物及其正在做的事情。
- 构图 — 前景、背景、左/右、摄像机角度。
- 场景和氛围 — 地点、时间、天气、情绪。
- 风格或媒介 — 照片、油画、3D渲染、扁平插画。
- 光照和色彩 — 光源、调色板。
- 技术细节(针对照片) — 镜头、胶片类型、景深。
目标字数约为 30-80个词。过短的提示词会生成通用图像;过长的提示词可能会遗漏末尾的细节。
明确描述空间布局
Flux擅长遵循位置指令。请使用它们:
In the foreground, a ceramic bowl of ramen on a wooden counter. In the
background, a blurred neon-lit Tokyo street at night. The camera is at
table height, looking slightly up.
诸如*in the foreground(前景中), on the left(左侧), behind(后面), above(上方), in the corner(角落里)*等词语比在Stable Diffusion 1.5中效果要好得多。
文本渲染
Flux可以将可读文本放入图像中。将确切的文本放在引号中,并描述其出现的位置和方式:
A vintage enamel shop sign that reads "OPEN LATE" in bold red serif
letters, mounted on a weathered brick wall, soft afternoon light.
提示:
- 保持文本简短 — 几个词的渲染比一个句子更可靠。
- 描述字体样式:粗体无衬线字体、手写脚本字体、霓虹灯管字体。
- 如果某个字母有误,请在重写提示词之前使用新的种子重新生成。
没有负面提示词 — 请描述你想要什么
标准的Flux管道不使用负面提示词。与其说“没有人”,不如描述其正面版本:“黎明时分的空旷海滩”。与其说“不模糊”,不如指定“锐利对焦,清晰细节”。
选择Flux模型
- Flux Schnell — 最快,适合草稿和探索。
- Flux Dev — 更高质量,非商业用途的开放权重,LoRA流行。
- Flux Pro / newer releases — 最佳提示词遵循度和细节,可通过API获取。
- Flux Kontext — 根据文本指令编辑现有图像(“让它变成冬天”,“把夹克改成红色”)。
相同的提示词风格适用于所有这些模型。
须知设置
- 引导(Guidance) — Flux Dev在较低的引导值下表现最佳,低于Stable Diffusion;大约3-4是常见默认值。较高的值会增加对比度和饱和度,但可能看起来不自然。
- 步数(Steps) — Dev模型大约20-30步;Schnell模型设计为1-4步。
- 长宽比(Aspect ratio) — 在编写提示词之前选择;垂直的9:16构图应与宽屏的16:9场景描述方式不同。
示例
摄影
A close-up portrait of an elderly beekeeper in a white veil, smiling as
bees rest on her gloved hand. Late afternoon sun filters through apple
trees behind her. Shot on 85mm, shallow depth of field, natural colors.
插画
A flat vector illustration of a fox reading a book under a tree, autumn
leaves falling, limited palette of orange, teal and cream, clean lines,
children's book style.
带文本的海报
A minimalist travel poster for Kyoto showing a red torii gate on a misty
hillside, the word "KYOTO" in large white sans-serif letters across the
top, muted pastel colors, mid-century print texture.
从想法到Flux提示词
Flux提示词生成器能将一个简短的想法扩展成一个为Flux优化的描述性自然语言提示词。将结果复制到你选择的Flux工具中,或者直接发送给图像生成器。
试试 Flux 提示词生成器
适用于 Flux 的描述性自然语言提示词. 免费,无需注册。