calesthio/sync-labs-lipsync
>- Generate AI lip sync and visual dubbing with Sync Labs (sync.so) — choose the right model (sync-3, lipsync-2, lipsync-2-pro, lipsync-1.9.0-beta, react-1), build the POST /v2/generate request, host inputs, handle async jobs via polling or webhooks, run batch dubbing/localization, and review output for sync accuracy and identity preservation. Use when an agent must re-voice, dub, translate, personalize, or re-time the mouth of a talking-head video (or animate a still face from audio), or must debug a failed/rejected Sync generation. Also covers consent, likeness, and rights obligations for editing a real person's face.
npx skills add https://github.com/calesthio/generative-media-skills --skill sync-labs-lipsync
Sync Labs (product domain sync.so, API host api.sync.so) is a hosted API and web
studio that regenerates a speaker's mouth (and, on newer models, jaw/expression/head)
to match a new audio track. It does not generate whole people or scenes: the input is
an existing talking-head video (or, on sync-3, a single still face), plus target
audio (a file, a hosted URL, or text synthesized through an integrated TTS provider).
Everything outside the driven face region — background, body, hair, clothing — is left
untouched and composited around the regenerated face. (Documented: sync.so/docs
introduction and "how AI lip sync works", verified 2026-07-10.)
Use this skill when the job is: dubbing/localizing a video into another language,
re-timing lips to corrected or re-recorded audio (ADR-style), personalizing a base
video with per-recipient names, cutting podcast/interview clips with clean lips, or
animating a portrait photo from a voiceover. Do not reach for it to generate a
face from scratch, to swap identities, or to produce a full avatar from text alone —
those are different product categories.
All model facts below are from sync.so/docs (models pages and pricing), verified
2026-07-10. Prices are quoted per second of output at 25 fps and move with plan
tier, so treat them as dated reference, not a contract.
| Model ID | Face resolution | Obstruction handling | Speed (docs) | Price/sec @25fps | Built for |
|---|---|---|---|---|---|
| lipsync-1.9.0-beta | face crop | none | ~3x real-time (fastest) | $0.02–0.025 | cheap, simple, frontal clips; generic mouth motion |
| lipsync-2 | 512×512 crop | optional (occlusion_detection_enabled) | ~1x real-time | $0.04–0.05 | general-purpose default; preserves each speaker's style |
| lipsync-2-pro | 512×512 + diffusion super-res | optional | ~0.5–0.7x (1.5–2x slower than lipsync-2) | $0.067–0.083 | premium detail on beards, teeth, fine facial features |
| sync-3 | 4K native, full-shot | automatic, built-in | fast (processes whole shot at once) | $0.107–0.133 | close-ups, profiles/extreme angles, partial faces, still-image input |
| react-1 | expression/head editing | — | short clips only | (see pricing page) | change emotion, expression, and head motion, not just lips |
Decision guidance (heuristic, grounded in the documented capability differences):
lipsync-2 for a normal, well-lit, roughly frontal talking head. It isthe documented "most natural" general model and the cheapest of the current-quality
tier. Escalate only for a reason.
lipsync-2-pro when the mouth region shows fine texture that a viewer willscrutinize — facial hair crossing the lips, visible teeth in close-up, high-bitrate
footage where 512-crop softness would read as a downgrade. It is slower and ~1.7x the
cost; do not pay for it on a wide shot where the face is small.
sync-3 when the shot breaks the frontal-face assumption: profile/over-the-shoulder angles, a hand or mic crossing the mouth, a cropped/partial face, or a
genuine 4K deliverable where a 512 crop composited back would be soft. sync-3 also
handles obstructions with no configuration and is the only model that accepts
a still image as the visual input (JPEG/PNG/WebP) to animate a portrait from audio.
lipsync-1.9.0-beta only for throwaway/high-volume/tight-budget work wheregeneric lip motion is acceptable; its mouth shapes are not speaker-specific.
react-1 when the deliverable requires *acting*, not just sync — you want thesame person re-performed happier/angrier/sadder with matching head motion. Inputs are
capped at 15 seconds (documented hard limit) and it exposes an emotion prompt of
happy | sad | angry | disgusted | surprised | neutral.
Documented limitation to plan around: **lipsync-2 and lipsync-2-pro require natural
speaking motion in the input video.** A near-static frame (a locked-off portrait, a
person holding still) may not sync well on those models — that is exactly the case for
sync-3 (which can "open silent lips naturally") or a still-image sync-3 job.
Documented facts below verified 2026-07-10 against sync.so/docs API reference.
POST https://api.sync.so/v2/generatex-api-key: YOUR_API_KEY (not a Bearer token; the SDK readsSYNC_API_KEY from the environment).
pip install syncsdk (import from sync import Sync), and aTypeScript SDK (SyncClient). Both wrap generations.create() / generations.get().
generations) is separately capped by plan tier — exceeding it returns
concurrency_limit_reached (429), which is *not* the same as rate_limit_exceeded.
GET https://api.sync.so/v2/errors returns{code, message, suggestion} objects. Resolve any errorCode against it at runtime
rather than hard-coding message strings.
{
"model": "lipsync-2",
"input": [
{ "type": "video", "url": "https://cdn.example.com/source.mp4" },
{ "type": "audio", "url": "https://cdn.example.com/newvoice.mp3" }
],
"options": {
"sync_mode": "cut_off",
"temperature": 0.5,
"active_speaker_detection": { "auto_detect": true },
"occlusion_detection_enabled": false
},
"outputFileName": "dub_v1",
"webhookUrl": "https://your.app/hooks/sync"
}
Field notes (documented):
input — exactly one visual item (video or image; image only onsync-3) plus one audio source (audio, or a text TTS item, or dubParams — pick
one path). Supplying two visuals returns generation_input_too_many_visual. Each item
takes either url (any publicly reachable URL) or assetId (from the Assets API),
and an optional refId used to wire it to the segments array. Video items may carry
segments_secs / segments_frames to lipsync only sub-ranges.
options.sync_mode — how a video/audio duration mismatch is reconciled:silence (pad audio with silence to fill the video), cut_off (trim the video to the
audio length), remap (change video playback speed to match audio), loop (repeat the
video), bounce (ping-pong the video forward/back). Ignored for image inputs. cut_off
is the safe default for dubbing when the new voice is shorter and you don't want frozen
tails; remap risks unnatural motion speed, so use it deliberately.
options.temperature — 0.0–1.0, expressiveness of the generated mouth motion.Higher is more animated but can over-articulate; lower is calmer/more conservative.
(Documented range; effect is a first-party parameter description.)
options.active_speaker_detection — for multi-face frames. {auto_detect: true}lets the model pick the talking face; otherwise pin the speaker with coordinates,
bounding_boxes, bounding_boxes_url, and/or frame_number. Without this, a
multi-face clip can drive the wrong face. Active Speaker Detection is a paid-tier
feature (Creator plan and up).
options.occlusion_detection_enabled — on lipsync-2 / lipsync-2-pro, turn onwhen hands/mics/hair cross the mouth. On sync-3 it is automatic and this flag is
unnecessary.
options.model_mode — lips | face | head (region the model is allowed to edit;broader modes drive expression/head, relevant to react-1-style editing).
options.prompt — emotion for react-1: `happy | sad | angry | disgusted |surprised | neutral`.
segments — array of {startTime, endTime, audioInput:{refId,...}, optionsOverride}to apply different audio and per-segment options to different time ranges of one video
(multi-speaker / multi-line dubbing in a single job).
dubParams — automatic translation dubbing: `{providerName:"elevenlabs",sourceLang, targetLang, numSpeakers}`. It extracts the audio from the input video,
translates, and re-voices; do not also pass a separate audio/text input (that
returns generation_input_dub_audio_conflict). Documented target languages include en,
es, fr, de, it, pt, pl, hi, zh, ja, ar, ru, ko, id, nl, tr, sv, fil, ms, ro, uk, el,
cs, da, fi, bg, hr, sk, ta; numSpeakers 0–50.
outputFileName — alphanumerics/underscores/hyphens only, .mp4 appended.POST returns 201 with an id and status. Statuses: PENDING (queued) →
PROCESSING → terminal COMPLETED (outputUrl populated), FAILED (check
error + errorCode), or REJECTED (validation/policy rejection before processing).
Two ways to learn the outcome:
GET /v2/generate/{id} (SDK generations.get(id)) at ~10 s intervals.GET ...?wait=true long-polls but caps at a 10-second server timeout — it is not a
substitute for polling a long job.
webhookUrl (public HTTPS, mustreturn 2xx quickly). Each delivery carries a Sync-Signature: t={timestamp},v1={hmac}
header; verify by computing HMAC-SHA256 over timestamp + rawBody with your signing
secret (whsec_...) and comparing timing-safely. There is no automatic retry on a
failed delivery, so keep a polling fallback for reconciliation.
*This is a worked example, not a required template.*
voice character, delivering a clean 1080p MP4.
lipsync-2 (frontal, well-lit presenter; no occlusion) — escalate tosync-3 only if QA shows profile shots.
upload limit, so URL not upload). Spanish audio produced by an ElevenLabs voice cloned
from the presenter's own consented English audio (30+ s clean single-speaker sample).
from sync import Sync
from sync.common import Video, Audio, GenerationOptions
sync = Sync() # reads SYNC_API_KEY
job = sync.generations.create(
input=[
Video(url="https://cdn.example.com/ad_en_1080p.mp4"),
Audio(url="https://cdn.example.com/ad_es_clonedvoice.wav"),
],
model="lipsync-2",
options=GenerationOptions(
sync_mode="cut_off", # ES track is shorter; trim video tail
occlusion_detection_enabled=False,
active_speaker_detection={"auto_detect": True},
),
output_file_name="ad_es_v1",
)
# then poll job.id, or receive a webhook
cut_off avoids a frozen final frame when the translatedline runs short. Voice is cloned from the *presenter's own* consented sample — the
consent-first path. 1080p input keeps face detection reliable while the 512 crop
composites back cleanly at that scale.
of frame identical to source.
cut_off willtruncate speech — switch to remap (accept mild speed change) or re-time the script.
If QA shows soft teeth in the close-up hero shot, re-run that shot on lipsync-2-pro.
*Example.* Two on-camera speakers, one 15 s clip, each line re-voiced by a distinct
cloned voice via integrated TTS, no separate audio hosting:
job = sync.generations.create(
input=[
Video(url="https://cdn.example.com/interview.mp4"),
TTS(provider={"name":"elevenlabs","voiceId":"voice_A","script":"Bienvenidos al programa."}, ref_id="a"),
TTS(provider={"name":"elevenlabs","voiceId":"voice_B","script":"Gracias por recibirme."}, ref_id="b"),
],
segments=[
{"startTime": 0, "endTime": 8, "audioInput": {"refId": "a"}},
{"startTime": 8, "endTime": 15, "audioInput": {"refId": "b"}},
],
model="lipsync-2",
)
segments binds each TTS line to a time range and (via active-speakerdetection per segment if needed) the right face. Keeps a two-person scene in one job.
generation_input_segments_invalid; if both faces are visible per segment, add
active_speaker_detection in optionsOverride to pin each speaker.
*Example.* Bring a single headshot to life reading a 20 s script:
{
"model": "sync-3",
"input": [
{ "type": "image", "url": "https://cdn.example.com/headshot.png" },
{ "type": "audio", "url": "https://cdn.example.com/vo.mp3" }
],
"outputFileName": "portrait_talk"
}
sync-3-only.sync_mode is ignored for images (no intrinsic duration).
well-lit, roughly frontal headshot.
*Example.* Batch API accepts a JSONL file, one record per line, each a /v2/generate
body plus a unique request_id. Documented constraints: 20–1000 records per batch,
file ≤5 MB, endpoint must be /v2/generate, request_ids unique, Scale plan or
higher (batch_plan_required / 403 otherwise). Use it to fan out one video into many
target languages, or many personalized variants, without 1000 individual calls.
H.265/MPEG-2 lose up to ~15%, VP9 ~20%, AV1 >20% (everything is transcoded to H.264,
output re-encoded libx264 -crf 17 -preset slow). Prefer MP4/H.264 in, 1080p.
max 4K (4096×2160). Non-sync-3 models extract the face at 512×512, process it,
and composite back — so an enormous input resolution does not raise face detail on
those models; sync-3 works at 4K natively.
WMA/M4A/AAC limited). 44.1 or 48 kHz recommended; up to 32-bit float, up to 7.1 ch.
One speaker per audio track, isolated from music/crowd noise.
413/file_size_exceeds_plan_limit); above that, hostat a public URL (no size cap) or use the Assets API (POST /v2/assets/upload).
Creator 5 min, Growth 10 min, Scale/Enterprise 30 min. Additional hard caps: react-1
input ≤15 s; audio ≤300 s (5 min) per generation; TTS text ≤5000 characters.
Usage is metered per second of output; a subscription unlocks higher limits, features,
and usage discounts. Per-second model prices are in the model table above.
| Plan | Price/mo | Per-sec | Max length | Concurrent | Voice clones | Notable |
|---|---|---|---|---|---|---|
| Free | $0 | — | 20 s | — | — | 3 generations/month |
| Hobbyist | $5 | $0.05 | 1 min | 1 | 3 | API, SDKs, Studio |
| Creator | $19 | $0.05 | 5 min | 3 | 5 | no watermark, own TTS key, Active Speaker Detection |
| Growth | $49 | $0.0475 (5% off) | 10 min | 6 | 15 | batch API, 3 team seats |
| Scale | $249 | $0.04 (20% off) | 30 min | 15 | 50 | batch API, 5 seats, delegated support |
| Enterprise | custom | custom | custom | custom | custom | contract |
Note: the free/low tiers watermark output and cap concurrency to 1 — remove the
watermark by upgrading to Creator+. Batch API is Growth+ (batch_plan_required cites
Scale for the batch endpoint specifically — confirm your tier against the live error
catalog before building a batch pipeline).
Before shipping, check each of these — the first two are the ones that make output look
"AI", and they fail independently:
late? Scrub plosives (b/p/m — lips must fully close) and open vowels. Drift that grows
over a long clip usually means duration mismatch — revisit sync_mode (try cut_off)
or split into <2-minute segments.
"smeared" or averaged mouth, lost lip shape, or a jaw that moves unlike the subject.
On lipsync-1.9.0-beta expect generic (non-speaker-specific) motion by design.
lipsync-2 tell — fix with lipsync-2-pro), the lip/skin seam (blend/color/lighting
mismatch at the composite boundary), and beard/mustache continuity across the mouth.
through it (wrong) or respect it? If wrong on lipsync-2/pro, set
occlusion_detection_enabled=true; if still wrong, move to sync-3 (automatic).
with active-speaker detection.
lipsync-2/pro, a near-still input can under-sync — thisis the documented "requires natural speaking motion" limit; move to sync-3.
Branch on errorCode, not the human error string, and read field to see which input
was rejected. Key cases and fixes:
generation_input_face_selection_invalid ("selected face unusable") — re-run facedetection / enable auto-detect, or improve face size/lighting/angle.
generation_input_too_many_visual — you sent two visuals; send exactly one.generation_input_segments_invalid — segments overlap or have invalid times; makethem non-overlapping with valid ranges.
generation_input_dub_audio_conflict — you passed both dubParams and anaudio/text input; choose one.
generation_audio_length_exceeded / generation_text_length_exceeded — trimaudio ≤300 s / text ≤5000 chars, or split.
generation_plan_duration_exceeded (402) — output exceeds your plan's per-gen cap;upgrade, trim input, or use a shortening sync_mode.
concurrency_limit_reached (429) vs rate_limit_exceeded (429) — the firstmeans too many *in-flight* jobs (wait/upgrade); the second means too many *requests/min*
(exponential backoff). Do not confuse them.
generation_media_metadata_missing — audio needs duration; video needsduration + frame_rate. Re-encode with FFmpeg to embed metadata.
REJECTED status — validation or policy rejection before processing; do notblindly retry, inspect the reason.
500/503/504, controller_*, generation_timeout,generation_infra_*) — retry with exponential backoff, honor Retry-After, try
off-peak; escalate with requestId if persistent.
402 payment / 401 auth — retry never helps; fix billing or the key.General repair ladder for a poor-but-successful result (heuristic): improve the input
(lighting, isolate voice, stabilize, raise resolution to 1080p, front the face) →
adjust parameters (sync_mode, temperature, occlusion_detection_enabled,
active-speaker pin) → escalate model (lipsync-2 → lipsync-2-pro for detail, or →
sync-3 for angle/occlusion/4K). Input quality dominates; try it before spending on a
pricier model.
Editing a real person's face to say new words is a likeness-and-voice action, not just a
render. Sync Labs' own published guidance frames the line clearly (sync.so blog, verified
2026-07-10): *dubbing is legitimate when the speaker/rights-holder agreed; the identical
output without that agreement is a deepfake.* Their design is "consent-first" — the
intended path is cloning your own voice, and using someone else's voice or face
requires their explicit permission.
Operating rules for an agent:
video, and has consent for any voice being cloned or any face being re-voiced. If those
are unclear, ask — do not proceed on assumption.
do not produce deceptive content (fake statements, fabricated endorsements), non-
consensual intimate content, or fraud/misinformation. These are the categories most
likely to be REJECTED and are legally and ethically out of bounds regardless of the
API accepting them.
audio (30+ s). Cloning a third party's voice from scraped audio is the exact non-
consensual case to refuse.
deletion posture (Sync Labs' own guidance advises verifying whether a provider retains,
trains on, or deletes your content on request). Prefer not uploading sensitive material
you cannot account for.
media disclosure norms and platform rules; a paid tier is what removes the watermark,
which means the burden of honest labeling shifts to you.
These obligations are independent of which model you pick and take precedence over
completing the generation.
First-party (Sync Labs / sync.so):
GET https://api.sync.so/v2/errors)Secondary (third-party model listings, used only to cross-check model availability, not
as the basis for any consequential claim): fal.ai, wavespeed.ai, replicate.com,
segmind.com listings of the Sync lipsync models.
Take calesthio/sync-labs-lipsync from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip.
Without those the skill loads but fails at the first command.