About HeyGen Video Translate
The HeyGen Video Translate API on PopNow is one asynchronous task, heygen/video-translate. You send a single talking clip in video_url (MP4 or WebM, no longer than 120 seconds), name the output language in target_language, and receive one MP4 at the input's frame size carrying the translated speech in a voice modelled on the speaker, with the mouth re-synced to the new words. There is no prompt, voice ID or source-language field, so the request is essentially a file plus two choices, which fits neatly behind a single Translate button. Design your player and timeline code for a result whose duration is not the same as the upload's.
Call it with the model name heygen/video-translate/video-translate on POST /jobs/createTask, from $0.045.
Introduction
HeyGen Video Translate changes the language of speech in a short video and syncs the lips to the translation. HeyGen says it supports 175+ languages and dialects with realistic AI voices, and that voice cloning carries the speaker’s tone across languages.
Get consent before sending footage: use a recording of yourself or people who agreed to this use. Translation makes them appear to say words in another language in a voice like their own. The first run on the model page requires acceptance of a consent notice.
Provide a spoken MP4 or WebM no longer than 120 seconds. Set target_language and, if needed, generation_mode; there is no prompt to write. English and Precision are the defaults.
Key features
- Lip movement changes with the speech. In our tests, source and translated frames at matching moments had different mouth shapes, while faces, clothing and the scene stayed the same.
- Choose a regional target. The 178 options include Spanish (Mexico), French (Canada) and Chinese (Cantonese, Traditional), alongside base languages.
- Two modes set the tradeoff. Precision aims for higher-quality lip sync, while Speed aims for a faster result and uses half the per-second rate.
- English accent choices are available. Targets include “English - Your Accent” and “English - American Accent.”
- Frame size is retained in our tests. We received MP4 with AAC audio; a 1280x720 input returned at the same size.
Request parameters
| Parameter | Required | Description |
|---|---|---|
generation_mode | No | Choose a mode from the available options. It may affect cost, speed and quality. precision · speed · Default: precision |
target_language | No | The language to dub into. It must differ from the language in the clip. 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: English |
video_url | Yes | The clip to work on. |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per second |
|---|---|
| generation_mode speed | $0.045 |
| generation_mode precision | $0.09 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
- Course welcome in Spanish: translate your own recorded introduction so Spanish-speaking students can hear the welcome with matching lip movement.
- French product demonstration: get your presenter’s consent, then translate a short walkthrough for French-speaking customers.
- Japanese creator announcement: adapt your spoken update for Japanese-speaking viewers using the same source recording.
Prompt guide & pro tips
- Check permission first. Obtain agreement from everyone who will appear to speak translated lines; do not use a celebrity, public figure or acquaintance without permission.
- Select the target deliberately. Check whether a base language or regional dialect suits your viewers, rather than leaving the English default by accident.
- Choose Precision for its lip-sync quality aim. It is the default and carries twice the Speed rate, so include that difference in your decision.
- Choose Speed when its rate and timing aim suit the task. It aims to finish sooner at half the per-second rate; actual completion time can vary.
- Allow space for longer translated speech. In our tests, an 8.00-second recording returned as 8.68 seconds in Spanish; check the finished duration before editing it into a sequence.
API quick start
Call the HeyGen Video Translate API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model heygen/video-translate/video-translate and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "heygen/video-translate/video-translate",
"input": {
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
"target_language": "English",
"generation_mode": "precision"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
What to build with the HeyGen Video Translate API
- A Publish in another language action for a course or creator platform: the user picks a target from your own list, your backend submits the stored upload, and the dubbed MP4 is attached as a sibling of the original lesson rather than replacing it.
- A localisation queue for short ads: fan one master out to several target_language values, for example Spanish (Mexico), French (Canada) and Japanese, each with its own Idempotency-Key, then show the finished versions side by side for sign-off.
- A two-pass review flow: run generation_mode speed to give reviewers a cheap draft of the wording, then resubmit only the approved clip with precision for the version that goes live.
HeyGen Video Translate parameter notes
- target_language is an enum of 178 human-readable labels, not ISO codes: "Spanish", "Spanish (Mexico)", "Chinese (Cantonese, Traditional)", "English - Your Accent". Keep a server-side map from your locale codes to these exact strings; es, es-MX or a label with different punctuation will not validate. The default is "English", so a request that omits the field quietly asks for English output.
- generation_mode accepts precision (the default) or speed. Speed bills half the per-second rate and aims to return sooner; precision aims for tighter lip sync. Treat turnaround as variable in both and never block a request thread waiting on it.
- video_url must be a directly downloadable MP4 or WebM of at most 120 seconds with audible speech. Measure duration before you request a quote and split longer recordings yourself; the endpoint translates one clip per task and does not join segments for you.
- The returned duration drifts from the source: one 8.00-second upload came back at 8.68 seconds, another eight-second clip at 7.36 seconds, and that second MP4 also carried a subtitle track. Read duration, streams and dimensions from the delivered file instead of copying them from the request.
How HeyGen Video Translate API pricing adds up
Billing is per second of the source clip, rounded up to whole seconds, with a one-second minimum and the 120-second cap as the ceiling. The length of the delivered file never changes the charge, and dialect or accent choices carry no surcharge. Precision is billed at twice the Speed rate, which makes Speed the natural choice for automated previews. Request a USD quote with the measured source duration, approve its hold, and read costUsd from the finished task; API usage is paid from your PopNow balance.
- generation_mode speed, 5-second clip: $0.225 each, $22.50 for 100 clips
- generation_mode precision, 5-second clip: $0.45 each, $45.00 for 100 clips
Async jobs, webhooks and rate limits
Every HeyGen Video Translate request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for heygen/video-translate/video-translate never runs or bills twice.
Common HeyGen Video Translate API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_request | target_language did not match one of the 178 enum labels, or generation_mode was something other than precision or speed. Validate against the catalog list and send the exact label, parentheses and commas included. |
invalid_asset | video_url could not be fetched as MP4 or WebM, runs longer than 120 seconds, or contains no audible speech. Upload local files through /common/upload-url, pass the popnow:// reference, and trim to 120 seconds first. |
timeout | Your wait expired, not necessarily the task. Look up the taskId through recordInfo before resubmitting so the same clip is not dubbed and billed twice. |
HeyGen Video Translate API questions
How much does the HeyGen Video Translate API cost?
HeyGen Video Translate costs $0.045 per second. Prices by option: speed $0.045 per second, precision $0.09 per second. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for HeyGen Video Translate in the API?
Put heygen/video-translate/video-translate for Video Translator in the model field of POST /jobs/createTask.
Can I choose the voice or the spoken source language?
No. The schema has no voice, speaker or source_language field; HeyGen detects the language and models the dubbed voice on the speaker. If your product needs a voice-similarity control or ISO-style accent codes, veed/dubbing-pro exposes voice_clone_strength, and popnow/video-translator-v1 accepts a glossary of fixed terms.
How should my app handle permission from the people on screen?
Ask the uploader to confirm that everyone who will appear to speak the new lines has agreed, and store that confirmation with the task record. The PopNow website shows a similar notice before the first run on this model.
Why does the dubbed file have a different length from the upload?
Translated speech rarely takes exactly as long as the original, and the model retimes the clip around it. Treat the result as a new asset with its own duration, re-sync any music or captions you overlay, and remember the bill is based on the source seconds.
What are the limits of the HeyGen Video Translate API?
Largest upload: 90 MB; Longest input clip: 120 s. Requests outside these limits are rejected before anything is charged.
Can I try HeyGen Video Translate without writing code?
Run HeyGen Video Translate in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.
All HeyGen models
Video Translator costs less and takes videos up to 10 minutes, but it keeps the picture as filmed. Choose HeyGen when the lips need to match.
- HeyGen Avatar 6 APIA portrait speaks your recording at 1080p or 2K with gestures that follow the script, up to 10 minutesFrom $0.12 per second
- HeyGen Avatar 6 Turbo APIFaster Avatar 6 talking video at 1080p or 2K from a portrait and a voice, up to 10 minutesFrom $0.06 per second
- HeyGen Avatar IV APIA portrait speaks your recording for up to 10 minutes, with an optional new backgroundFrom $0.051 per second
- HeyGen Video 1.0 API5–15-second clips from text with sound, from a photo up to 2K, or from mixed referencesFrom $0.14 for a 5-second clip
- HeyGen Video Translate APIDub a video into 178 languages and dialects with matching lipsFrom $0.045 per second