Runway: Gen4 Turbo 图生视频

本 ComfyUI 工作流可将单张静态图片转为短动态视频,基于 Runway 的 Gen4 Turbo 图像转视频模型。流程包含四个节点:LoadImage 用于导入源图片,RunwayImageToVideoNodeGen4 调用托管的 Gen4 Turbo API 合成动态效果,SaveVideo 编码输出为标准视频文件,MarkdownNote 节点则提供链接和设置说明。由于主要计算在 Runway 合作节点完成,流程本地运行轻量且快速。

技术上,LoadImage 节点将像素数据传递给 RunwayImageToVideoNodeGen4,后者将图片及设置(如时长、帧率)发送到 Runway API。API 返回的视频流可直接由 ComfyUI 的 SaveVideo 节点编码为最终视频(如 MP4),帧率由你设定。合作节点通过 HTTPS 通信,需确保本地网络安全(详见“关于 API 节点”说明):请在 localhost/127.0.0.1 运行,并确保允许外部 HTTPS 访问。最终实现了一个干净、可复现的图像转视频流程,便于迭代:只需更换输入图片、调整运动/时长参数,即可反复尝试不同效果。

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.

api_runway_gen4_turo_image_to_video.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 "Runway: Gen4 Turbo 图生视频" (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_runway_gen4_turo_image_to_video_api.json");

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

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

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.

常见问题

常见问题

查看所有工作流
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates