NewAPI v3 · November 2026 Release

Lip-sync API for dubbed video

Match mouth movements to dubbed speech across 135+ language and regional options. Dub your video through the API, run lip-sync on the result and download a video where the speaker on screen says the new words. A face check runs first. Lip-sync is billed separately from dubbing for each full-video generation, including regeneration after edits.
Free preview minute
Multiple faces on screen
REST + 5 SDKs
check, preview, sync
API key
# 1. the lip-sync state of a dubbed project
curl https://api.rask.ai/v3/projects/$ID/lipsync \
  -H "Authorization: Bearer $RASK_API_KEY"
#  "video_has_face": true, "free_trial_run_available": true

# 2. the price first - free, and it changes nothing
curl -X POST https://api.rask.ai/v3/projects/$ID/lipsync/estimate \
  -H "Authorization: Bearer $RASK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "enhanced"}'

# 3. lip-sync the full video - the price you accepted is the ceiling
curl -X POST https://api.rask.ai/v3/projects/$ID/lipsync \
  -H "Authorization: Bearer $RASK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "enhanced", "expected_cost_minutes": 12}'
GET /v3/projects/{project_id}/lipsync
polling, 15s
# Starting lip-sync returns a job. Wait on it instead of polling:
# one request, up to 20 seconds, and it returns the moment the task is done.
curl -s "https://api.rask.ai/v3/jobs/$JOB_ID?wait_seconds=20" \
  -H "Authorization: Bearer $RASK_API_KEY" | jq .status
Used by global teams
Capabilities

Everything the lip-sync API does

Add lip-sync to your dubbed videos. Check for a visible face, use your account’s free preview minute if available, and follow progress through the API. Full-video lip-sync is billed separately from dubbing each time you generate it.

Lip-sync on translated video

Match mouth movements to the dubbed speech in a video your project has translated, across the supported catalogue of 135+ language and regional options.

Automatic face check

Before lip-sync, a check face task confirms the video has at least one face. It runs once per project, usually on its own, so you know the result before you spend minutes.

Several faces on screen

Set num_speakers on the project for interviews, panels and multi speaker dialogue, so each voice is matched to its own speaker. Omit it and Rask detects the speakers itself.

One free preview minute

Every account gets a free lip-sync minute. Run it with free_trial_run on your own footage and review the result before you sync the full video.

Separate billing for each generation

Each full-video lip-sync generation is charged separately from dubbing. After script or voice edits, re-dub the project and generate a new lip-synced version with a new lip-sync charge.

Queue position and progress

The lip-sync info endpoint returns the number of tasks ahead of yours and progress from 0 to 100, so your users see real progress.

Voices that match the face

Lip-sync works on top of whichever voice the project uses for a speaker: their cloned voice or an AI voice preset.

Edit, re-dub, re-sync

Change text, timing or voices, re-dub the project, then run lip-sync again on the new version. The face check does not need to run again.

Scale without limits

Every lip-sync task is priced before it runs, and the price you accept is the ceiling. Send tasks for your full catalogue, with a monthly spending limit on each key.
See it in action

From dubbed speech to matching lip movements

The same clip dubbed into French, German, Portuguese and Spanish. On a dubbed project like this one, lip-sync adjusts the position of the lips to the new speech.
EN flag
En
FR flag
Fr
DE flag
De
PT flag
Pt
ES flag
Es
Workflow

Three steps from dubbed video to lip-synced video

Lip-sync runs on a project that is already dubbed. Use the /projects/{id}/dub endpoint to re-dub after edits, then sync the lips again.
1

Dub the video

Import the input video or send a public URL, create a project with a target language and wait for the job to succeed. Lip-sync needs the dubbed video this project produced.

POST /v3/projects
2

Check the face

The check face task confirms at least one face in the video. It usually starts automatically. If it has not started, run it yourself once for the project.

GET /v3/projects/{project_id}/lipsync
3

Run lip-sync and download

Start the lip-sync task, follow progress from 0 to 100 on the job, then download the video from the project outputs.

POST /v3/projects/{project_id}/lipsync
Processing time varies with video length and the lip-sync queue. The lip-sync info endpoint shows how many tasks are ahead of yours.
Built around you

