
该ComfyUI工作流可将文本提示词转化为高质量短视频,核心为Luma的文本转视频模型。主节点LumaVideoNode将提示词和参数发送至Luma API并轮询渲染结果。LumaConceptsNode可输入结构化“概念”,精细控制镜头运动(如平移、倾斜、变焦),避免提示词过长。SaveVideo节点将返回视频写入磁盘,MarkdownNote节点提供流程内指导和提示。
技术上,该流程为API驱动:LumaVideoNode打包提示词和LumaConceptsNode的概念对象,提交生成请求并等待完成。流程中的seed参数仅用于决定LumaVideoNode是否重新运行(即跳过缓存),不影响最终视频的视觉随机性。这样可通过调整LumaConceptsNode快速迭代镜头运动、时长和构图,同时保持提示词简洁。
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.
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 "Luma: 文生视频" (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_luma_t2v_api.json");
const job = await client.run(wf);
await job.getOutputs("8")[0].toFile("output.png"); // SaveVideoThe 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.
常见问题














