FLUX.2 Prompting – Black Forest Labs推出的FLUX.2使用指南(中英版)
FLUX.2提示词指南是Black Forest Labs官方推出的FLUX.2使用指南,主要介绍如何通过结构化的JSON提示、精确的十六进制颜色控制及多参考图像编辑技术生成高质量的图像和设计。指南详细讲解了JSON提示的基础架构、分步构建提示的方法、十六进制颜色代码的使用技巧、信息图表和数据可视化的生成方式、多语言提示的优势、漫画条和顺序艺术的创作方法、逼真风格的实现,及多参考图像编辑的强大功能。指南提供最佳实践总结和快速参考表格,帮助用户更好地掌握FLUX.2的使用技巧。

掌握FLUX.2提示词编写技巧,包括掌握结构化JSON、十六进制颜色与多参考图技法
FLUX.2具备卓越的指令跟随能力,支持结构化JSON提示、精准十六进制颜色控制及多参考图编辑等进阶技术。本指南将完整解析这些核心功能,助您创造惊艳的视觉作品。
不支持否定提示:FLUX.2 不支持否定提示。请专注于描述您想要的画面内容,而不是您不想要什么。
JSON结构化提示
FLUX.2 擅长解析结构化的 JSON 指令,让您能精确控制图像的各个方面。这对于生产工作流程和自动化尤为重要。
基本模式逐步构建提示词
{
"scene": "overall scene description",
"subjects": [
{
"description": "detailed subject description",
"position": "where in frame",
"action": "what they're doing"
}
],
"style": "artistic style",
"color_palette": ["#hex1", "#hex2", "#hex3"],
"lighting": "lighting description",
"mood": "emotional tone",
"background": "background details",
"composition": "framing and layout",
"camera": {
"angle": "camera angle",
"lens": "lens type",
"depth_of_field": "focus behavior"
}
}
{
"scene": "整体场景描述",
"subjects": [
{
"description": "详细主体描述",
"position": "在画面中的位置",
"action": "他们正在做什么"
}
],
"style": "艺术风格",
"color_palette": ["#hex1", "#hex2", "#hex3"],
"lighting": "灯光描述",
"mood": "情感基调",
"background": "背景细节",
"composition": "构图和布局",
"camera": {
"angle": "相机角度",
"lens": "镜头类型",
"depth_of_field": "焦点行为"
}
}
让我们逐步构建产品图,看看每个元素是如何发挥作用的。
步骤 1:生成咖啡杯
{
"scene": "Professional studio product photography setup with polished concrete surface",
"subjects": [
{
"description": "Minimalist ceramic coffee mug with steam rising from hot coffee inside",
"pose": "Stationary on surface",
"position": "Center foreground on polished concrete surface",
"color_palette": ["matte black ceramic"]
}
],
"style": "Ultra-realistic product photography with commercial quality",
"color_palette": ["matte black", "concrete gray", "soft white highlights"],
"lighting": "Three-point softbox setup creating soft, diffused highlights with no harsh shadows",
"mood": "Clean, professional, minimalist",
"background": "Polished concrete surface with studio backdrop",
"composition": "rule of thirds",
"camera": {
"angle": "high angle",
"distance": "medium shot",
"focus": "Sharp focus on steam rising from coffee and mug details",
"lens-mm": 85,
"f-number": "f/5.6",
"ISO": 200
}
}
{
"scene": "专业工作室产品摄影设置,带有抛光混凝土表面",
"subjects": [
{
"description": "极简主义陶瓷咖啡杯,杯内热咖啡中升起的蒸汽",
"pose": "静止于表面",
"position": "位于抛光混凝土表面的中心前景",
"color_palette": ["哑光黑色陶瓷"]
}
],
"style": "具有商业品质的超逼真产品摄影",
"color_palette": ["哑光黑色", "混凝土灰色", "柔和白色高光"],
"lighting": "三点式柔光箱布光,营造柔和、弥散的高光,无强烈阴影",
"mood": "干净、专业、极简",
"background": "带有工作室背景的抛光混凝土表面",
"composition": "采用三分法构图",
"camera": {
"angle": "高角度",
"distance": "中焦距",
"focus": "对焦于咖啡上升的蒸汽以及咖啡杯的细节",
"lens-mm": 85,
"f-number": "f/5.6",
"ISO": 200
}
}

