API Reference
AI video translation — create render API
POST
video-translation-synthesis-api
ID 35
Create a video-translation render job for the dubbed intermediate.
POST
https://xiaoapis.com/api/video_translation/synthesis
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/synthesis
Content-Type: application/json
{
"key": "YOUR_API_KEY"
}
Request example
https://xiaoapis.com/api/video_translation/synthesis?key=你的密钥
Details
请求参数说明:
| 名称 | 必填 | 类型 | 示例值 | 说明 |
|---|---|---|---|---|
| url | 是 | string | https://example.com/video.mp4 | 视频URL |
| language | 否 | string | en | 目标语言 |
| subtitles | 是 | array | [{"start":0,"end":1830,"text":"Hello"}] | 字幕数据数组,每项包含start、end、text、speaker、voice |
Response example
{"code":200,"msg":"任务已提交","data":{"id":2,"task_id":"synthesis-task-456","status":1,"progress":0}}
FAQ
合成任务做什么?
基于翻译结果生成配音等合成产物,为导出做准备。
如何创建?
按文档提交视频与翻译相关参数。
如何查询?
使用查询合成任务接口。
和导出任务区别?
合成偏中间音频/轨道;导出产出最终成片。
失败排查?
确认预览/字幕数据完整且音色有效。
Related APIs
- AI video translation — query render API
- AI video translation — create preview API
- AI video translation — create export API
Full console doc (with the debugger):/doc/35