ComfyUI-MVNT
AI dance choreography from music. Generate full-body dance motion (BVH/FBX/JSON) from any audio track using MVNT's diffusion model trained with 100+ professional choreographers. Create rigged 3D characters from images, preview motion as stick-figure animations, and export photorealistic AI music videos — all inside ComfyUI. Nodes: MVNT Generate Dance, MVNT Generate Character, MVNT Export Video, MVNT Preview BVH, MVNT List Styles, MVNT Estimate Cost, MVNT Load Motion.
Nodes (5)
Your Song Is Too Long — Pick the 40 Seconds That Actually Dance
The Node That Turns a WAV Into a Dancing GLB (It Lives in the Cloud)
The Boring Pose That Makes Character Dance Retargeting Actually Work
See Your Dancer (and Hear the Track) Without Leaving ComfyUI
When the Dancer Needs to Leave ComfyUI as an MP4
ComfyUI-MVNT
Music in. Choreography out.
Generate 3D dance motion from any audio file using MVNT Dance Intelligence — directly inside ComfyUI.
Demo
https://github.com/user-attachments/assets/2fcde3de-5bd5-4fe6-8931-72198dee9ace
What It Does (compact v1, 2.0.0-compact)
ComfyUI-MVNT mirrors the public MVNT quickstart on https://api.mvnt.studio/v1 only:
GET /styles -> POST /generations -> poll GET /generations/{id} -> GET /generations/{id}/output?format=glb|mp4.
No legacy fallback, Tripo/T-pose, Kling profiles, BVH or internal render routes on this branch
(MVNT_COMPACT_V1=0 re-enables the old fallback in mvnt_client.py for local A/B only).
Nodes
| Node | What it does |
|---|---|
| MVNT Audio Segment | Optional, not in the default workflow. Trim now lives in MVNT Generate Dance (trim_start/trim_end). |
| MVNT List Styles | GET /v1/styles; outputs JSON and one style name per line. |
| MVNT Generate Dance | Uploads audio (trim_start/trim_end in seconds, trim_end 0 = whole clip), polls, downloads the animated GLB. |
| MVNT Preview Dance 3D | Shows the GLB in ComfyUI's 3D preview with audio. |
| MVNT Render Dance Video | format=mp4 with preset (standard 1920x1080 / shorts 1080x1920) and camera_mode (tracking/dynamic/idol). Synchronous, can take minutes. |
Load Audio -> MVNT Generate Dance -> MVNT Preview Dance 3D
-> MVNT Render Dance Video -> Save Video
Load workflows/compact_v1_api.json for this graph (default trim 0-20 s on MVNT Generate Dance;
MVNT Audio Segment was removed from the default graph to avoid trimming twice).
Installation
ComfyUI Manager (recommended)
Search MVNT in ComfyUI Manager → Install.
Comfy Registry
comfy node registry-install comfyui-mvnt
Manual
cd ComfyUI/custom_nodes
git clone https://github.com/mvnt-app/ComfyUI-MVNT.git comfyui-mvnt
cd comfyui-mvnt
pip install -r requirements.txt
Restart ComfyUI after installation.
API Key
Get your API key at mvnt.studio.
Set it as an environment variable before launching ComfyUI:
export MVNT_API_KEY=mvnt_live_xxxxxxxxxxxxx
Or paste it into the api_key field of MVNT Generate Dance / MVNT Render Dance Video.
Never commit API keys in workflow JSON. If a key is accidentally committed, revoke it immediately from your MVNT dashboard.
Quick Start
- Set
MVNT_API_KEY(from the MVNT Platform) and optionallyMVNT_API_BASE=https://api.mvnt.studio/v1, then start ComfyUI. - Load
workflows/compact_v1_api.jsonand pick a WAV inLoad Audio. - Queue. Outputs land in
ComfyUI/output/:
mvnt_<id>.motion.glb
mvnt_<id>.<preset>.<camera_mode>.mp4 # only when MVNT Render Dance Video is connected
Wrong key returns a plain 401 error; there is no silent fallback to another API.
Troubleshooting
api.mvnt.world connection timeout
The live API is https://api.mvnt.studio. Unset MVNT_API_BASE if it still points at world, then restart ComfyUI.
Old MVNT nodes showing up (MVNT Dance Generate, MVNT Dance (All-in-One))
Remove or rename the old custom node folder and restart ComfyUI.
Missing Tripo or Kling nodes The core audio-to-dance flow has no dependency on Tripo or Kling. Full character workflows may require those custom nodes separately.
3D preview narrow strip / wrong size (Comfy Desktop / frontend 1.59+)
MVNT Preview Dance 3D discovers Comfy's createLoad3d at runtime. Frontend 1.59 sizes the WebGL
buffer from the DOM widget's clientWidth, so an older extension or a cached JS file can leave a
tall narrow viewport after click. Update the node pack (git pull on main), fully quit Desktop,
then Ctrl+Shift+R. The node grows to a minimum width so the preview stays inside the card.
Could not resolve Load3d module ... Failed to fetch dynamically imported module .../assets/load3dService-*.js
Hashed frontend chunks change every release; the extension discovers them at runtime (no hard-coded hashes).
If the viewer still fails, the node shows a GLB download / path fallback. The file is always saved as
ComfyUI/output/mvnt_<id>.motion.glb; MVNT Render Dance Video does not need the in-node viewer.
Links
License
MIT