SuperAPI AI Directory

chanjing-video-translation

Writing & research

View repository

Updated 10-15 20:11

About this skill

Chanjing Video Translation

When to Use This Skill

Used to translate an uploaded video or an existing video task into one or more target languages. First use list_target_languages.py to confirm the language code, then create the task.

Preconditions

Configure credentials.json, if missing run chanjing-credentials-guardfirst. For source material, use an existing video_id or file_id; files are not uploaded within this Skill.

Covered APIs

  • GET /open/v1/video_translation/target_languages
  • POST /open/v1/video_translation/create

Scripts

# 查询可用目标语言
python3 skills/chanjing-video-translation/scripts/list_target_languages.py

# 按已有文件创建翻译任务
python3 skills/chanjing-video-translation/scripts/create_task.py \
  --file-id <file_id> --target-language en --target-language ja

# 透传完整请求体,适合音色、字幕和唇形参数
python3 skills/chanjing-video-translation/scripts/create_task.py \
  --body-file ./video-translation.json

--body-file and --body-json can pass the complete OpenAPI request body. Commonly used fields include source.video_id、source.file_id、target_languages、audio_id、need_lip_sync、need_dynamic_duration and need_subtitle。

Boundary

This capability currently only synchronizes the creation and language query interfaces already exposed by the OpenAPI; task details or polling interfaces are not within the current capability scope of api-mcp.