步骤2:添加第二个不同颜色的马克杯
{
"scene": "Professional studio product photography setup with polished concrete surface",
"subjects": [
{
"description": "Minimalist ceramic coffee mug with steam rising from hot coffee inside",
"pose": "Stationary on surface",
"position": "Center foreground on polished concrete surface",
"color_palette": ["matte black ceramic"]
},
{
"description": "Minimalist ceramic coffee mug, matching design to the black mug",
"pose": "Stationary on surface",
"position": "Right side of the black mug on polished concrete surface",
"color_palette": ["matte yellow ceramic"]
}
],
"style": "Ultra-realistic product photography with commercial quality",
"color_palette": ["matte black", "matte yellow", "concrete gray", "soft white highlights"],
"lighting": "Three-point softbox setup creating soft, diffused highlights with no harsh shadows",
"mood": "Clean, professional, minimalist",
"background": "Polished concrete surface with studio backdrop",
"composition": "rule of thirds",
"camera": {
"angle": "high angle",
"distance": "medium shot",
"focus": "Sharp focus on steam rising from coffee and both mugs in frame",
"lens-mm": 85,
"f-number": "f/5.6",
"ISO": 200
}
}
{
"scene": "专业工作室产品摄影设置,带有抛光混凝土表面",
"subjects": [
{
"description": "极简主义陶瓷咖啡杯,杯内热咖啡中升起的蒸汽",
"pose": "静止于表面",
"position": "位于抛光混凝土表面的中心前景",
"color_palette": ["哑光黑色陶瓷"]
},
{
"description": "与黑色咖啡杯设计相匹配的极简主义陶瓷咖啡杯",
"pose": "静止于表面",
"position": "位于黑色咖啡杯右侧的抛光混凝土表面",
"color_palette": ["哑光黄色陶瓷"]
}
],
"style": "具有商业品质的超逼真产品摄影",
"color_palette": ["哑光黑色", "哑光黄色", "混凝土灰色", "柔和白色高光"],
"lighting": "三点式柔光箱布光,营造柔和、弥散的高光,无强烈阴影",
"mood": "干净、专业、极简",
"background": "带有工作室背景的抛光混凝土表面",
"composition": "采用三分法构图",
"camera": {
"angle": "高角度",
"distance": "中焦距",
"focus": "对焦于咖啡上升的蒸汽以及画面中的两个咖啡杯",
"lens-mm": 85,
"f-number": "f/5.6",
"ISO": 200
}
}

步骤 3:改变蒸汽的颜色
{
"scene": "Professional studio product photography setup with polished concrete surface",
"subjects": [
{
"description": "Minimalist ceramic coffee mug with bright red steam rising from hot coffee inside",
"pose": "Stationary on surface",
"position": "Center foreground on polished concrete surface",
"color_palette": ["matte black ceramic", "bright red steam"]
},
{
"description": "Minimalist ceramic coffee mug, matching design to the black mug",
"pose": "Stationary on surface",
"position": "Right side of the black mug on polished concrete surface",
"color_palette": ["matte yellow ceramic"]
}
],
"style": "Ultra-realistic product photography with commercial quality",
"color_palette": ["matte black", "matte yellow", "bright red", "concrete gray", "soft white highlights"],
"lighting": "Three-point softbox setup creating soft, diffused highlights with no harsh shadows",
"mood": "Clean, professional, minimalist",
"background": "Polished concrete surface with studio backdrop",
"composition": "rule of thirds",
"camera": {
"angle": "high angle",
"distance": "medium shot",
"focus": "Sharp focus on steam rising from coffee and both mugs in frame",
"lens-mm": 85,
"f-number": "f/5.6",
"ISO": 200
}
}
{
"scene": "专业工作室产品摄影设置,带有抛光混凝土表面",
"subjects": [
{
"description": "极简主义陶瓷咖啡杯,杯内热咖啡中升起明亮的红色蒸汽",
"pose": "静止于表面",
"position": "位于抛光混凝土表面的中心前景",
"color_palette": ["哑光黑色陶瓷", "明亮红色蒸汽"]
},
{
"description": "与黑色咖啡杯设计相匹配的极简主义陶瓷咖啡杯",
"pose": "静止于表面",
"position": "位于黑色咖啡杯右侧的抛光混凝土表面",
"color_palette": ["哑光黄色陶瓷"]
}
],
"style": "具有商业品质的超逼真产品摄影",
"color_palette": ["哑光黑色", "哑光黄色", "明亮红色", "混凝土灰色", "柔和白色高光"],
"lighting": "三点式柔光箱布光,营造柔和、弥散的高光,无强烈阴影",
"mood": "干净、专业、极简",
"background": "带有工作室背景的抛光混凝土表面",
"composition": "采用三分法构图",
"camera": {
"angle": "高角度",
"distance": "中焦距",
"focus": "对焦于咖啡上升的蒸汽以及画面中的两个咖啡杯",
"lens-mm": 85,
"f-number": "f/5.6",
"ISO": 200
}
}

您可以直接在提示符中包含 JSON 数据,也可以将其转换为自然语言。FLUX.2 支持这两种格式。
十六进制颜色代码提示
FLUX.2 支持使用十六进制代码进行精确的颜色匹配。对于品牌一致性和设计工作至关重要。
基本语法
使用“color”或“hex”等关键字,后跟代码,表示十六进制颜色:
The vase has color #02eb3c
The background is hex #1a1a2e
花瓶的颜色是: #02eb3c
背景的颜色是: #1a1a2e
渐变色
通过指定起始颜色和结束颜色应用渐变:
提示: “A vase on a table in living room, the color of the vase is a gradient, starting with color #02eb3c and finishing with color #edfa3c. The flowers inside the vase have the color #ff0088” “客厅桌子上放着一个花瓶,花瓶的颜色是渐变色,从#02eb3c开始,到#edfa3c结束。花瓶里的花是#ff0088。”

