[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Sync Lipsync 2.0](https://spiral.ai/integrations/opencode/sync-lipsync-2-0)

# How to Use Sync Lipsync 2.0 in opencode

Sync Lipsync 2.0 matches existing talking footage to replacement speech while preserving the speaker’s style. It suits general dubbing and dialogue changes; Sync Lipsync 2.0 Pro adds finer detail around teeth and facial hair.

|  |  |
| --- | --- |
| Model | Sync Lipsync 2.0 |
| Available through | fal |
| Category | Video |
| Price | Up to $3.90 per run at the default inputs for 60 seconds of input. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Sync Lipsync 2.0 in opencode

- Use Sync Lipsync 2.0 to match assets/presenter.mp4 to assets/corrected-dialogue.wav. Check that the source shows natural speaking motion, then save a preview for review.
- Use Sync Lipsync 2.0 to make Spanish and Japanese versions of assets/lesson.mp4 with the finished recordings in assets/dubs. Keep the outputs clearly labeled by language.
- Use Sync Lipsync 2.0 to create previews from the presenter clips and matching replacement recordings in this project. Report clips with still mouths or full profile views before processing them.
- Make a talking-head video with Sync Lipsync 2.0 from this headshot and this 20-second voiceover. Save the result in ./assets.
- Create a 15-second founder intro with Sync Lipsync 2.0 using the photo and script I attach.

## How to set up Sync Lipsync 2.0 in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 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 Sync Lipsync 2.0**: 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/sync-lipsync/v2",
    "input": {
      "video_url": "https://v3.fal.media/files/tiger/IugLCDJRIoGqvqTa-EJTr_3wg74vCqyNuQ-IiBd77MM_output.mp4",
      "audio_url": "https://fal.media/files/lion/vyFWygmZsIZlUO4s0nr2n.wav"
    }
  }'
```

Then paste one of the prompts above: opencode finds Sync Lipsync 2.0 on Spiral, shows the price and runs it.

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

## Sync Lipsync 2.0 tools and prices

- [Sync Lipsync 2.0](https://spiral.ai/tools/fal/fal-ai/sync-lipsync/v2) (fal): $3.90 per minute.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| model | lipsync-2, lipsync-2-pro | lipsync-2 | The model to use for lipsyncing. `lipsync-2-pro` will cost roughly 1.67 times as much as `lipsync-2` for the same duration. |
| sync_mode | cut_off, loop, bounce, silence, remap | cut_off | Lipsync mode when audio and video durations are out of sync. |

## What can you do with Sync Lipsync 2.0 in opencode?

Turn recorded presenters and animated talking shots in your project into videos with replacement dialogue. Your coding agent can prepare the media, run Sync Lipsync 2, and organize previews for review.

### Localize instructor-led lessons

Match an instructor’s talking footage to separately recorded translations for learners in other languages.

### Dub creator videos

Give a talking-head video a translated speech track with mouth movements that follow the new recording.

### Personalize sales greetings

Reuse a recorded presenter with separately prepared greetings for individual prospects.

### Adapt customer onboarding videos

Match a presenter’s footage to new onboarding messages for different customers or audiences.

### Replace a recorded line

Pair an existing talking shot with a corrected audio take, then review whether the mouth movement fits the replacement dialogue.

### Add dialogue to generated humans

Match an AI-generated human’s visible speaking motion to a finished voice recording.

### Localize animated dialogue

Use an existing animated talking shot with a human-like face and a translated dialogue recording.

## Overview

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

## Sync Lipsync 2.0 in other agents

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

## More opencode guides

- [Sync Lipsync 1.9](https://spiral.ai/integrations/opencode/sync-lipsync-1-9)
- [Sync Lipsync 2.0 Pro](https://spiral.ai/integrations/opencode/sync-lipsync-2-0-pro)
- [Sonilo v1.1 Video to Video Sound Effects](https://spiral.ai/integrations/opencode/sonilo-v1-1-video-to-video-sound-effects)
- [Sync React-1](https://spiral.ai/integrations/opencode/sync-react-1)
- [Sonilo v1.1 Video to Video Music](https://spiral.ai/integrations/opencode/sonilo-v1-1-video-to-video-music)
- [Sync-3 Avatar](https://spiral.ai/integrations/opencode/sync-3-avatar)

## Questions about Sync Lipsync 2.0 in opencode

**Can opencode use Sync Lipsync 2.0?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Sync Lipsync 2.0 like any built-in tool.

**How much does Sync Lipsync 2.0 cost in opencode?**

Up to $3.90 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 opencode plan is separate.

**Do I need a fal account to use Sync Lipsync 2.0 in opencode?**

No. Spiral runs Sync Lipsync 2.0 on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Sync Lipsync 2.0 in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while Sync Lipsync 2.0 runs?**

Sync Lipsync 2.0 runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.

**What does Sync Lipsync 2 change in a video?**

It changes the speaker’s lip movements to match a replacement audio track. Use it to dub talking footage or change dialogue while retaining the speaker’s visual speaking style.

**Can Sync Lipsync 2 work with different languages?**

Yes. Supply the translated speech as audio, and it can match the speaker’s lips to that recording in any language.

**Can I start with a still photo?**

Use video that already shows natural speaking motion. Still frames and inactive mouths do not provide the motion Sync Lipsync 2 needs for reliable results.

**Is the finished video only 512×512?**

The 512×512 limit describes the generated face region. The face is placed back into the original frame, and the output retains the source video’s dimensions and orientation.

**Does Sync Lipsync 2 work on animated characters?**

It can work on animated characters with human-like faces. Animals and non-humanoid characters are unsupported, so start with a short test before processing a longer scene.

