- Kontext Pro 适合编辑、合成和混音。
- Kontext Max 在排版、提示词精确度和速度方面突破极限。
使用 API 节点需要保证你已经正常登录,并在受许可的网络环境下使用,请参考API 节点总览部分文档来了解使用 API 节点的具体使用要求。
请确保你的 ComfyUI 已经更新。本指南里的工作流可以在 ComfyUI 的工作流模板中找到。如果找不到,可能是 ComfyUI 没有更新。如果加载工作流时有节点缺失,可能原因有:
- 你用的不是最新开发版(nightly)。
- 你用的是稳定版或桌面版(没有包含最新的更新)。
- 启动时有些节点导入失败。
Flux.1 Kontext 多图输入工作流
我们最近更新支持了多图输入工作流,使用新增的Image Stitch
节点,将允许你将多张图像拼接成一张图像,并使用 Flux.1 Kontext 进行编辑。
1. 工作流文件下载
下面的图片的metadata
中已经包含工作流信息,请下载并拖入 ComfyUI 中加载对应工作流。




2. 按步骤完成工作流的运行

- 在
Load image
节点中请分别上传提供的图片 - 在
Flux.1 Kontext Pro Image
修改必要的参数:prompt
输入你想要编辑的图像的提示词aspect_ratio
设置原图的高宽比,比例必须在 1:4 到 4:1 之间prompt_upsampling
设置是否使用提示词上采样,如果开启,会自动修改提示词以获得更丰富的结果,但结果是不可重复的
- 点击
Run
按钮,或者使用快捷键Ctrl(cmd) + Enter(回车)
来执行图像的编辑。 - 等待 API 返回结果后,你可在
Save Image
节点中查看编辑后的图像,对应的图像也会被保存至ComfyUI/output/
目录下。
后续的两个工作流只是使用的 API 节点不同,实际上你只需要基于多图输入工作流修改即可,没有太大的差别
Flux.1 Kontext Pro Image API 节点 工作流
1. 工作流文件下载
下面的图片的metadata
中已经包含工作流信息,请下载并拖入 ComfyUI 中加载对应工作流。


2. 按步骤完成工作流的运行

- 在
Load Image
节点中加载需要编辑的图像 - 在
Flux.1 Kontext Pro Image
修改必要的参数 - 点击
Run
按钮,或者使用快捷键Ctrl(cmd) + Enter(回车)
来执行图像的编辑。 - 等待 API 返回结果后,你可在
Save Image
节点中查看编辑后的图像,对应的图像也会被保存至ComfyUI/output/
目录下。
Flux.1 Kontext Max Image API 节点 工作流
1. 工作流文件下载
下面的图片的metadata
中已经包含工作流信息,请下载并拖入 ComfyUI 中加载对应工作流。


2. 按步骤完成工作流的运行

- 在
Load Image
节点中加载需要编辑的图像 - 在
Flux.1 Kontext Max Image
修改必要的参数 - 点击
Run
按钮,或者使用快捷键Ctrl(cmd) + Enter(回车)
来执行图像的编辑。 - 等待 API 返回结果后,你可在
Save Image
节点中查看编辑后的图像,对应的图像也会被保存至ComfyUI/output/
目录下。
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"
而非"she"
- 保留特征:
"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"
核心原则
- 具体明确 - 使用精确描述,避免模糊词汇
- 分步编辑 - 复杂修改分为多个简单步骤
- 明确保留 - 说明哪些要保持不变
- 动词选择 - 用”change”、“replace”而非”transform”
最佳实践模板
对象修改:"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 擅长理解详细指令并保持一致性。