JSON 提示中的颜色
将十六进制颜色与结构化提示相结合,实现最大程度的控制:
{
"scene": "Makeup flat lay on marble surface",
"subjects": [
{
"description": "eyeshadow palette",
"colors": ["#E91E63", "#9C27B0", "#673AB7", "#3F51B5"]
}
],
"style": "beauty product photography",
"lighting": "soft diffused overhead lighting"
}
{
"scene": "大理石表面上的美妆平铺展示",
"subjects": [
{
"description": "眼影盘",
"colors": ["#E91E63", "#9C27B0", "#673AB7", "#3F51B5"]
}
],
"style": "美妆产品摄影",
"lighting": "柔和的漫射顶光"
}
十六进制代码与特定对象明确关联时效果最佳。诸如“在某处使用#FF0000”之类的模糊描述可能会导致结果不一致。
信息图表和数据可视化
FLUX.2 能生成排版清晰、布局结构合理的图表。
信息图表模
{
"type": "infographic",
"title": "Your Main Title",
"subtitle": "Supporting context",
"sections": [
{
"heading": "Section 1",
"content": "Key information",
"visual": "icon or chart type"
}
],
"color_scheme": ["#primary", "#secondary", "#accent"],
"style": "modern, clean, corporate"
}
{
"type": "信息图",
"title": "主标题",
"subtitle": "辅助说明",
"sections": [
{
"heading": "第一部分",
"content": "关键信息",
"visual": "图标或图表类型"
}
],
"color_scheme": ["#主色", "#辅助色", "#强调色"],
"style": "现代、简洁、商务"
}
提示示例:
“Create a vertical infographic about coffee consumption worldwide. Title: ‘Global Coffee Culture’. Include 3 sections with statistics, use icons for each country, color scheme #4A2C2A (brown) and #F5E6D3 (cream). Modern minimalist style with clean typography.”“制作一张关于全球咖啡消费的竖版信息图。标题:‘全球咖啡文化’。包含三个部分,分别展示统计数据,每个国家使用图标,配色方案为#4A2C2A(棕色)和#F5E6D3(米色)。采用现代简约风格,字体简洁。”

排版与设计
FLUX.2 擅长生成简洁的排版、产品营销材料和杂志版面。
产品广告: “Samsung Galaxy S25 Ultra product advertisement, ‘Ultra-strong titanium’ headline, ‘Shielded in a strong titanium frame, your Galaxy S25 Ultra always stays protected’ subtext, close-up of phone edge showing titanium frame, dark gradient background, clean minimalist tech aesthetic, professional product photography”“三星 Galaxy S25 Ultra 产品广告,标题为‘超强钛金属’,副标题为‘坚固的钛金属边框,让您的 Galaxy S25 Ultra 始终受到保护’,手机边缘特写,展示钛金属边框,深色渐变背景,简洁的极简科技美学,专业产品摄影”
杂志封面:“Women’s Health magazine cover, April 2025 issue, ‘Spring forward’ headline, woman in green outfit sitting on orange blocks, white sneakers, ‘Covid: five years on’ feature text, ‘15 skincare habits’ callout, professional editorial photography, magazine layout with multiple text elements”“《女性健康》杂志封面,2025年4月刊,标题为‘春回大地’,一位身穿绿色套装的女士坐在橙色方块上,脚穿白色运动鞋,专题文章为‘新冠疫情:五年后’,宣传语为‘15个护肤习惯’,专业编辑摄影,杂志版面包含多个文本元素”

多语言提示
FLUX.2 拥有出色的多语言理解能力。您可以使用母语进行提示,获得更具文化真实性的结果。
French: “Un marché alimentaire dans la campagne normande, des marchands vendent divers légumes, fruits. Lever de soleil, temps un peu brumeux”
Thai: “ตลาดอาหารเช้าในชนบทใกล้กรุงเทพฯ พ่อค้าแม่ค้ากำลังขายผักและผลไม้นานาชนิด บรรยากาศยามพระอาทิตย์ขึ้น มีหมอกจาง ๆ ปกคลุม สงบและอบอุ่น”
Korean: “서울 도심의 옥상 정원, 저녁 노을이 지는 하늘 아래에서 사람들이 작은 등불을 켜고 있다. 화려한 네온사인이 멀리 반짝이고, 정원에는 다양한 꽃들이 피어 있다. 분위기는 따뜻하고 낭만적이다
中文:“在诺曼底乡村的一个食品市场,商贩们正在售卖各种蔬菜和水果。日出时分,天气有些雾蒙蒙的。”

