How to Use LatentSync in n8n
LatentSync matches a recorded speaker's mouth movements to replacement speech for dubbing and dialogue corrections. It edits existing footage while aiming to preserve the speaker's identity and head pose.
Prompts to try with LatentSync in n8n
Copy an example into n8n, or ask in your own words.
Every weekday, use LatentSync to process newly approved presenter videos with their paired replacement recordings in the media queue. Collect the results for mouth-timing review.
Each Monday, use LatentSync to prepare review cuts for the approved lesson videos and revised narration in the training queue. Include a checklist for lip timing and facial stability.
Each evening, use LatentSync to match approved animated dialogue shots to their revised voice recordings. Group the results by scene for review.
Every Friday, use LatentSync to prepare a 10-second sample from each approved dubbing job with its matching translated speech. Collect the samples for language review.
Each morning, use LatentSync to make comparison cuts for clips marked for synchronization adjustment, using guidance at 1 and 1.5. Keep the random seed the same within each comparison.
How to set up LatentSync in n8n
Pick the way that suits you. Each takes about two minutes.
Use the Spiral skill
- Send n8n this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use Spiral's MCP server
- Create a key
Create a key under API keys in the console.
- Add an MCP Client node
In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:
https://api.spiral.ai/mcp
- Pick a tool
The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:
{ "provider": "fal", "model": "fal-ai/flux/schnell", "input": { "prompt": "a lighthouse at dawn" }, "wait": true } - Run LatentSync in a workflow step
Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds LatentSync, prices it and runs it each time the step fires.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run LatentSync
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "fal", "model": "fal-ai/latentsync", "input": { "video_url": "https://fal.media/files/koala/8teUPbRRMtAUTORDvqy0l.mp4", "audio_url": "https://fal.media/files/lion/vyFWygmZsIZlUO4s0nr2n.wav" } }'
Then paste one of the prompts above: n8n finds LatentSync on Spiral, shows the price and runs it.
LatentSync providers and prices
Spiral runs LatentSync through fal. Open a card for today's price, with every fee included.
Settings you can ask for
LatentSync works from your video URL and audio URL. Ask n8n for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Guidance scale | 1 to 2 | 1 | Guidance scale for the model inference |
| Seed | a whole number | Random seed for generation. If None, a random seed will be used. | |
| Loop mode | pingpong or loop | Video loop mode when audio is longer than video. Options: pingpong, loop |
Every API field of LatentSync is on its tool page: open its card above.
What can you do with LatentSync in n8n?
Prepare recurring batches of dialogue corrections and dubbed review cuts with LatentSync. A scheduled agent can organize results for checks of synchronization and facial stability.
Dub a presenter clip
Match an existing presenter shot to a recorded translation. Review the mouth timing against the translated speech before editing the result into the finished video.
Correct a spoken line
Replace a mispronounced name or outdated sentence in a talking-head segment using a newly recorded line.
Update training videos
Use existing instructor footage with revised narration for a changed lesson or procedure. Start with a short passage for review.
Revise animated dialogue
Match an animated character's mouth movements to a replacement voice performance in an existing dialogue shot.
Prepare spokesperson ad edits
Create separate review cuts of an existing spokesperson video for recorded messages aimed at different audiences.
Build language lesson clips
Pair presenter footage with recorded example phrases for a language lesson. Have a fluent reviewer check the resulting mouth movements.
More on LatentSync and n8n
Overview
LatentSync in other agents
Questions about LatentSync in n8n
Can n8n use LatentSync?
Yes. Add Spiral to n8n as an MCP server, and n8n can find and run LatentSync like any built-in tool.
How much does LatentSync cost in n8n?
Up to $0.39 per run at the default inputs for 60 seconds of input. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.
Do I need a fal account to use LatentSync in n8n?
You need no fal account. n8n uses one Spiral API key for every tool, and Spiral runs LatentSync on its own fal account.
How long does it take to set up LatentSync in n8n?
About two minutes: create a key, then add an MCP Client node, then pick a tool.
Does n8n wait while LatentSync runs?
LatentSync runs in the background. n8n starts the run, checks on it and gives you the video when it's ready.
What is LatentSync best used for?
Use LatentSync to match a recorded speaker's mouth to replacement dialogue. Dubbing, corrected narration, and updated presenter clips are practical starting points.
Can LatentSync work with animated characters?
Yes. LatentSync supports both real people and animated characters in existing footage; try a short dialogue shot before processing a longer scene.
Why can stronger lip synchronization make the video look worse?
Higher guidance can improve mouth-to-audio alignment while introducing distortion or jitter. Increase it gradually and compare both timing and facial stability.
Does LatentSync support Chinese speech?
ByteDance specifically improved Chinese-video performance in LatentSync 1.5 by adding Chinese training data. For Chinese dialogue, test a representative passage rather than assuming identical results across releases.
What does the published 512 by 512 resolution mean?
ByteDance describes 512 by 512 as the training resolution for LatentSync 1.6, introduced to address blurry teeth and lips. Treat that figure as release-specific training information when planning output quality.
Start using LatentSync in n8n
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into n8n:
set up https://spiral.ai/SKILL.md


