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.

常見問題

常見問題

查看所有工作流
Showing 30 of 30 templates