Spiral gives your agent every tool with one account. Browse the tools →

opencode · Video

How to Use VEED Lipsync in opencode

VEED Lipsync matches a speaker's mouth movements to replacement audio in existing footage. Use it to fix dialogue or make translated versions of a talking video without recording the picture again.

Prompts to try with VEED Lipsync in opencode

Copy an example into opencode, or ask in your own words.

Use VEED Lipsync to update the presenter clip in public/media/onboarding.mp4 with public/media/onboarding-corrected.wav. Check that the durations match first, then save a separate review copy.

VEED Lipsyncopencode
Try asking
  • Use VEED Lipsync to make a Spanish edition of assets/training-intro.mp4 with assets/training-intro-es.wav. Compare their durations before processing and leave the original assets intact.

  • Find the front-facing presenter take with the least head movement in assets/presenter-takes. Use VEED Lipsync with assets/approved-dialogue.wav after checking the selected pair's durations.

  • Use VEED Lipsync to create separate review clips for each approved opening recording in assets/ad-hooks, paired with assets/ad-presenter.mp4. Flag duration mismatches before processing.

  • Use VEED Lipsync to replace the outdated spoken line in assets/product-intro.mp4 with assets/product-intro-new.wav. Save the result beside the source and add it to the project's video review page.

How to set up VEED Lipsync 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.

    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.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run VEED Lipsync

    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": "veed/lipsync",
        "input": {
          "video_url": "https://v3.fal.media/files/monkey/q1fDPhrpfjfsaRmbhTed4_influencer.mp4",
          "audio_url": "https://v3.fal.media/files/rabbit/Ql3ade3wEKlZXRQLRbhxm_tts.mp3"
        }
      }'

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

VEED Lipsync providers and prices

Spiral runs VEED Lipsync through fal. Open a card for today's price, with every fee included.

falVideo
Lipsync
veed/lipsync

What can you do with VEED Lipsync in opencode?

Turn existing presenter footage into corrected or localized video assets for your project. Use VEED Lipsync for the mouth synchronization, and have the coding agent organize source pairs and review copies.

Correct a presenter’s line

Match an existing presenter shot to a corrected recording when a product name or spoken detail changes.

Localize a product ad

Pair a filmed spokesperson with an approved translated recording to prepare an ad for another market.

Translate employee training

Reuse instructor footage with translated speech recordings for employees who speak different languages.

Replace dialogue in post-production

Fit a replacement dialogue recording to an existing shot after the picture has been edited.

Refresh an onboarding lesson

Update a presenter’s spoken instructions with a revised recording when a process changes.

Test alternate ad openings

Make separate versions of a presenter clip using approved opening-line recordings, each matched to the selected shot’s duration.

Questions about VEED Lipsync in opencode

Can opencode use VEED Lipsync?

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

How much does VEED Lipsync cost in opencode?

Up to $0.52 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 VEED Lipsync in opencode?

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

How long does it take to set up VEED Lipsync in opencode?

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

Does opencode wait while VEED Lipsync runs?

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

What is VEED Lipsync useful for?

Use it when the footage is usable but the spoken line needs to change. It can match the speaker's lips to replacement dialogue, including a translated recording.

Can VEED Lipsync help localize training videos?

Yes. Pair the existing presenter footage with a translated speech recording to make another language version of the lesson.

What footage gives the best results?

Choose a front-facing shot with little head movement. Prefer that over a take where the speaker keeps turning away.

How should I prepare replacement dialogue?

Match the replacement recording's duration to the video segment you want to change. Review the timing before submitting the pair.

Is VEED Lipsync the same as Lipsync 2.0?

No. VEED identifies the original Lipsync and Lipsync 2.0 separately, so use documentation that names the version you are working with.

Get started

Start using VEED Lipsync in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options