使用你所创作内容的母语进行提示,通常会产生更具文化真实性的结果——当地的市场、建筑和氛围都能更准确地呈现出来。
漫画和连环画
创作风格统一、人物形象连贯的漫画分镜。关键在于细致刻画人物,在所有分镜中保持人物形象的一致性。
扩散者的故事
分别生成每个面板,同时保持角色描述的一致性:
画面一提示:危机
“Style: Classic superhero comic Character: Worried scientist frantically typing on glowing holographic keyboard, face illuminated by blue light showing deep concern Setting: Massive computer server room with sparking circuits and red warning lights flashing on monitors Text: ‘The AI models are corrupting! We need Diffusion Man!’ Mood: Tense, urgent + dramatic blue and red tones”风格:经典超级英雄漫画 人物:忧心忡忡的科学家在发光的全息键盘上疯狂敲击,脸上被蓝光照亮,神情忧虑 场景:巨大的计算机服务器机房,电路火花四溅,显示器上的红色警示灯闪烁 文字:“人工智能模型正在崩溃!我们需要扩散人!” 氛围:紧张、紧急,戏剧性的蓝红色调
画面二提示:转变
“Style: Classic superhero comic with dynamic action lines and electric energy effects Character: Diffusion Man/Mild-mannered programmer (30 years old, brown skin tone, short natural fade haircut with black hair, black-framed glasses, light blue button-up shirt, athletic build, strong jawline) body begins to glow with swirling gradients of deep purple, electric blue, and hot pink energy, mathematical equations and neural network patterns flowing around him in glowing lines Setting: Small office with computer monitors displaying code and error messages Text: ‘When noise becomes signal, I am… DIFFUSION MAN!’ Mood: Powerful, transformative + dramatic backlighting and energy radiating outward in waves”风格:经典超级英雄漫画风格,动感十足的动作线条和电能特效。角色:扩散人/温文尔雅的程序员(30岁,棕色皮肤,黑色短渐变发型,黑框眼镜,浅蓝色衬衫,身材健硕,下颌线条分明),身体开始散发出深紫色、电光蓝和亮粉色的漩涡状能量,数学方程式和神经网络模式以发光线条的形式环绕着他。场景:小型办公室,电脑显示器上显示着代码和错误信息。文字:“当噪音变成信号,我就是……扩散人!”氛围:强大、变革性,戏剧性的背光和能量以波浪状向外辐射。
画面三提示:战斗
“Style: Classic superhero comic with explosive action and dynamic composition Character: Diffusion Man (athletic 30-year-old with brown skin tone and short natural fade haircut with black hair, wearing sleek bodysuit with gradient patterns from deep purple to electric blue to hot pink, glowing neural network emblem on chest with interconnected nodes, short gradient cape, purple half-mask showing strong jawline and confident expression) extends both hands forward in powerful stance, shooting beams of structured noise and latent space energy at corrupted digital monsters made of glitching pixels and broken code Setting: Digital cyberspace environment with floating data cubes and cascading binary code Text: ‘Time to DENOISE this chaos!’ Mood: Intense, action-packed + bright energy flashes and electric effects”风格:经典超级英雄漫画风格,动作场面震撼,构图动感十足。角色:扩散侠(一位30岁左右的健壮男子,肤色黝黑,留着自然渐变的短发,黑色头发,身穿线条流畅的紧身衣,衣身饰有从深紫到电光蓝再到亮粉色的渐变图案,胸前印有发光的神经网络标志,节点相互连接,披着渐变短披风,紫色半面罩勾勒出棱角分明的下颌和自信的表情)。他双臂向前伸展,摆出强有力的姿势,向由故障像素和损坏代码组成的腐败数字怪物发射结构噪声和潜在空间能量光束。场景:数字网络空间环境,漂浮的数据立方体和级联的二进制代码。文字:“是时候消除这片混乱的噪声了!”氛围:紧张刺激,动作场面火爆,伴随着耀眼的能量闪光和电光特效。
画面四提示:胜利
“Style: Classic superhero comic with warm, triumphant colors and clean composition Character: Diffusion Man (athletic 30-year-old with brown skin tone and short natural fade haircut with black hair, wearing sleek gradient bodysuit from deep purple to electric blue to hot pink, glowing neural network emblem on chest, short gradient cape flowing behind him, purple half-mask, strong jawline, confident heroic smile) stands heroically giving thumbs up gesture to grateful scientist beside him, her computer screens now showing stable green indicators and success messages Setting: Calm server room with soft blue ambient lighting and orderly data streams flowing smoothly in organized patterns Text: ‘You saved us, Diffusion Man! The models are generating perfectly again!’ Mood: Victorious, hopeful + golden sunset-like tones streaming through windows”风格:经典超级英雄漫画风格,色彩温暖而充满胜利感,构图简洁。人物:扩散侠(一位30岁左右的健壮男子,棕色皮肤,黑色短渐变发型,身穿由深紫色、电光蓝和亮粉色渐变的紧身衣,胸前印有发光的神经网络标志,披着一条渐变短披风,戴着紫色半面罩,下颌线条分明,脸上带着自信的英雄笑容)。他英勇地站着,向身旁感激涕零的科学家竖起大拇指,科学家的电脑屏幕上显示着稳定的绿色指示灯和成功信息。场景:宁静的服务器机房,柔和的蓝色环境灯光,有序的数据流流畅地运行。文字:“你救了我们,扩散侠!模型又完美地生成了!”氛围:胜利的喜悦,充满希望,金色的夕阳余晖透过窗户洒进来。

角色一致性:注意“扩散人”的描述在各个分镜中都保持了细节上的一致性——棕色的肤色、自然的短渐变发型、从紫色到蓝色到粉色的渐变紧身衣、神经网络标志、紫色半面具。在每个分镜提示中都重复这些细节。
照片写实风格
FLUX.2 在照片级写实图像生成方面表现出色。参考特定时代和技术,打造独具特色的视觉效果。
风格参考指南
| 风格 | 关键描述符 |
|---|---|
| 现代数字 | “使用索尼A7IV拍摄,画面清晰锐利,动态范围高” |
| 2000年代数码相机 | “早期数码相机,轻微噪点,闪光灯拍摄,抓拍,2000年代数码相机风格” |
| 80年代复古风 | “胶片颗粒感、暖色调、柔焦效果、80年代复古照片” |
| 模拟胶片 | “采用柯达Portra 400胶片拍摄,天然颗粒,自然色彩” |
Modern Photorealism: “Soaking wet tiger cub taking shelter under a banana leaf in the rainy jungle, close up photo”现代超写实主义: “一只浑身湿透的小老虎在雨后的丛林中躲在香蕉叶下,特写照片”
2000s Digicam: “Sloth out drinking in Bangkok at night in a street full of party folks, 2000s digicam style, people in the background fading”2000 年代数码相机风格: “夜晚,一只懒虫在曼谷一条挤满派对人群的街道上喝酒,2000 年代数码相机风格,背景中的人群渐渐消失”
80s Vintage: “A group of baby penguins in a trampoline park, having the time of their lives, 80s vintage photo”80年代复古照片: “一群小企鹅在蹦床公园里玩得不亦乐乎,80年代复古照片”

