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