The MiniMax: Video workflow enables users to generate high-quality videos from text prompts, leveraging the powerful MiniMax Hailuo-02 model. This workflow is designed to be versatile, supporting multiple resolutions such as 768P and 1080P, and offering video durations of 6 or 10 seconds. A key feature is the optional first-frame control, which allows users to set a specific starting image for the video, providing greater creative control over the output. Technically, this is achieved through the MinimaxHailuoVideoNode, which processes the text input and any initial image to create a coherent video sequence. The workflow also includes nodes like LoadImage for input management and SaveVideo for exporting the final video. MarkdownNote and Note nodes are used to provide guidance and documentation within the workflow.
API
このワークフローをコードから利用
すべてのComfyワークフローはJSONグラフです。以下のペイロードは、このワークフローそのものであり、ComfyUIが実行する内容と同じです — このURLから取得し、バージョン管理に保存したり、ComfyUIで読み込んでノードごとに実行できます。
Comfy SDKを使ってTypeScriptまたはPythonから実行できます。同じコードでComfy Cloudや自身でホストしたComfyUIのどちらにも対応 — ベースURLだけが異なります。
// Install (beta)
npm i @comfyorg/sdk
// Run this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");SDKはAPI形式のワークフローを受け取ります:このワークフローをComfyUIで開き、「ファイル → ワークフローをエクスポート(API)」を使用してください。
FAQ













