Flux.2 [Klein] 9B:图像编辑

本 ComfyUI 工作流利用 Flux.2 [Klein] 9B 模型,提供强大的图像编辑体验。该工作流设计为最大化灵活性和可控性,非常适合需要对图像输出进行精细调整的用户。核心采用 BFL 未蒸馏基础模型,以其在根据文本描述生成高质量图像方面的适应性著称。主要节点包括 LoadImage 和 SaveImage,分别负责图像的输入与输出。此外,工作流还集成了一个子工作流节点(7b34ab90-36f9-45ba-a665-71d418f0df18),可实现复杂操作与变换,增强细致编辑能力。

Flux.2 Klein 模型为 9B 参数模型,特别适合希望尝试不同风格和效果的用户。通过该模型,工作流支持精确调整和创意控制,适用于专业和业余场景。MarkdownNote 节点的加入,方便用户在工作流内直接记录流程和心得,助力创作过程流畅。该工作流尤其适合需要多次测试和反复优化的项目,支持多输入,并可通过工作流分组功能轻松启用或禁用。

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

image_flux2_klein_image_edit_9b_base.json
Fetching workflow JSON…

Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

// Install (beta)
npm i @comfyorg/sdk

// Run "Flux.2 [Klein] 9B:图像编辑" (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });

// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("image_flux2_klein_image_edit_9b_base_api.json");

const asset = client.assets.fromFile("input.png");
wf.setInput("81", "image", asset); // LoadImage

const job = await client.run(wf);
await job.getOutputs("9")[0].toFile("output.png"); // SaveImage

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

常见问题

常见问题

查看所有工作流
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates