Skip to content
Platform / Docs / AI video translation — create export API

API Reference

AI video translation — create export API

POST video-translation-export-api ID 37

Create a video-translation export and receive the finished video.

POST https://xiaoapis.com/api/video_translation/generate

Overview

  • 导出成片
  • 异步任务

Use cases

  • 出海译制
  • 多语言短视频
Conventions
  • Gateway · https://xiaoapis.com
  • Auth · send key (query or JSON body, as this API specifies)
  • Response · JSON. Check the business code and the HTTP status, not only HTTP 200

Authentication

Send the platform API key (query parameter key or JSON field key, as this page specifies). Create one in API key management.

POST https://xiaoapis.com/api/video_translation/generate
Content-Type: application/json

{
  "key": "YOUR_API_KEY"
}

Request example

https://xiaoapis.com/api/video_translation/generate?key=你的密钥

Details

请求参数说明:

名称必填类型示例值说明
video_url是stringhttps://example.com/video.mp4原始视频URL
audio_url是stringhttps://example.com/audio.mp3翻译后的音频URL
preview_task_id否stringabc123-def456关联的预览任务ID
subtitles否array[{"start":0,"end":1830,"text":"你好"}]字幕列表
subtitle_style否object{"font_size":20,"font_color":"(255,255,255,1)"}字幕样式配置:alignment(对齐)、font_size(字体大小)、font_color(字体颜色)等

Response example

{"code":200,"msg":"任务已提交","data":{"id":3,"task_id":"generate-task-789","status":1,"progress":0}}

FAQ

导出任务是什么?

将翻译与配音合成结果导出为最终视频文件。

完整链路?

常见为:选音色 → 预览 → 合成 → 导出(可按文档裁剪步骤)。

如何取成片?

查询导出任务,读取视频 URL。

适合出海吗?

适合多语言短视频译制与本地化分发。

版权?

仅处理你有权翻译与分发的视频内容。

Full console doc (with the debugger):/doc/37