[Integrations](https://spiral.ai/integrations) › [Instinct](https://spiral.ai/integrations/instinct) › [LatentSync](https://spiral.ai/integrations/instinct/latentsync)

# How to Use LatentSync in Instinct

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.

|  |  |
| --- | --- |
| Model | LatentSync |
| Available through | fal |
| Category | Video |
| Price | Up to $0.39 per run at the default inputs for 60 seconds of input. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with LatentSync in Instinct

- 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 Instinct

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send Instinct this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **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

1. **Create an API key**: In the console, open API keys and create a key for Instinct. Copy it.

2. **Send Instinct this message**: Instinct reads Spiral's skill and asks for your API key.

```text
set up https://spiral.ai/SKILL.md
```

3. **Give Instinct the key**: When Instinct asks for the key, add it where Instinct keeps secrets, never in the chat itself.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run LatentSync**: One request; the result comes back by polling or a webhook.

```bash
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: Instinct finds LatentSync on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/instinct

## LatentSync tools and prices

- [LatentSync](https://spiral.ai/tools/fal/fal-ai/latentsync) (fal): $0.0065 per second.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| guidance_scale | 1 to 2 | 1 | Guidance scale for the model inference |
| seed |  | — | Random seed for generation. If None, a random seed will be used. |
| loop_mode | pingpong, loop | — | Video loop mode when audio is longer than video. Options: pingpong, loop |

## What can you do with LatentSync in Instinct?

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.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Instinct guides](https://spiral.ai/integrations/instinct)

## LatentSync in other agents

- [Amp](https://spiral.ai/integrations/amp/latentsync)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/latentsync)
- [Claude](https://spiral.ai/integrations/claude-desktop/latentsync)
- [Claude Code](https://spiral.ai/integrations/claude-code/latentsync)
- [Cline](https://spiral.ai/integrations/cline/latentsync)
- [Codex](https://spiral.ai/integrations/codex/latentsync)
- [Cursor](https://spiral.ai/integrations/cursor/latentsync)
- [Devin](https://spiral.ai/integrations/devin/latentsync)
- [dots](https://spiral.ai/integrations/dots/latentsync)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/latentsync)
- [Gemini](https://spiral.ai/integrations/gemini/latentsync)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/latentsync)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/latentsync)
- [goose](https://spiral.ai/integrations/goose/latentsync)
- [Grok](https://spiral.ai/integrations/grok/latentsync)
- [Grok Build](https://spiral.ai/integrations/grok-build/latentsync)
- [Hermes](https://spiral.ai/integrations/hermes/latentsync)
- [Manus](https://spiral.ai/integrations/manus/latentsync)
- [Muse](https://spiral.ai/integrations/muse/latentsync)
- [Muse Code](https://spiral.ai/integrations/muse-code/latentsync)
- [n8n](https://spiral.ai/integrations/n8n/latentsync)
- [Notion](https://spiral.ai/integrations/notion/latentsync)
- [OpenClaw](https://spiral.ai/integrations/openclaw/latentsync)
- [opencode](https://spiral.ai/integrations/opencode/latentsync)
- [Perplexity](https://spiral.ai/integrations/perplexity/latentsync)
- [Raycast](https://spiral.ai/integrations/raycast/latentsync)
- [VS Code](https://spiral.ai/integrations/vscode/latentsync)
- [Windsurf](https://spiral.ai/integrations/windsurf/latentsync)
- [Zapier](https://spiral.ai/integrations/zapier/latentsync)

## More Instinct guides

- [LTX-2.3 Pro Extend Video](https://spiral.ai/integrations/instinct/ltx-2-3-pro-extend-video)
- [LongCat Video Distilled Image to Video 480p](https://spiral.ai/integrations/instinct/longcat-video-distilled-image-to-video-480p)
- [LTX Video 0.9.7 Distilled Text to Video](https://spiral.ai/integrations/instinct/ltx-video-0-9-7-distilled-text-to-video)
- [LongCat Video Distilled Image to Video 720p](https://spiral.ai/integrations/instinct/longcat-video-distilled-image-to-video-720p)
- [LTX Video 0.9.7 Distilled Image to Video](https://spiral.ai/integrations/instinct/ltx-video-0-9-7-distilled-image-to-video)
- [LongCat Video Distilled Text to Video 480p](https://spiral.ai/integrations/instinct/longcat-video-distilled-text-to-video-480p)

## Questions about LatentSync in Instinct

**Can Instinct use LatentSync?**

Yes. Add Spiral to Instinct as an MCP server, and Instinct can find and run LatentSync like any built-in tool.

**How much does LatentSync cost in Instinct?**

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 Instinct plan is separate.

**Do I need a fal account to use LatentSync in Instinct?**

You need no fal account. Instinct 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 Instinct?**

About two minutes: create an API key, then send Instinct this message, then give Instinct the key.

**Does Instinct wait while LatentSync runs?**

LatentSync runs in the background. Instinct 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.