相机和镜头模拟
为获得真实效果,请务必具体设置相机参数:
Shot on Hasselblad X2D, 80mm lens, f/2.8, natural lighting
使用哈苏 X2D 相机拍摄,80mm 镜头,光圈 f/2.8,自然光
Canon 5D Mark IV, 24-70mm at 35mm, golden hour, shallow depth of field
使用佳能 5D Mark IV 相机拍摄,镜头焦距 35mm,黄金时段,浅景深
多参考图像编辑
*[专业版] API 的输入+输出总限制为 9MP。1MP 输出时最多可以使用 8 张参考图像,2MP 输出时最多可以使用 7 张,依此类推。
多重引用功能非常强大,可用于:
- 时尚拍摄:将服装单品搭配成时尚造型
- 室内设计:在房间里摆放家具和装饰品
- 产品合成:将多个产品组合成场景
- 角色一致性:在各种变体中保持角色身份
时尚大片范例(8张参考图)
Prompt: “A spiritual architectural photograph captured on expired Kodak Ektachrome 64 slide film cross-processed from 1987 with a 35mm spherical lens at f/5.6, featuring model standing before small forest chapel in clearing. The model wears the outfit, positioned on stone steps leading to wooden chapel, red creating stark contrast against weathered brown timber. Background shows traditional Schwarzwald chapel – dark wood construction with small bell tower, carved wooden door, religious paintings under eaves, surrounding clearing with wild flowers, tall firs creating natural cathedral, small cemetery with wooden crosses. Dappled forest light at 1/125. Cross-processed Ektachrome showing extreme color shifts – cyan-magenta split, warm wood tones pushed to orange-brown, oversaturated red, crushed black shadows, blown highlights, heavy grain creating mysterious atmosphere. Composition emphasizes sacred spaces and pilgrimage. Thomas Struth church interiors, Candida Höfer architectural documentation, religious tourism meets fashion editorial, spiritual Schwarzwald mysticism.”“这是一张摄于1987年的柯达Ektachrome 64幻灯片胶片照片,采用35mm球面镜头,光圈f/5.6,经交叉冲洗处理。照片中,模特站在林间空地上的一座小型森林教堂前。模特身着红色服装,站在通往木质教堂的石阶上,红色服装与风化的棕色木材形成鲜明对比。背景展现了传统的黑森林教堂——深色木结构,带有小钟楼、雕花木门、屋檐下的宗教绘画、周围开满野花的空地、高耸的冷杉构成天然的教堂,以及带有木制十字架的小型墓地。照片采用1/125秒的快门速度,拍摄时森林光线斑驳。交叉冲洗的Ektachrome胶片呈现出极端的色彩偏移——青色和品红色分离,温暖的木色调被推至橙棕色,红色过饱和,黑色阴影被压暗,高光过曝,厚重的颗粒感营造出神秘的氛围。构图强调了神圣的空间和朝圣的意义。托马斯·斯特鲁斯教堂内部,坎迪达·霍弗建筑文献,宗教旅游融合时尚杂志的风格,以及黑森林的神秘主义精神。”

