FLUX.1 Kontext dev 版本开源,角色一致性图像编辑模型!

2025年6月27号,沉寂一年的FLUX.1核心技术团队Black Forest Labs终于开源图像通用编辑大模型FLUX.1 Kontext的[dev]版本,直接标志着 AI 绘画正式迈入对话编辑时代!

FLUX.1 Kontext 是一款专业的图像到图像编辑模型,专注于智能理解图像上下文并执行精确编辑。 能够在无需复杂描述的情况下实现多种编辑任务,包括对象修改、风格转换、背景替换、角色一致性编辑和文本编辑等。 Kontext 的核心优势在于其出色的上下文理解能力和角色一致性保持,即使经过多次迭代编辑,也能确保人物特征、构图布局等关键元素保持稳定。

在模型使用方面 Kontext 用的和 Flux 同款的 vae 和文本编码器,只需要单独下载一个 kontext dev 的模型就能运行。原版 dev 模型需要 32G 显存才能运行,Comfyui 官方提供了一个 fp8 量化版本的,官方介绍 fp8 版本需要 20G 的显存,但是我实测 16G 显存就能跑起来而且速度很快,一张图大概在 50 秒左右,4090 差不多 30 秒一张图。低显存用户也不用担心目前已经有大佬更新了 gguf 版本,最低只需要 10G 显存就能玩

FLUX.1 Kontext 提升词运用模板及示例

模板:
对象修改: “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”

1、物体修改
# 删除图像左侧的第一个人
Remove the first person on the left in the image.

# 角色保持不变,背景中的汽车保持不变,将汽车的颜色改为红色。
Character remain unchanged, the cars in the background remain unchanged, change the car‘s color to red.

# 把女孩的衣服换成白色长裙,同时保留她的面部特征、发型和姿势。
Change the girl’s clotheg to a white long dress while preserving her facial features,hairstyle,and pose.

# 将左侧主角手中的牙刷替换为麦克风,让角色看起来像在唱歌。将文字内容改为”唱歌,更大声,更多噪音。”
Replace the toothbrush in the hand of the main character on the left with a microphone, making the character look like they are singing. Change the text content to “Singing, louder, more noise.”

2、角色角度调整
#保持写实风格不变,将相机旋转90度,直接从侧面观察女人。
maintaining realistic style unchange, Rotate the camera 90 degrees to view directly from side the woman.

# 保持背景不变,角色侧向观众
Keep the background unchanged, the character is sideways facing the audience.

# 保持背景不变;角色背对观众。
Maintain the background as is; the character is facing away from the audience.

# 保持背景不变;美人鱼的头发变成红色。
Maintain the background as is;The mermaid’s hair changes to red.

3、角色风格改变
# 转换为逼真的照片
Transform to a realistic photo

# 将风格转换为水彩风格,可爱,保持角色和背景不变。
Transform the style into a watercolor style, cute, keeping the characters and background unchanged.

# 将风格改为日本吉卜力风格,保持角色和环境不变。
Change the style to Japanese Ghibli style, keeping the characters and environment unchanged.

# 将风格改为卡通 3D 粘土质感风格,保持角色和环境不变。
Change the style to cartoon 3D clay texture style, keeping the characters and environment unchanged.

# 将风格转换为 16 位马赛克像素风格,保持主角和背景不变。
Convert the style to a 16-bit mosaic pixel style, keeping the main character and background unchanged.

4、角色转换姿势
# 保持脸部完全不变。定位拍摄对象以进行护照式头像。使用纯浅灰色或白色背景,甚至正面照明和中性面部表情。头发整齐地排列,没有阴影。将面置于框架的中心。
Keep the face completely unchanged. Position the subject for a passport-style headshot. Use a plain light grey or white background, even frontal lighting, and neutral facial expression. Hair neatly arranged, no shadows. Center the face in the frame.

5、两个角色互动
# 定不变,柴犬在喝酒,右侧添加一只巨大的小熊猫,小熊猫和柴犬具有相同的角色风格,小熊猫在喝橙汁。
Keep the character and material settings the same, The Shiba Inu was drinking, A huge red panda was added on the right, the red panda and the Shiba Inu have the same character style, and the red panda is drinking orange juice.

6、图片英文文字替换
# 将 “fief” 替换为”Irene.”保持相同的字体样式
Replace “fief” with “Irene.” Keep the same font style.

7、画面元素 提取,局部展示
# 无人物,仅提取外套置于白色背景上,产品摄影风格
no people, extract only the coat over a white background, product photography style

# 给我展示布料的极近特写
show me an extreme closeup of the fabric

8、角色多角度展示
# 角色保持不变;女孩站在地板上,背景是粉色格子布,身后展示着餐具。这张图有个过渡图,去掉了底座,也损失了一些细节,比如围裙上的草莓纹理细看是有点不一样的。
The character remains the same; girl stands Standing on the floor.against a backdrop of pink plaid, with a display of tableware behind him

# 输出正视图、侧视图、后视图。这里输出图的比例为设置为了 4:1,设置 3:1 也可以,但是也不会是非常规矩的三个正方形,比较随机。
Output front view, side view, rear view.

9、改变环境光线
#左上角的柔和窗户光线、柔和的衰减、可见光线、角落的环境遮挡
soft window light from upper left, gentle falloff, visible light rays, ambient occlusion in corners

10、老照片修复
# 修复这张旧照片,尽量保持文字外观不变,消除裂纹,提高清晰度,纠正颜色,恢复原始照片,达到超高清质量。
Repair this old photo, keep the appearance of the characters unchanged to the greatest extent, eliminate cracks, enhance clarity, correct colors, restore the original photo, and achieve ultra-high-definition quality.

11、图片去水印
# 从图片中删除水印
Remove the watermark from the picture