提示词指南:Flux.2 [Klein]
Flux.2 [Klein] 是由 Black Forest Labs 开发的高响应度、紧凑型图像生成模型系列。模型搭载了先进的 T5 文本编码器,其强大的语义理解能力使你能够对画面风格、构图、文本渲染以及精准色彩进行指令级别的精细控制。
本指南将详细介绍释放 Flux.2 [Klein] 模型系列完整创意潜力所需的提示词编写技巧。
1. 使用自然语言进行提示词编写
Flux.2 在使用通顺的自然语言描述时表现最佳,而不是靠逗号分隔的“标签沙拉”或杂乱的关键词堆砌。
- 阐明元素关系:使用动词和介词来描述画面中各元素之间的关联(例如:
"A wooden mug resting on a rustic table next to a steaming bowl of soup"( rustic table 上放着木杯,旁边有一碗热汤),而不是堆砌"wooden mug, table, soup, rustic")。 - 清晰描述意图:描述画面中应该包含什么、呈现什么样的外观,以及需要传达什么样的氛围或艺术风格。
- 渐进式微调:从简单的描述开始生成,然后评估画面,一步步添加细节来调整主体、光影或构图,避免一次性重写所有内容。
2. 以描述代替否定(否定词的替换策略)
Flux.2 [Klein] 并不依赖独立的否定提示词(Negative Prompt)输入框。与其列出想要从画面中排除的元素(这往往会混淆文本编码器,反而导致这些元素出现在画面中),不如使用替换策略来直接描述画面所呈现的正向视觉状态。
当你脑海中出现否定句式时,请将其转换为你实际想看到的画面:
| 想要避免的元素(否定句式) | 推荐的正向替代描述(正向句式) |
|---|---|
no crowds, no people(无人群,无人类) | empty street, deserted pathway, solitary scene(空无一人的街道,荒凉的小径,静谧的场景) |
no modern elements(无现代元素) | traditional, historical, period-accurate(传统风貌,历史感,时代准确的) |
not dark(不要太暗) | brightly lit, sun-drenched, vibrant daylight(明亮的照明,阳光普照,充满活力的日光) |
no text, no logos(无文字,无标志) | clean unmarked surfaces, blank background(干净无痕的表面,空白背景) |
no background distractions(背景不杂乱) | plain studio background, smooth gradient backdrop(纯色影棚背景,平滑的渐变背景) |
not sad(不悲伤) | joyful, content, smiling(快乐的,满足的,微笑的) |
not running(不要奔跑) | walking peacefully, standing still(平静地散步,静止站立) |
not many(不要太多) | few, single, minimal(少许,单一的,极简的) |
用视觉化的思维去思考。多去描述那些应该存在并占据画面空间的视觉元素,而不是向模型下达“不要生成什么”的指令。
3. 画面风格、美学与情绪标注
FLUX.2 能够生成逼真的写实照片、复杂的插画或者融合风格。你可以指定具体的年代、相机和胶片型号,或者在提示词末尾添加明确的情绪和风格标注。
写实照片时代与胶片风格
若要获得独特的摄影质感,请指定具体的年代、相机或胶片型号,而不要使用像 “photorealistic”(写实)这样泛泛的质量词汇:
| 风格 | 关键描述词与示例 |
|---|---|
| 现代数字 | "shot on Sony A7IV, clean sharp, high dynamic range" |
| 2000 年代数码相机 | "early digital camera, slight noise, flash photography, candid, 2000s digicam style" |
| 80 年代复古 | "film grain, warm color cast, soft focus, 80s vintage photo" |
| 胶片质感 | "shot on Kodak Portra 400, natural grain, organic colors" |
风格与情绪标注
为了保持特定的美学一致性,你可以在提示词末尾添加风格和情绪标注:
[画面的具体描述]. Style: Country chic meets luxury lifestyle editorial. Mood: Serene, romantic, grounded.
4. 十六进制颜色代码的精准色彩控制
Flux.2 最强悍的功能之一是能够通过标准的 十六进制颜色代码 (Hex Codes) 匹配精准色彩。这对于契合品牌主色的市场营销设计、产品打样或特定色调的插画极具价值。
若要使用十六进制颜色,你可以直接在提示词中描述特定物体或渐变色块的颜色代码:
- 单色精准控制:
A sleek luxury eyeshadow palette with 6 pans, top row color #B76E79, middle row color #CD7F32, bottom row color #800020 - 色彩渐变效果:
A glass vase on a wooden table, the color of the vase is a gradient starting with color #02eb3c and finishing with color #edfa3c
5. 结构化提示词(JSON 提示词)
Flux.2 [Klein] 能够天然理解结构化的视觉描述。你可以将提示词组织为类似于 JSON 的结构化文本块,把主体、背景、光影和镜头角度分开说明,而不必强行堆砌成一段冗长混乱的自然语言。
结构化提示词示例:
{
"subject": "A minimalist glass bottle containing orange essential oil",
"background": "a smooth, light concrete tabletop against a clean pastel wall",
"lighting": "soft, warm natural morning light entering from a side window",
"style": "clean product photography, extremely detailed",
"camera_angle": "eye-level, centered, macro lens",
"composition": "shallow depth of field, soft shadows"
}
你可以直接将此 JSON 格式的文本块复制并粘贴到提示词输入框中。模型的 Transformer 模块经过特别训练,能以极高精度解析这些结构化键值对。
6. 高清晰度英文文本渲染与字体排版
Flux.2 [Klein] 在图像中渲染清晰可读的英文文本表现极其优秀。若想获得最佳排版效果,请遵循以下三条规则:
- 使用英文双引号:务必将要呈现的精准字符包裹在英文双引号(
"")中(例如"COFFEE")。 - 指明具体位置:在画面中明确指出文字应该出现在哪里(例如
"The text 'JAVA' appears in bold letters centered above the doorway")。 - 指定字体排版风格:清晰描述字体的质感与样式,例如 "neon"(霓虹字)、"serif"(衬线体)、"sans-serif"(无衬线体)、"raised chrome"(浮雕铬金)或 "chipped paint"(斑驳漆面)。
字体排版风格参考表
| 风格 | 视觉效果 | 提示词示例 |
|---|---|---|
| 3D 立体文字 | 具有厚度和空间体量感,冲击力强 | "raised chrome letters with realistic metal reflections" |
| 霓虹灯光效 | 发光、带有环境氛围感 | "glowing neon text with electric blue light" |
| 复古招牌 | 真实感、带有风化陈旧痕迹 | "weathered painted text with chipped paint and rust" |
| 场景融合嵌入 | 自然融入背景环境 | "carved directly into the ancient stone wall" |
| 物体印刷媒介 | 印刷在画面中的道具上 | "printed on a newspaper being read by the character" |
文本渲染实用技巧
- 提示词前置:将包含文本的描述放在提示词的头部,模型的渲染成功率更高。
- 精简文本长度:简短的英文单词/词组渲染效果最好,过长句子的错字率会明显上升。
- 契合品牌色彩:将十六进制颜色代码与文本风格结合使用:
"The logo text 'ACME' in color #FF5733"。
7. 镜头、光影与风格融合
如果你想让生成的作品更具专业质感与高级艺术审美,建议在提示词中追加特定的摄影参数、光影配置或风格融合描述:
相机与镜头模拟
- 细化设备型号:
Shot on Hasselblad X2D, 80mm lens, f/2.8或Canon 5D Mark IV, 35mm f/1.4 lens。 - 明确景深控制:
shallow depth of field, razor-sharp focus on the subject, background softly blurred(浅景深,主体焦距极其锐利,背景平滑虚化)。
专业光影配置
- 雷姆兰光(Rembrandt Lighting):在面部侧面形成经典戏剧感的三角光,适用于高级人像肖像。
- 侧面分光(Split Lighting):90度侧光照亮半张脸,高对比度,富有艺术感。
- 明暗对照法(Chiaroscuro):深邃阴影与局部强光的强烈对比,营造浓厚的叙事感。
- 环境实景光(Practical Lighting):利用画面中可见的光源(如霓虹灯、台灯、LED 灯带)照亮场景,增强真实度。
- 自然光照品质:在提示词中指明软窗光 (window light)、温暖柔和的金黄时刻 (golden hour) 或 moody 的蓝色时刻 (blue hour)。
艺术风格融合
你可以将截然不同的设计流派融合在统一的色彩语境下:
An ancient Greek marble statue, infused with cyberpunk neon lighting, holographic overlays, and electric blue and magenta glow effects, set against a dark futuristic background.
8. 使用 FLUX.2 进行图像编辑
FLUX.2 支持自然语言图像编辑,允许你使用单张或多张参考图片(Reference Images)来修改现有图像。
单图参考编辑 (Single-Reference Editing)
单图参考编辑允许你通过自然语言指令修改单张图像。模型能够非常精准地识别主体,并根据你的正向描述修改场景。
核心应用场景与提示词示例:
- 背景替换 (Background Replacement):指定新背景以替换原有的背景。
- 示例:
"Replace the background with a sun-drenched sunset beach, keeping the subject in focus"(将背景替换为阳光充足 of 日落沙滩,保持主体对焦)
- 示例:
- 风格迁移 (Style Transfer):将图像风格转换为另一种艺术介质或视觉外观。
- 示例:
"Turn this photograph into an impasto oil painting with visible palette knife strokes"(将此照片转换为具有明显调色刀笔触 of 厚涂油画)
- 示例:
- 物体操控 (Object Manipulation):在画面中添加、删除或替换元素。
- 示例:
"Replace the bicycle with a brown horse standing in the same spot"(将自行车替换为站在相同位置 of 棕色马)
- 示例:
- 色彩与材质更换 (Color & Material Swaps):使用十六进制代码精确控制颜色,或改变物体材质。
- 示例:
"Change the color of the shirt to #800020"(将衬衫颜色更改为 #800020)或"Transform the wooden coffee mug into polished silver"(将木制咖啡杯转换为抛光银杯)
- 示例:
- 光影与环境调整 (Lighting & Environment):修改季节细节、天气或一天中的时间。
- 示例:
"Add snow falling on the ground and trees, changing the season to winter while keeping the house unchanged"(在地面和树木上添加飘雪,将季节更改为冬季,同时保持房屋不变)
- 示例:
- 文本编辑 (Text Editing):替换或插入文字排版。
- 示例:
"Change the neon text on the sign to read 'OPEN NOW' in warm orange glow"(将招牌上的霓虹文字更改为暖橙色光芒 of “OPEN NOW”)
- 示例:
| 推荐的编辑提示词(正向且具体) | 应当避免的提示词(模糊且主观) |
|---|---|
"Change the shirt color to red"(将衬衫颜色改为红色) | "Make it look better"(让它看起来更好) |
"Replace the background with a sunset beach"(将背景替换为日落沙滩) | "Improve the lighting"(改善光影) |
"Add snow to the scene, keep everything else unchanged"(在场景中添加雪,其他保持不变) | "Make it look more professional"(让它看起来更专业) |
"Turn this photo into an oil painting"(将此照片转换为油画) | "Fix the image"(修一下图) |
多图参考编辑 (Multi-Reference Editing)
多图参考编辑允许你结合多张参考图像来合成新场景、迁移风格或保持角色一致性。
核心应用场景:
- 场景合成 (Scene Compositing):将一张图中的主体放入另一张图的背景/场景中。
- 示例:
"Place the cat from image 1 on the sofa in the room shown in image 2"(将图 1 中的猫放在图 2 所示房间 of 沙发上)
- 示例:
- 风格与材质迁移 (Style & Material Transfer):将一张参考图的艺术风格或纹理贴图应用到另一张图的主体上。
- 示例:
"Redraw the car in image 1 in the impasto style of image 2"(以图 2 的厚涂油画风格重新绘制图 1 中的汽车)或"Apply the animal print pattern from image 2 onto the ceramic plate in image 1"(将图 2 中的动物花纹图案应用到图 1 中的瓷盘上)
- 示例:
- 产品与时尚合成 (Product & Fashion Composites):将服装参考图组合成成套搭配,或者将产品图放入特定风格的实景样机中。
- 角色一致性 (Character Consistency):参考输入图像中的面部细节或服装,在生成的多张不同场景中保持角色身份的一致。
9. 实用提示词预设模板
你可以在提示词编辑器中直接套用或修改以下预设模板:
专业商务半身照
A medium-shot portrait of a smiling adult woman in her late 30s, professional business casual clothing, shot on Sony A7IV, 85mm lens, f/1.8, warm window lighting from the side, clean modern office background softly blurred, realistic photography, no logos, no text.
扁平化矢量插画
A flat vector illustration of a person reading a book on a green park bench, stylized green trees in the background, limited color palette of warm orange and cool teal, minimal shading, clean modern design, no outlines, simple unmarked background.
极简产品静物照
A studio product shot of a luxury watch, metallic gold bezel, dark leather strap, placed on a black obsidian surface, dramatic Rembrandt lighting, dark charcoal background with a subtle gradient, extremely sharp details, no text, no branding.