在多参考图编辑模式下,需明确描述每张参考图的具体用途。该模型能根据您的提示,将不同参考图中的服装单品、配饰元素及风格特征融合成协调统一的场景。
即时上采样
FLUX.2 提供了一个prompt_upsampling参数,能自动优化您的提示信息,获得更好的结果。对于以下情况非常有用:
- 快速迭代,无需编写详细提示
- 探索创意变体
- 当你有了基本概念但想要更丰富的输出时
提示词升频技术可自动为您的提示添加细节与语境。在模型扩展视觉元素的同时,您的原始创作意图将得到完整保留。
最佳实践总结
- 控制结构:当您需要精确控制多个元素时,请使用 JSON 结构化提示。从简单的开始,根据需要逐步增加复杂性。
- 颜色要具体明确:始终将十六进制代码与特定对象关联起来。“这辆车的代码是#FF0000”比“在图像中使用红色#FF0000”效果更好。
- 描述你想要什么:FLUX.2 没有否定提示。例如,不要说“没有模糊”,要说“始终清晰对焦”。不要说“没有人”,要描述“空旷的场景”。
- 参考相机和风格:为获得逼真的照片效果,请具体说明相机型号、镜头和胶片类型。“使用富士X-T5相机,35mm f/1.4镜头拍摄”比“专业照片”更能呈现真实效果。
- 使用母语:请用最能描述您所需文化背景的语言进行描述。例如,巴黎场景请用法语,动漫风格请用日语。
- 多层多重参考仔细:当使用多个输入图像时,请清楚地描述每个图像的作用:图像 1 代表主体,图像 2 代表风格,图像 3 代表背景。
速查参考
| 技术 | 何时使用 | 关键语法 |
|---|---|---|
| JSON 提示 | 复杂场景,自动化 | {"scene": "...", "style": "..."} |
| 十六进制颜色 | 品牌推广,精准匹配 |
color #FF5733或者hex #FF5733
|
| 相机参考 | 照片写实主义 | shot on [camera], [lens], [settings] |
| 风格时代 | 特定时期的造型 |
80s vintage,2000s digicam
|
| 多参考 | 合成图像 | [pro]: 8, [flex]: 10, [dev]: ~6 |
英文原文
Master FLUX.2 prompting with structured JSON, hex colors, and multi-reference techniques
FLUX.2 delivers exceptional prompt following and supports advanced techniques like structured JSON prompting, precise hex color control, and multi-reference image editing. This guide covers everything you need to create stunning results.
No negative prompts: FLUX.2 does not support negative prompts. Focus on describing what you want, not what you don’t want.
JSON Structured Prompting
FLUX.2 excels at interpreting structured JSON prompts, giving you precise control over every aspect of your image. This is particularly powerful for production workflows and automation.
The Base Schema
{
"scene": "overall scene description",
"subjects": [
{
"description": "detailed subject description",
"position": "where in frame",
"action": "what they're doing"
}
],
"style": "artistic style",
"color_palette": ["#hex1", "#hex2", "#hex3"],
"lighting": "lighting description",
"mood": "emotional tone",
"background": "background details",
"composition": "framing and layout",
"camera": {
"angle": "camera angle",
"lens": "lens type",
"depth_of_field": "focus behavior"
}
}
Building a Prompt Step by Step
Let’s build a product shot incrementally to see how each element contributes.
Step 1: Generating a coffee mug
{
"scene": "Professional studio product photography setup with polished concrete surface",
"subjects": [
{
"description": "Minimalist ceramic coffee mug with steam rising from hot coffee inside",
"pose": "Stationary on surface",
"position": "Center foreground on polished concrete surface",
"color_palette": ["matte black ceramic"]
}
],
"style": "Ultra-realistic product photography with commercial quality",
"color_palette": ["matte black", "concrete gray", "soft white highlights"],
"lighting": "Three-point softbox setup creating soft, diffused highlights with no harsh shadows",
"mood": "Clean, professional, minimalist",
"background": "Polished concrete surface with studio backdrop",
"composition": "rule of thirds",
"camera": {
"angle": "high angle",
"distance": "medium shot",
"focus": "Sharp focus on steam rising from coffee and mug details",
"lens-mm": 85,
"f-number": "f/5.6",
"ISO": 200
}
}

Step 2: Adding a second mug in a different color
{
"scene": "Professional studio product photography setup with polished concrete surface",
"subjects": [
{
"description": "Minimalist ceramic coffee mug with steam rising from hot coffee inside",
"pose": "Stationary on surface",
"position": "Center foreground on polished concrete surface",
"color_palette": ["matte black ceramic"]
},
{
"description": "Minimalist ceramic coffee mug, matching design to the black mug",
"pose": "Stationary on surface",
"position": "Right side of the black mug on polished concrete surface",
"color_palette": ["matte yellow ceramic"]
}
],
"style": "Ultra-realistic product photography with commercial quality",
"color_palette": ["matte black", "matte yellow", "concrete gray", "soft white highlights"],
"lighting": "Three-point softbox setup creating soft, diffused highlights with no harsh shadows",
"mood": "Clean, professional, minimalist",
"background": "Polished concrete surface with studio backdrop",
"composition": "rule of thirds",
"camera": {
"angle": "high angle",
"distance": "medium shot",
"focus": "Sharp focus on steam rising from coffee and both mugs in frame",
"lens-mm": 85,
"f-number": "f/5.6",
"ISO": 200
}
}

Step 3: Change the color of the steam
{
"scene": "Professional studio product photography setup with polished concrete surface",
"subjects": [
{
"description": "Minimalist ceramic coffee mug with bright red steam rising from hot coffee inside",
"pose": "Stationary on surface",
"position": "Center foreground on polished concrete surface",
"color_palette": ["matte black ceramic", "bright red steam"]
},
{
"description": "Minimalist ceramic coffee mug, matching design to the black mug",
"pose": "Stationary on surface",
"position": "Right side of the black mug on polished concrete surface",
"color_palette": ["matte yellow ceramic"]
}
],
"style": "Ultra-realistic product photography with commercial quality",
"color_palette": ["matte black", "matte yellow", "bright red", "concrete gray", "soft white highlights"],
"lighting": "Three-point softbox setup creating soft, diffused highlights with no harsh shadows",
"mood": "Clean, professional, minimalist",
"background": "Polished concrete surface with studio backdrop",
"composition": "rule of thirds",
"camera": {
"angle": "high angle",
"distance": "medium shot",
"focus": "Sharp focus on steam rising from coffee and both mugs in frame",
"lens-mm": 85,
"f-number": "f/5.6",
"ISO": 200
}
}

You can include the JSON directly in your prompt, or flatten it into natural language. FLUX.2 understands both formats.
HEX Color Code Prompting
FLUX.2 supports precise color matching using hex codes. This is essential for brand consistency and design work.
Basic Syntax
Signal hex colors with keywords like “color” or “hex” followed by the code:
"vase_color": "#02eb3c",
"background_color": "#1a1a2e"
Gradient Colors
Apply gradients by specifying start and end colors:
Prompt: “A vase on a table in living room, the color of the vase is a gradient, starting with color #02eb3c and finishing with color #edfa3c. The flowers inside the vase have the color #ff0088”

