
The Wan2.5: Text to Video workflow in ComfyUI is a sophisticated process designed to transform textual input into high-quality video content, optionally synchronized with audio. This workflow leverages the Wan2.5 and Wan models, which are renowned for their ability to generate smooth motion and superior visual quality in video outputs. At the core of this workflow is the WanTextToVideoApi node, which interprets text prompts and converts them into video sequences. Additionally, the workflow can incorporate audio through the LoadAudio and RecordAudio nodes, allowing for the creation of videos with synchronized soundtracks. This feature is particularly beneficial for content creators who wish to enhance their videos with custom audio tracks.
Technically, the workflow is structured to be user-friendly while providing advanced capabilities. Users can input audio files that are between 3 to 30 seconds long and under 15MB in size, which can be linked directly to the WanTextToVideoApi node for seamless integration. The SaveVideo node ensures that the final output is stored efficiently, while the MarkdownNote node provides a space for users to document their workflow settings and notes. This combination of nodes and models makes the Wan2.5: Text to Video workflow a powerful tool for producing engaging video content with ease.
API
このワークフローをコードから利用
すべてのComfyワークフローはJSONグラフです。以下のペイロードは、このワークフローそのものであり、ComfyUIが実行する内容と同じです — このURLから取得し、バージョン管理に保存したり、ComfyUIで読み込んでノードごとに実行できます。
Comfy SDKを使ってTypeScriptまたはPythonから実行できます。同じコードでComfy Cloudや自身でホストしたComfyUIのどちらにも対応 — ベースURLだけが異なります。
// Install (beta)
npm i @comfyorg/sdk
// Run "Wan2.5: テキストから動画へ" (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_wan_text_to_video_api.json");
const job = await client.run(wf);
await job.getOutputs("7")[0].toFile("output.png"); // SaveVideoSDKはAPI形式のワークフローを受け取ります:このワークフローをComfyUIで開き、「ファイル → ワークフローをエクスポート(API)」を使用してください。
FAQ