Need lip-sync for a special case? Talk to our team

Higher throughput, processing priority, your own delivery method: when a lip-sync integration needs something outside the public catalogue, our team reviews your requirements and the available options.

Languages and voices

Need a language or voice outside the public catalogue? Talk to our team about your requirements and the available options.

Delivery and integration

Delivery into your own storage, custom endpoints, dedicated capacity. Tell us how your pipeline expects to be fed.

Volume and throughput

Batch sizes, target languages per action and processing priority are all contract terms, not fixed product limits.

Security and hosting

Data residency, SSO and SAML, retention rules and security review support are handled as part of enterprise onboarding.
Use cases

Who uses a lip sync API

Platforms with video inside

LMS and customer-education platforms, creator and video platforms, webinar and virtual event tools, video hosting and workflow SaaS, digital adoption platforms, live shopping. Add lip-synced dubbing to the videos your users and creators already host, so translated presenters look natural on screen and lip-sync becomes a premium feature of your product.

Localization and production agencies

Offer lip-sync as a separate deliverable on top of dubbing. Use your account’s free preview minute, if available, to evaluate the result. Include full-video lip-sync generation and any further generations after review in your client quote.

In-house continuous video production

International retail and e-commerce, global franchises, media publishers, corporate universities. For marketing, training and executive videos where a face fills the screen, lip-sync makes the translated speech match the speaker on camera in every market.
Customer stories

Real teams, measurable results

How companies localize video with Rask, in their own numbers.
arrow
arrow
Code

Lip sync API code examples

One complete example in each language, on a project that is already dubbed: check the face, run lip-sync, follow progress and download the result.
import os, requests

API = "https://api.rask.ai/v3"
h = {"Authorization": f"Bearer {os.environ['RASK_API_KEY']}"}

# lip-sync runs on a project that has already been dubbed
state = requests.get(f"{API}/projects/{project_id}/lipsync", headers=h).json()
assert state["video_has_face"]

# the price first - free, and it changes nothing
estimate = requests.post(f"{API}/projects/{project_id}/lipsync/estimate", headers=h,
                         json={"model": "enhanced"}).json()

# the price you accepted is the ceiling
job = requests.post(f"{API}/projects/{project_id}/lipsync", headers=h,
                    json={"model": "enhanced",
                          "expected_cost_minutes": estimate["total_minutes"]}).json()

requests.get(f"{API}/jobs/{job['id']}?wait_seconds=20", headers=h).json()

for o in requests.get(f"{API}/projects/{project_id}/outputs", headers=h).json()["data"]:
    print(o["kind"], o["url"])
github.com/braskai/rask-sdk
async, typed models
# pip install rask-sdk
from rask_sdk import Rask

rask = Rask()                                   # reads RASK_API_KEY

# the price first - free, and it changes nothing
estimate = rask.projects.estimate_project(
    media_id=media_id, target_language="es-mx"
)

# dub, then lip-sync what it produced
created = rask.projects.create_project(
    media_id=media_id,
    target_language="es-mx",
    expected_cost_minutes=estimate.total_minutes,
)
dubbed = rask.jobs.wait(created.id)

for o in rask.exports.list_project_outputs(dubbed.result.project_id).data:
    print(o.kind, o.url)
requests + polling
no SDK required
// no dependencies, Node 18+ global fetch
const API = 'https://api.rask.ai/v3';
const h = {
  Authorization: `Bearer ${process.env.RASK_API_KEY}`,
  'Content-Type': 'application/json',
};

// lip-sync runs on a project that has already been dubbed
const state = await fetch(`${API}/projects/${projectId}/lipsync`, { headers: h })
  .then(r => r.json());

// the price first - free, and it changes nothing
const estimate = await fetch(`${API}/projects/${projectId}/lipsync/estimate`, {
  method: 'POST', headers: h, body: JSON.stringify({ model: 'enhanced' }),
}).then(r => r.json());

// the price you accepted is the ceiling
const job = await fetch(`${API}/projects/${projectId}/lipsync`, {
  method: 'POST', headers: h,
  body: JSON.stringify({ model: 'enhanced', expected_cost_minutes: estimate.total_minutes }),
}).then(r => r.json());

