HeyGen Lipsync Precision
Lipsync: replace the speech in a finished video. The lips match the new audio precisely. 2 to 600 seconds.
Good for: dubbing, replacing a line, translating a clip and fixing a voice-over
You pay per second of your audio. The result is the same length: 2 to 600 seconds.
For developers →How to get a better result
"A ginger cat on a windowsill, rain outside, watercolor".
"Soft sunset", "neon light", "cozy, warm tones".
Refine the description and press "Another version" — every result is new.
Pass this model in the request heygen-lipsync-precision
1. Create a task POST /api/v1/jobs/createTask
curl -X POST https://mixmedia.tech/api/v1/jobs/createTask \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-123" \
-d '{
"model": "heygen-lipsync-precision",
"callBackUrl": "https://your-app.example/callback",
"input": {
"resolution": "1080p"
}
}'import time, requests
API = "https://mixmedia.tech/api/v1"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY"}
task = requests.post(f"{API}/jobs/createTask", headers=HEADERS, json={
"model": "heygen-lipsync-precision",
"callBackUrl": "https://your-app.example/callback",
"input": {
"resolution": "1080p"
}
}).json()
task_id = task["data"]["taskId"]
while True:
info = requests.get(f"{API}/jobs/recordInfo", headers=HEADERS, params={"taskId": task_id}).json()["data"]
if info["state"] in ("success", "fail"):
break
time.sleep(4)
print(info["state"], info.get("resultJson") or info.get("failMsg"))const API = "https://mixmedia.tech/api/v1";
const headers = { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" };
const { data } = await fetch(`${API}/jobs/createTask`, {
method: "POST", headers,
body: JSON.stringify({
"model": "heygen-lipsync-precision",
"callBackUrl": "https://your-app.example/callback",
"input": {
"resolution": "1080p"
}
}),
}).then((r) => r.json());
let info;
do {
await new Promise((r) => setTimeout(r, 4000));
info = (await fetch(`${API}/jobs/recordInfo?taskId=${data.taskId}`, { headers }).then((r) => r.json())).data;
} while (!["success", "fail"].includes(info.state));
console.log(info.state, info.resultJson ?? info.failMsg);Response: data.taskId. callBackUrl and Idempotency-Key are optional.
2. Status and result GET /api/v1/jobs/recordInfo
curl "https://mixmedia.tech/api/v1/jobs/recordInfo?taskId=TASK_ID" \
-H "Authorization: Bearer YOUR_API_KEY"
data.state: waiting, queuing, generating, success, fail. On success data.resultJson is a JSON string with resultUrls.
About the model
HeyGen Lipsync Precision takes a finished video of a person speaking and a new audio track, and re-animates the mouth so it matches the new speech.
This is lipsync, not a clip made from scratch: the picture, framing and scene stay yours; only the articulation follows the new audio. The result is as long as the audio.
You need one video and one audio file from 2 to 600 seconds (MP4/MOV and MP3/WAV). Quality follows the source clip. Optionally you can strip music from the source or slightly enhance the speech. You pay per second of your audio. If generation fails, the money is returned.