HeyGen Translate
HeyGen Translate: translate a finished video into another language with lipsync, up to 8 minutes.
Good for: dubbing, localizing clips and translating talks
You pay per second of your video. The result is the same length: 2 to 30 seconds; longer clips are trimmed to 30.
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-translate
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-translate",
"callBackUrl": "https://your-app.example/callback",
"input": {
"output_language": "Russian",
"quality": "speed",
"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-translate",
"callBackUrl": "https://your-app.example/callback",
"input": {
"output_language": "Russian",
"quality": "speed",
"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-translate",
"callBackUrl": "https://your-app.example/callback",
"input": {
"output_language": "Russian",
"quality": "speed",
"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.
Input fields
| Field | What to send |
|---|---|
video_url * | video |
output_language * | English · Spanish · French · Hindi · Italian · German · Polish · Portuguese · Chinese · Japanese · Dutch · Turkish · Korean · Danish · Arabic · Romanian · Mandarin · Filipino · Swedish · Indonesian · Ukrainian · Greek · Czech · Bulgarian · Malay · Slovak · Croatian · Tamil · Finnish · Russian · Afrikaans (South Africa) · Albanian (Albania) · Amharic (Ethiopia) · Arabic (Algeria) · Arabic (Bahrain) · Arabic (Egypt) · Arabic (Iraq) · Arabic (Jordan) · Arabic (Kuwait) · Arabic (Lebanon) · Arabic (Libya) · Arabic (Morocco) · Arabic (Oman) · Arabic (Qatar) · Arabic (Saudi Arabia) · Arabic (Syria) · Arabic (Tunisia) · Arabic (United Arab Emirates) · Arabic (Yemen) · Armenian (Armenia) · Azerbaijani (Latin, Azerbaijan) · Bangla (Bangladesh) · Basque · Bengali (India) · Bosnian (Bosnia and Herzegovina) · Bulgarian (Bulgaria) · Burmese (Myanmar) · Catalan · Chinese (Cantonese, Traditional) · Chinese (Jilu Mandarin, Simplified) · Chinese (Mandarin, Simplified) · Chinese (Northeastern Mandarin, Simplified) · Chinese (Southwestern Mandarin, Simplified) · Chinese (Taiwanese Mandarin, Traditional) · Chinese (Wu, Simplified) · Chinese (Zhongyuan Mandarin Henan, Simplified) · Chinese (Zhongyuan Mandarin Shaanxi, Simplified) · Croatian (Croatia) · Czech (Czechia) · Danish (Denmark) · Dutch (Belgium) · Dutch (Netherlands) · English (Australia) · English (Canada) · English (Hong Kong SAR) · English (India) · English (Ireland) · English (Kenya) · English (New Zealand) · English (Nigeria) · English (Philippines) · English (Singapore) · English (South Africa) · English (Tanzania) · English (UK) · English (United States) · Estonian (Estonia) · Filipino (Philippines) · Finnish (Finland) · French (Belgium) · French (Canada) · French (France) · French (Switzerland) · Galician · Georgian (Georgia) · German (Austria) · German (Germany) · German (Switzerland) · Greek (Greece) · Gujarati (India) · Hebrew (Israel) · Hindi (India) · Hungarian (Hungary) · Icelandic (Iceland) · Indonesian (Indonesia) · Irish (Ireland) · Italian (Italy) · Japanese (Japan) · Javanese (Latin, Indonesia) · Kannada (India) · Kazakh (Kazakhstan) · Khmer (Cambodia) · Korean (Korea) · Lao (Laos) · Latvian (Latvia) · Lithuanian (Lithuania) · Macedonian (North Macedonia) · Malay (Malaysia) · Malayalam (India) · Maltese (Malta) · Marathi (India) · Mongolian (Mongolia) · Nepali (Nepal) · Norwegian Bokmål (Norway) · Pashto (Afghanistan) · Persian (Iran) · Polish (Poland) · Portuguese (Brazil) · Portuguese (Portugal) · Romanian (Romania) · Russian (Russia) · Serbian (Latin, Serbia) · Sinhala (Sri Lanka) · Slovak (Slovakia) · Slovenian (Slovenia) · Somali (Somalia) · Spanish (Argentina) · Spanish (Bolivia) · Spanish (Chile) · Spanish (Colombia) · Spanish (Costa Rica) · Spanish (Cuba) · Spanish (Dominican Republic) · Spanish (Ecuador) · Spanish (El Salvador) · Spanish (Equatorial Guinea) · Spanish (Guatemala) · Spanish (Honduras) · Spanish (Mexico) · Spanish (Nicaragua) · Spanish (Panama) · Spanish (Paraguay) · Spanish (Peru) · Spanish (Puerto Rico) · Spanish (Spain) · Spanish (United States) · Spanish (Uruguay) · Spanish (Venezuela) · Sundanese (Indonesia) · Swahili (Kenya) · Swahili (Tanzania) · Swedish (Sweden) · Tamil (India) · Tamil (Malaysia) · Tamil (Singapore) · Tamil (Sri Lanka) · Telugu (India) · Thai (Thailand) · Turkish (Türkiye) · Ukrainian (Ukraine) · Urdu (India) · Urdu (Pakistan) · Uzbek (Latin, Uzbekistan) · Vietnamese (Vietnam) · Welsh (United Kingdom) · Zulu (South Africa) · English - Your Accent · English - American Accent · default Russian |
quality | speed · precision · default speed |
translate_audio_only | true or false, default false |
speaker_num | number from 1 to 20 |
enable_dynamic_duration | true or false, default true |
About the model
HeyGen Translate takes a finished video of a person speaking and translates the speech into the language you pick: the voice stays similar, and the lips follow the new speech.
This is a translation of a finished clip, not a clip made from scratch: the framing and scene stay yours. The length usually matches the source; if speech in the other language is longer or shorter, the duration adjusts a little.
You need one video from 2 seconds to 8 minutes (MP4/MOV). Speed is faster and cheaper; Precision matches the lips more tightly. Optionally you can translate only the audio and leave the face unchanged.
You pay per second of your video; the rate depends on the mode. If generation fails, the money is returned.