remix 编辑视频
OpenAPI Specification
视频二次编辑(remix):以任务 ID 指定源视频,按新提示词等参数重新生成。
请求方式:POST
接口地址
text
https://api.allyang.cn/v1/videos/{task_id}/remix
请求头
Authorization(可选):鉴权头,使用控制台创建的令牌,格式为 Bearer + 令牌。(示例:Bearer {{YOUR_API_KEY}})
路径参数
task_id(string,必填)
请求参数(application/json)
prompt(string,必填)
请求示例
json
{
"prompt": "Extend the scene with the cat taking a bow to the cheering audience"
}
返回示例
json
{
"id": "video_456",
"object": "video",
"model": "sora-2",
"status": "queued",
"progress": 0,
"created_at": 1712698600,
"size": "720x1280",
"seconds": "8",
"remixed_from_video_id": "video_123"
}
使用提示:私密(不发布)的视频不可 remix;源任务需处于已完成状态。