await fetch(`${API}/jobs/${job.id}?wait_seconds=20`, { headers: h }).then(r => r.json());

const outputs = await fetch(`${API}/projects/${projectId}/outputs`, { headers: h })
  .then(r => r.json());
outputs.data.forEach(o => console.log(o.kind, o.url));
fetch, Node 18+
plain HTTP
API=https://api.rask.ai/v3
AUTH="Authorization: Bearer $RASK_API_KEY"
JSON="Content-Type: application/json"

# 1. the dubbed video must have a usable face
curl -s $API/projects/$ID/lipsync -H "$AUTH" | jq .video_has_face

# 2. the price first - free, and it changes nothing
CAP=$(curl -s -X POST $API/projects/$ID/lipsync/estimate -H "$AUTH" -H "$JSON" \
  -d '{"model": "enhanced"}' | jq -r .total_minutes)

# 3. start lip-sync - the price you accepted is the ceiling
JOB=$(curl -s -X POST $API/projects/$ID/lipsync -H "$AUTH" -H "$JSON" \
  -d "{\"model\":\"enhanced\",\"expected_cost_minutes\":$CAP}" | jq -r .id)

# 4. wait on the job, then collect the lip-synced video
curl -s "$API/jobs/$JOB?wait_seconds=20" -H "$AUTH" | jq .status
curl -s $API/projects/$ID/outputs -H "$AUTH" \
  | jq -r '.data[] | "\(.kind)\t\(.url)"'
POST /v3/projects/{project_id}/lipsync/estimate
API key, Bearer header
<?php
use GuzzleHttp\Client;

$http = new Client([
    'base_uri' => 'https://api.rask.ai/v3/',
    'headers'  => ['Authorization' => 'Bearer ' . getenv('RASK_API_KEY')],
]);

// lip-sync runs on a project that has already been dubbed
$state = json_decode($http->get("projects/{$projectId}/lipsync")->getBody(), true);

// the price first - free, and it changes nothing
$estimate = json_decode($http->post("projects/{$projectId}/lipsync/estimate",
    ['json' => ['model' => 'enhanced']])->getBody(), true);

// the price you accepted is the ceiling
$job = json_decode($http->post("projects/{$projectId}/lipsync", ['json' => [
    'model' => 'enhanced',
    'expected_cost_minutes' => $estimate['total_minutes'],
]])->getBody(), true);

$http->get("jobs/{$job['id']}?wait_seconds=20");

$outputs = json_decode(
    $http->get("projects/{$projectId}/outputs")->getBody(), true);
Guzzle 7
plain HTTP
Python is the official SDK. The Node, PHP and cURL tabs are plain HTTP examples against the same endpoints.
Progress

How a lip-sync task reports progress

The lip-sync info endpoint reports the face check, the task status, the queue position and progress from 0 to 100. You only need to act on three groups.

Success, stop here

status: succeeded
progress: 100
Lip-sync is complete. The download link is in the project outputs.

In progress, keep polling

status: queued
status: running
progress: 0-99
queue_position
While progress is null, the task is queued: queue_position shows how many tasks are ahead.

Failure, stop and report

status: failed
video_has_face: false
project_not_dubbed
A video without a visible face cannot be lip-synced. For a failed task, contact support with your project_id.
Lip-sync task, as GET /lipsync reports it
GET /v3/jobs/{job_id}
   0s  queued      lip-sync task accepted
   8s  running     face check
  40s  running     generating
 180s  running     merging
 210s  succeeded   the lip-synced video is in the project outputs

Or skip polling entirely

Wait on a job and the request returns the moment the work is done, so your queue reacts to each change without a polling loop.
Read the docs
preserveAspectRatio="xMidYMid meet" aria-hidden="true" role="img">
Output

Lip-synced video, dub and subtitles

