「多提示批次生成」工作流程可讓你在 ComfyUI 中同時比較多組提示詞。透過 FL_PromptMulti 節點,使用者可一次送出不同提示詞,各自獨立產生輸出。這種設計特別適合需要快速評估提示詞變化的批次處理場景。當連接 Blueprint 或合作夥伴節點時,還能跨模態批次處理,節省時間與資源。此流程的關鍵差異在於能於單一佇列項目處理多組提示詞,與傳統需逐一處理的方式不同。平行處理大幅加快迭代與比較速度,但需注意每個提示詞欄位都會啟動一次運算,若用合作夥伴節點可能增加成本,請妥善管理資源。

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.

templates_purz_batch_generation.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 "提示詞多批次產生" (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("templates_purz_batch_generation_api.json");

const job = await client.run(wf);
await job.getOutputs("36")[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