Seedream 5.0 Lite:圖像編輯 - After
Seedream 5.0 Lite:圖像編輯 - Before

「Seedream 5.0 Lite:圖像編輯」工作流程,讓你以直覺且高效率的方式,用文字提示修改現有圖像。流程採用 Seedream 5.0 Lite 模型,能精確理解並套用詳細文字指示。核心為 ByteDanceSeedreamNode,將圖像與文字提示處理後,產生符合需求的修改圖像。LoadImage 與 SaveImage 節點負責圖像檔案處理,BatchImagesNode 則可同時處理多張圖像,提升效率。

此流程特別適合需精細編輯圖像但不想手動修圖的用戶。只需上傳圖像並輸入描述性提示詞,即可得到符合創意的結果。Seedream 5.0 Lite 模型能理解並執行複雜指令,適合專業與業餘圖像編輯。無論調整色彩、加入新元素或改變氛圍,都能快速實現。

API

從程式碼使用此工作流

每個 Comfy 工作流都是一個 JSON 圖。下方的 payload 就是此工作流,與 ComfyUI 執行時完全相同 — 你可以從此 URL 取得、放入版本控制,或在 ComfyUI 載入並逐節點執行。

api_bytedance_seedream_5_0_lite_image_edit.json
正在取得工作流 JSON…

使用 Comfy SDK 以 TypeScript 或 Python 執行。相同程式碼可用於 Comfy Cloud 或你自架的 ComfyUI — 只需更改 base URL。

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

// Run "Seedream 5.0 Lite:圖像編輯" (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("api_bytedance_seedream_5_0_lite_image_edit_api.json");

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

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

SDK 需使用 API 格式的工作流:請在 ComfyUI 開啟此工作流,並使用 檔案 → 匯出工作流(API)。

Comfy Cloud API 存取需有 API 金鑰的方案。

常見問題

常見問題

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