位元組跳動 Seedream 4.0

Seedream 4.0:圖像編輯工作流程是一款強大的工具,既可從文字提示生成新圖像,也能用自然語言指令編輯現有圖像。流程核心為 ByteDanceSeedreamNode,整合 Seedream 4.0 模型,以極快速度處理高解析度圖像。可在 2 秒內生成 2K 圖像,特別適合需要快速迭代與高品質輸出的使用者。流程同時包含 LoadImage 與 SaveImage 節點,方便匯入與匯出圖像,讓編輯與儲存作業無縫接軌。BatchImagesNode 支援多圖批次處理,大幅提升效率。MarkdownNote 節點可用於流程內記錄步驟與設定,方便複製與分享。

API

從程式碼使用此工作流

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

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

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

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

// Run "位元組跳動 Seedream 4.0" (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_seedream4_api.json");

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

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

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

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

常見問題

常見問題

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