flux-image-best-practices

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

FLUX Best Practices

FLUX最佳实践

Use this skill when generating prompts for any BFL FLUX model to ensure optimal image quality and accurate prompt interpretation.
在为任何BFL FLUX模型编写提示词时使用本技能,以确保获得最优图像质量和准确的提示词解析效果。

When to Use

使用场景

  • Creating prompts for FLUX.2 or FLUX.1 models
  • Text-to-image (T2I) generation
  • Image-to-image (I2I) editing with FLUX.2 models
  • Structured scene generation with JSON
  • Typography and text rendering
  • Multi-reference style transfer
  • Color-accurate brand generations
  • 为FLUX.2或FLUX.1模型创建提示词
  • 文本转图像(T2I)生成
  • 使用FLUX.2模型进行图像转图像(I2I)编辑
  • 基于JSON的结构化场景生成
  • 排版与文本渲染
  • 多参考图风格迁移
  • 色彩精准的品牌视觉生成

Quick Reference

快速参考

Prompt Structure Formula

提示词结构公式

[Subject] + [Action/Pose] + [Style/Medium] + [Context/Setting] + [Lighting] + [Camera/Technical]
[主体] + [动作/姿态] + [风格/媒介] + [背景/场景] + [光线] + [相机/技术参数]

Model Selection

模型选择

Use CaseRecommended ModelNotes
Fastest generationFLUX.2 [klein]4B or 9B, sub-second
Highest qualityFLUX.2 [max]Best detail, grounding search
Production balancedFLUX.2 [pro]Quality + speed
Typography/textFLUX.2 [flex]Best text rendering
Local/developmentFLUX.2 [dev]Open weights
Image editingFLUX.2 [pro/max]Pass image URL directly to input_image
InpaintingFLUX.1 FillObject removal/completion
Context editingFLUX.1 KontextOlder model, prefer FLUX.2
使用场景推荐模型说明
最快生成速度FLUX.2 [klein]4B或9B参数,生成耗时不到一秒
最高画质FLUX.2 [max]细节表现最佳,支持 grounding search
生产环境均衡选择FLUX.2 [pro]画质与速度兼顾
排版/文本渲染FLUX.2 [flex]文本渲染效果最佳
本地/开发环境使用FLUX.2 [dev]开源权重版本
图像编辑FLUX.2 [pro/max]直接将图像URL传入input_image参数
图像补全FLUX.1 Fill物体移除/补全
场景上下文编辑FLUX.1 Kontext较旧模型,优先选择FLUX.2版本

Critical Rules

核心规则

  1. NO negative prompts - FLUX does not support negative prompts; describe what you want
  2. Be specific - Vague prompts produce mediocre results
  3. Use natural language - Prose/narrative style works best
  4. Specify lighting - Lighting has the biggest impact on quality
  5. Quote text - Use "quoted text" for typography rendering
  6. Hex colors - Use #RRGGBB format with color description
  1. 禁止使用负面提示词 - FLUX不支持负面提示词,请直接描述你想要的内容
  2. 描述要具体 - 模糊的提示词会产生平庸的结果
  3. 使用自然语言 - 散文/叙事风格的提示词效果最佳
  4. 明确指定光线 - 光线对图像质量的影响最大
  5. 文本加引号 - 用"引号文本"来指定需要渲染的排版内容
  6. 使用十六进制颜色 - 结合颜色描述使用#RRGGBB格式

Related

相关内容

For API integration (endpoints, polling, webhooks), see the bfl-api skill.
API集成相关(端点、轮询、Webhook)请查看bfl-api技能。

Rules Reference

规则参考

Read individual rule files for detailed guidance:
  • rules/core-principles.md - Universal FLUX prompting principles
  • rules/flux2-models.md - FLUX.2 family: klein, max, pro, flex, dev
  • rules/flux1-models.md - FLUX.1 family: older generation of FLUX.2 models - pro, Kontext, Fill
  • rules/t2i-prompting.md - Text-to-image prompting patterns
  • rules/i2i-prompting.md - Image-to-image editing with FLUX.2
  • rules/json-structured-prompting.md - Complex scene composition
  • rules/hex-color-prompting.md - Precise color specification
  • rules/typography-text.md - Text rendering and typography
  • rules/multi-reference-editing.md - Multi-image references
  • rules/negative-prompt-alternatives.md - Positive alternatives
  • rules/model-selection-guide.md - Choosing the right model
阅读单独的规则文件获取详细指导:
  • rules/core-principles.md - FLUX提示词通用原则
  • rules/flux2-models.md - FLUX.2系列:klein、max、pro、flex、dev
  • rules/flux1-models.md - FLUX.1系列:FLUX.2的前代模型 - pro、Kontext、Fill
  • rules/t2i-prompting.md - 文本转图像提示词模式
  • rules/i2i-prompting.md - 使用FLUX.2进行图像转图像编辑
  • rules/json-structured-prompting.md - 复杂场景构图
  • rules/hex-color-prompting.md - 精准颜色指定
  • rules/typography-text.md - 文本渲染与排版
  • rules/multi-reference-editing.md - 多参考图编辑
  • rules/negative-prompt-alternatives.md - 正面描述替代方案
  • rules/model-selection-guide.md - 模型选择指南

Example Prompt

提示词示例

A weathered fisherman in his 70s with deep wrinkles and a salt-and-pepper beard,
wearing a navy cable-knit sweater, standing at the helm of his wooden boat.
Golden hour sunlight from the left creates dramatic rim lighting on his profile.
Shot on Hasselblad with 85mm lens at f/2.8, shallow depth of field with harbor
lights creating soft bokeh in the background. Kodak Portra 400 color science.
一位70多岁的饱经风霜的渔夫,满脸皱纹,留着花白胡须,身穿海军蓝绞花针织毛衣,站在他的木船舵柄旁。左侧的黄金时段阳光在他的侧脸上形成戏剧性的轮廓光。使用哈苏相机搭配85mm镜头,f/2.8光圈,浅景深,背景中的港口灯光形成柔和的散景。采用柯达Portra 400色彩科学。