黑森林实验室发布的用于图像编辑的图形模型

## Flux Kontext 提示词技巧


使用英文


### 1. 基础修改

- 简单直接:`"Change the car color to red"`

- 保持风格:`"Change to daytime while maintaining the same style of the painting"`


### 2. 风格转换

**原则:**

- 明确命名风格:`"Transform to Bauhaus art style"`

- 描述特征:`"Transform to oil painting with visible brushstrokes, thick paint texture"`

- 保留构图:`"Change to Bauhaus style while maintaining the original composition"`


### 3. 角色一致性

**框架:**

- 具体描述:`"The woman with short black hair"`而非`"她"`

- 保留特征:`"while maintaining the same facial features, hairstyle, and expression"`

- 分步修改:先改背景,再改动作


### 4. 文本编辑

- 使用引号:`"Replace 'joy' with 'BFL'"`

- 保持格式:`"Replace text while maintaining the same font style"`


## 常见问题解决


### 角色变化过大

❌ 错误:`"Transform the person into a Viking"`

✅ 正确:`"Change the clothes to be a viking warrior while preserving facial features"`


### 构图位置改变

❌ 错误:`"Put him on a beach"`

✅ 正确:`"Change the background to a beach while keeping the person in the exact same position, scale, and pose"`


### 风格应用不准确

❌ 错误:`"Make it a sketch"`

✅ 正确:`"Convert to pencil sketch with natural graphite lines, cross-hatching, and visible paper texture"`


## 核心原则


1. **具体明确** - 使用精确描述,避免模糊词汇

2. **分步编辑** - 复杂修改分为多个简单步骤

3. **明确保留** - 说明哪些要保持不变

4. **动词选择** - 用"更改"、"替换"而非"转换"


## 最佳实践模板


**对象修改:**

`"Change [object] to [new state], keep [content to preserve] unchanged"`


**风格转换:**

`"Transform to [specific style], while maintaining [composition/character/other] unchanged"`


**背景替换:**

`"Change the background to [new background], keep the subject in the exact same position and pose"`


**文本编辑:**

`"Replace '[original text]' with '[new text]', maintain the same font style"`


> **记住:** 越具体越好,Kontext 擅长理解详细指令并保持一致性。