v1

latestOpenAPI 3.0.32026-07-26214565.6 KB
Video Translation

Create Video Translation

Translate videos into multiple languages with AI voices and lip-sync

post/api/open/v3/content/video/createbytranslate

Request body

urlstring required

The video URL address you want to translate

source_languagestring

The original language of the video. Use "DEFAULT" for automatic language detection, or specify a language code (e.g., "en" for English, "zh" for Chinese, "es" for Spanish)

languagestring required

Target language(s) for translation. For multiple languages, separate with commas (e.g., "ja,zh-CN-shandong,zh-CN-sichuan")

lipsyncboolean

Enable synchronized mouth movements with the audio track in translated video

webhookUrlstring

Callback URL address for HTTP notifications when processing completes

speaker_numinteger

Number of speakers in the video (0 = Auto Detect)

remove_bgmboolean

Whether to remove background music from the video

caption_type0 | 1 | 2 | 3 | 4

Caption handling: 0=none, 1=add original subtitle, 2=add target subtitle, 3=translate and replace original subtitle, 4=add translated subtitle

caption_urlstring

Subtitle file URL (supports SRT or ASS files)

dynamic_durationboolean

Control the dynamic duration of the video

Response

Video translation request submitted successfully

codeinteger required

Interface returns business status code (1000: success)

msgstring required

Interface returns status information

Example response

{
  "code": 1000,
  "msg": "OK"
}