Download the generated video from the project outputs. The project keeps the dubbed video without lip-sync and the translated subtitles in SRT and VTT, and on eligible plans the translated voice as separate audio tracks.
Field
Format
What it is
lipsync_video
MP4
The lip-synced video, ready to publish
voice_track
WAV
Translated speech only, for your own mix
dubbed_audio
WAV
Translated speech mixed with the original background audio
target_subtitles
.srt .vtt
Subtitles in the target language
lipsync_burned_subtitles_video
MP4
The lip-synced video with the subtitles burned in
dubbed_video
MP4
The dubbed video without lip-sync, for comparison
Control

Edit the dub, then generate an updated lip-synced version

After you change text, timing or voices, re-dub the changed segments and generate lip-sync for the updated video. Re-dubbing and each new full-video lip-sync generation are billed separately.

Segment-level editing

Segment-level editing
Edit individual transcript segments and re-dub the changed lines. To update the lip movements, generate a new lip-sync for the full video; this is billed separately.
Fetch the transcript and its segments
Patch the source text and we re-translate it
Patch the translated text directly to keep your own wording
Adjust timestamps, add segments, delete segments
Reassign the voice attached to any speaker

Glossaries for terminology

Glossaries for terminology
Attach a glossary so brand names and technical terms are spoken the same way in every dub, and lip-sync follows that same wording.

A glossary covers one language pair and applies across all regional variants of that target language, so one Spanish glossary serves es-mx and es-es alike. The project records glossary.version, so later edits never silently change finished work.
Input

Supported file formats

Upload any of seven video formats, or send a public URL. Audio-only files have no face on screen, so lip-sync applies to video formats only.

Video

7 formats
.mp4
.mov
.mkv
.avi
.webm
.m4v
.3gp

Audio

4 formats
.mp3
.wav
.flac
.m4a

Metadata before you spend

The media endpoint returns duration, file size, video codec, frame rate, resolution, audio codec, sample rate and channel layout. Validate a file and estimate cost in advance, because dubbing and lip-sync are each billed by the minute of video length.
Security and compliance

Faces and voices, handled securely

Brask Inc holds SOC 2 Type II and operates under GDPR, and publishes live control status in its Trust Center. Videos with faces and voices are processed in a closed AI environment.

Certifications

SOC 2 Type II
GDPR
CAI and C2PA member

Encryption

TLS 1.2 in transit
AES-256 at rest
SSE-S3 managed keys
Key rotation at least every 12 months

Your content

Closed AI environment
Never used to train general models
Full export, no lock-in

Access

SSO and SAML
Role-based access control
API key, Bearer header

Enterprise

Data residency options
Custom SLAs
Dedicated account manager

Voice rights

Synthetic voices with usage rights
Consent-based voice cloning
AI safety controls, human in the loop
Comparison

Rask API vs a lip-sync pipeline you build yourself

A standalone lip-sync API needs a finished audio track in the target language. Rask produces the dubbed track and syncs the lips in one project. Here is the same result, assembled two ways.
What you need
Rask API
Assembled from parts
A translated audio track to sync
Created by the same project
Transcription, translation and voice vendors first
Face check before you pay
Automatic, once per project
Your own face detection step
Several faces on screen
num_speakers on the project
Per-face tracking you build and tune
Preview before the full run
One free minute per account
Pay for every test run
Re-sync after a script edit
A new full-video lip-sync generation, billed separately
Pay again for the whole file
Background music and effects
Preserved under the new voice
A source-separation step you build
Subtitles in .srt and .vtt
Included
Generated from your own timing data
Queue visibility
Queue position and progress 0-100
Whatever your vendor exposes
Spend control
A monthly limit on each API key
Whatever your strictest vendor enforces
Billing
Per full-video lip-sync generation
Per run, per vendor
FAQ

Lip-sync API: common questions

Can't find what you're looking for? Contact sales.

Is there a lip-sync API?

Can I lip-sync a video without dubbing it first?

Can I lip-sync my own audio track?

Does the API generate talking avatars from an image or a prompt?

What does a video need for lip-sync?

How is lip-sync billed?

Is there a free lip-sync preview?

Does lip-sync work with several speakers?

How do I track lip-sync progress?

How long does lip-sync take?

What happens after I edit the dub?

What if lip-sync fails?

How do I get API access and an API key?

Start dubbing in one afternoon

Make your first request today, and talk to us when you need volume terms or a language nobody else has.