This workflow generates short videos directly from text using the MiniMax H3 (Hailuo-03) video model. The MinimaxHailuo03TextToVideoNode sends your prompt to the MiniMax API, which renders a 5–15 second clip with native stereo audio. The node returns the finished video payload, and SaveVideo writes it to disk as a single file—no frame assembly required. Because computation happens in the MiniMax cloud, you don’t need a local GPU to create results.

Technically, you control the generation by setting the text prompt (and optional negative prompt), duration, aspect ratio or resolution, and seed for reproducibility. Short, directive prompts with clear subjects, actions, and camera cues tend to perform best (for example: “A futuristic drone flies over neon city streets at night, smooth tracking shot, cinematic lighting”). The SaveVideo node finalizes the output path and filename, preserving the audio track produced by MiniMax H3, so you get an immediately shareable MP4 without extra post-processing.

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.

b34841f6789c.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 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");

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.

FAQ

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates