使用 Runway 兼容格式 POST /runway/pro/video2video 对已有视频进行风格重绘,支持 structure_transformation 参数控制重绘强度。
curl --request POST \
--url https://api.deerapi.com/runway/pro/video2video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"callback_url": "https://your-server.com/callback",
"video": "https://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4",
"model": "gen4",
"prompt": "像素风格",
"options": {
"seconds": 5,
"structure_transformation": 0.5,
"flip": true
}
}
'{
"code": 200,
"msg": "成功",
"data": {
"task_id": "221c136d-7888-43c3-acd3-1fcc90d51cfd",
"state": "",
"status": "0",
"prompt": "",
"prompt_en": null,
"video_url": null,
"raw_video_url": null,
"poster": null,
"last_frame": null,
"msg": null,
"create_time": "0",
"update_time": "0"
},
"exec_time": 0
}通过此端点对已有视频进行风格转换和重绘。Documentation Index
Fetch the complete documentation index at: https://apidoc.deerapi.com/llms.txt
Use this file to discover all available pages before exploring further.
video URLmodel: gen4options.seconds 中设置输出视频时长structure_transformation 值(如 0.3–0.5)测试效果,再逐步加强callback_url 为必填项轮询任务状态
Bearer token authentication. Use your DeerAPI key.
curl --request POST \
--url https://api.deerapi.com/runway/pro/video2video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"callback_url": "https://your-server.com/callback",
"video": "https://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4",
"model": "gen4",
"prompt": "像素风格",
"options": {
"seconds": 5,
"structure_transformation": 0.5,
"flip": true
}
}
'{
"code": 200,
"msg": "成功",
"data": {
"task_id": "221c136d-7888-43c3-acd3-1fcc90d51cfd",
"state": "",
"status": "0",
"prompt": "",
"prompt_en": null,
"video_url": null,
"raw_video_url": null,
"poster": null,
"last_frame": null,
"msg": null,
"create_time": "0",
"update_time": "0"
},
"exec_time": 0
}