Appearance
视频编辑
提交视频编辑任务
接口:POST /v1/video/edits
请求使用 multipart/form-data 格式上传视频文件。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | ✅ | 视频模型名称 |
prompt | string | ✅ | 编辑说明,描述需要对视频做的修改 |
video | file | ✅ | 待编辑的原始视频文件 |
查询视频编辑任务
接口:GET /v1/videos/{id} 或 GET /v1/video/edits/{id}
返回:
json
{
"task_id": "abcd1234efgh",
"status": "succeeded",
"url": "https://..."
}请求示例
bash
curl https://tokennet.top/v1/video/edits \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-F "model=kling-video" \
-F "prompt=将视频风格转换为动漫风格" \
-F "video=@clip.mp4"