API Reference
Multi-video merge API
POST
video-splice-api
ID 22
Merge several video clips into one file.
POST
https://xiaoapis.com/api/video/splicing
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/splicing
Content-Type: application/json
{
"key": "YOUR_API_KEY"
}
Request example
https://xiaoapis.com/api/video/splicing?key=你的密钥
Details
请求HEADER:
| 名称 | 值 |
|---|---|
| Content-Type | application/json |
请求参数说明:
| 名称 | 必填 | 类型 | 示例值 | 说明 |
|---|---|---|---|---|
| key | 是 | string | 35kj5jnlj53453kl5j43nj5 | 接口密钥,在控制台->密钥管理查看 |
video_urls | 是 | array | ['x1.mp4','xxx.mp4'] | 视频数组 |
返回参数说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 状态信息 |
| data | string | 请求结果数据集 |
| - url | string | 视频地址 |
| exec_time | float | 执行耗时 |
| user_ip | string | 客户端IP |
FAQ
如何多视频合成?
按文档提交多个视频地址与合成参数,创建任务后取成片。
顺序如何控制?
按请求数组顺序或文档指定字段控制。
和智能剪辑区别?
本接口侧重拼接合成;智能剪辑提供模板化包装与口播能力。
格式要求?
各片段需公网可访问,格式限制见文档。
失败排查?
检查任一片段是否不可达或编码不兼容。
Related APIs
Full console doc (with the debugger):/doc/22