Color in JSON Prompts
Combine hex colors with structured prompts for maximum control:
{
"scene": "Makeup flat lay on marble surface",
"subjects": [
{
"description": "eyeshadow palette",
"colors": ["#E91E63", "#9C27B0", "#673AB7", "#3F51B5"]
}
],
"style": "beauty product photography",
"lighting": "soft diffused overhead lighting"
}
Hex codes work best when clearly associated with specific objects. Vague references like “use #FF0000 somewhere” may produce inconsistent results.
Infographics and Data Visualization
FLUX.2 can generate infographics with clean typography and structured layouts.
Infographic Template
{
"type": "infographic",
"title": "Your Main Title",
"subtitle": "Supporting context",
"sections": [
{
"heading": "Section 1",
"content": "Key information",
"visual": "icon or chart type"
}
],
"color_scheme": ["#primary", "#secondary", "#accent"],
"style": "modern, clean, corporate"
}
Example Prompt:
“Create a vertical infographic about coffee consumption worldwide. Title: ‘Global Coffee Culture’. Include 3 sections with statistics, use icons for each country, color scheme #4A2C2A (brown) and #F5E6D3 (cream). Modern minimalist style with clean typography.”

Typography and Design
FLUX.2 excels at generating clean typography, product marketing materials, and magazine layouts.

Product Ad: “Samsung Galaxy S25 Ultra product advertisement, ‘Ultra-strong titanium’ headline, ‘Shielded in a strong titanium frame, your Galaxy S25 Ultra always stays protected’ subtext, close-up of phone edge showing titanium frame, dark gradient background, clean minimalist tech aesthetic, professional product photography”
Magazine Cover: “Women’s Health magazine cover, April 2025 issue, ‘Spring forward’ headline, woman in green outfit sitting on orange blocks, white sneakers, ‘Covid: five years on’ feature text, ‘15 skincare habits’ callout, professional editorial photography, magazine layout with multiple text elements”
Multi-Language Prompting
FLUX.2 has excellent multi-language understanding. You can prompt in your native language for more culturally authentic results.

French: “Un marché alimentaire dans la campagne normande, des marchands vendent divers légumes, fruits. Lever de soleil, temps un peu brumeux”
Thai: “ตลาดอาหารเช้าในชนบทใกล้กรุงเทพฯ พ่อค้าแม่ค้ากำลังขายผักและผลไม้นานาชนิด บรรยากาศยามพระอาทิตย์ขึ้น มีหมอกจาง ๆ ปกคลุม สงบและอบอุ่น”
Korean: “서울 도심의 옥상 정원, 저녁 노을이 지는 하늘 아래에서 사람들이 작은 등불을 켜고 있다. 화려한 네온사인이 멀리 반짝이고, 정원에는 다양한 꽃들이 피어 있다. 분위기는 따뜻하고 낭만적이다”
Prompting in the native language of the content you’re creating often produces more culturally authentic results—local markets, architecture, and atmosphere are rendered with greater accuracy.
Comic Strips and Sequential Art
Create consistent comic panels with character continuity. The key is to define your character in detail and maintain that description across panels.
The Diffusion Man Story
Generate each panel separately while keeping character descriptions consistent:

Panel 1 Prompt: The Crisis
“Style: Classic superhero comic Character: Worried scientist frantically typing on glowing holographic keyboard, face illuminated by blue light showing deep concern Setting: Massive computer server room with sparking circuits and red warning lights flashing on monitors Text: ‘The AI models are corrupting! We need Diffusion Man!’ Mood: Tense, urgent + dramatic blue and red tones”
Panel 2 Prompt: The Transformation
“Style: Classic superhero comic with dynamic action lines and electric energy effects Character: Diffusion Man/Mild-mannered programmer (30 years old, brown skin tone, short natural fade haircut with black hair, black-framed glasses, light blue button-up shirt, athletic build, strong jawline) body begins to glow with swirling gradients of deep purple, electric blue, and hot pink energy, mathematical equations and neural network patterns flowing around him in glowing lines Setting: Small office with computer monitors displaying code and error messages Text: ‘When noise becomes signal, I am… DIFFUSION MAN!’ Mood: Powerful, transformative + dramatic backlighting and energy radiating outward in waves”
Panel 3 Prompt: The Battle
“Style: Classic superhero comic with explosive action and dynamic composition Character: Diffusion Man (athletic 30-year-old with brown skin tone and short natural fade haircut with black hair, wearing sleek bodysuit with gradient patterns from deep purple to electric blue to hot pink, glowing neural network emblem on chest with interconnected nodes, short gradient cape, purple half-mask showing strong jawline and confident expression) extends both hands forward in powerful stance, shooting beams of structured noise and latent space energy at corrupted digital monsters made of glitching pixels and broken code Setting: Digital cyberspace environment with floating data cubes and cascading binary code Text: ‘Time to DENOISE this chaos!’ Mood: Intense, action-packed + bright energy flashes and electric effects”
Panel 4 Prompt: Victory
“Style: Classic superhero comic with warm, triumphant colors and clean composition Character: Diffusion Man (athletic 30-year-old with brown skin tone and short natural fade haircut with black hair, wearing sleek gradient bodysuit from deep purple to electric blue to hot pink, glowing neural network emblem on chest, short gradient cape flowing behind him, purple half-mask, strong jawline, confident heroic smile) stands heroically giving thumbs up gesture to grateful scientist beside him, her computer screens now showing stable green indicators and success messages Setting: Calm server room with soft blue ambient lighting and orderly data streams flowing smoothly in organized patterns Text: ‘You saved us, Diffusion Man! The models are generating perfectly again!’ Mood: Victorious, hopeful + golden sunset-like tones streaming through windows”
Character Consistency: Notice how Diffusion Man’s description stays detailed and consistent across panels—brown skin tone, short natural fade haircut, gradient bodysuit from purple to blue to pink, neural network emblem, purple half-mask. Repeat these details in every panel prompt.
Photorealistic Styles
FLUX.2 excels at photorealistic generation. Reference specific eras and techniques for distinctive looks.
Style Reference Guide
| Style | Key Descriptors |
|---|---|
| Modern Digital | ”shot on Sony A7IV, clean sharp, high dynamic range” |
| 2000s Digicam | ”early digital camera, slight noise, flash photography, candid, 2000s digicam style” |
| 80s Vintage | ”film grain, warm color cast, soft focus, 80s vintage photo” |
| Analog Film | ”shot on Kodak Portra 400, natural grain, organic colors” |

