Runway: 文生图

该ComfyUI工作流利用Runway的AI模型,将文本提示转化为高质量图片。核心节点为RunwayTextToImageNode,负责解析文本描述并生成相应的视觉内容。LoadImage和SaveImage节点分别用于图片的输入和输出。MarkdownNote节点用于记录流程和提供工作流内的操作指引。通过这些节点的集成,用户可以将创意想法快速转化为可视化作品,特别适合需要根据文本描述快速生成图片的艺术家、设计师和内容创作者。

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_text_to_image.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: 文生图" (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_text_to_image_api.json");

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

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

常见问题

常见问题

查看所有工作流
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