- Modern Photorealism: “Soaking wet tiger cub taking shelter under a banana leaf in the rainy jungle, close up photo”
- 2000s Digicam: “Sloth out drinking in Bangkok at night in a street full of party folks, 2000s digicam style, people in the background fading”
- 80s Vintage: “A group of baby penguins in a trampoline park, having the time of their lives, 80s vintage photo”
Camera and Lens Simulation
Be specific about camera settings for authentic results:
Shot on Hasselblad X2D, 80mm lens, f/2.8, natural lighting
Canon 5D Mark IV, 24-70mm at 35mm, golden hour, shallow depth of field
Multi-Reference Image Editing
*[pro] API has a 9MP total limit for input+output. At 1MP output you can use up to 8 reference images, at 2MP output up to 7, and so on.
Multi-reference is powerful for:
- Fashion shoots: Combine clothing items into styled outfits
- Interior design: Place furniture and decor in rooms
- Product composites: Combine multiple products in scenes
- Character consistency: Maintain identity across variations
Fashion Editorial Example (8 references)
Prompt:“A spiritual architectural photograph captured on expired Kodak Ektachrome 64 slide film cross-processed from 1987 with a 35mm spherical lens at f/5.6, featuring model standing before small forest chapel in clearing. The model wears the outfit, positioned on stone steps leading to wooden chapel, red creating stark contrast against weathered brown timber. Background shows traditional Schwarzwald chapel – dark wood construction with small bell tower, carved wooden door, religious paintings under eaves, surrounding clearing with wild flowers, tall firs creating natural cathedral, small cemetery with wooden crosses. Dappled forest light at 1/125. Cross-processed Ektachrome showing extreme color shifts – cyan-magenta split, warm wood tones pushed to orange-brown, oversaturated red, crushed black shadows, blown highlights, heavy grain creating mysterious atmosphere. Composition emphasizes sacred spaces and pilgrimage. Thomas Struth church interiors, Candida Höfer architectural documentation, religious tourism meets fashion editorial, spiritual Schwarzwald mysticism.”

For multi-reference editing, describe how each input should be used. The model combines clothing items, accessories, and style references into a cohesive scene based on your prompt.
Prompt Upsampling
FLUX.2 offers a prompt_upsampling parameter that automatically enhances your prompt for better results.
- Quick iterations without crafting detailed prompts
- Exploring creative variations
- When you have a basic concept but want richer output
Prompt upsampling adds detail and context to your prompt automatically. Your original intent is preserved while the model expands on visual elements.
Best Practices Summary
- Structure for Control:Use JSON structured prompts when you need precise control over multiple elements. Start simple and add complexity as needed.
- Be Specific with Colors:Always associate hex codes with specific objects. “The car is #FF0000” works better than “use red #FF0000 in the image.”
- Describe What You Want:FLUX.2 has no negative prompts. Instead of “no blur,” say “sharp focus throughout.” Instead of “no people,” describe an “empty scene.”
- Reference Camera and Style:For photorealism, specify camera models, lenses, and film stocks. “Shot on Fujifilm X-T5, 35mm f/1.4” produces more authentic results than “professional photo.”
- Use Native Languages:Prompt in the language that best describes your desired cultural context. French for Parisian scenes, Japanese for anime styles.
- Layer Multi-Reference Carefully:When using multiple input images, clearly describe the role of each: subject from image 1, style from image 2, background from image 3.
Quick Reference
| Technique | When to Use | Key Syntax |
|---|---|---|
| JSON Prompts | Complex scenes, automation | {"scene": "...", "style": "..."} |
| Hex Colors | Brand work, precise matching |
color #FF5733 or hex #FF5733
|
| Camera References | Photorealism | shot on [camera], [lens], [settings] |
| Style Eras | Period-specific looks |
80s vintage, 2000s digicam
|
| Multi-Reference | Composite images | [pro]: 8, [flex]: 10, [dev]: ~6 |
粤公网安备 123456789号