使用 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": "http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4",
"model": "gen4",
"prompt": "像素风格",
"options": {
"seconds": 5,
"structure_transformation": 0.5,
"flip": true
}
}
'{
"code": 123,
"msg": "<string>",
"data": {
"task_id": "<string>",
"state": "<string>",
"status": "<string>",
"prompt": "<string>",
"prompt_en": null,
"video_url": null,
"poster": null,
"last_frame": null,
"msg": null,
"create_time": "<string>",
"update_time": "<string>"
},
"exec_time": 123
}video URLmodel: gen4structure_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": "http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4",
"model": "gen4",
"prompt": "像素风格",
"options": {
"seconds": 5,
"structure_transformation": 0.5,
"flip": true
}
}
'{
"code": 123,
"msg": "<string>",
"data": {
"task_id": "<string>",
"state": "<string>",
"status": "<string>",
"prompt": "<string>",
"prompt_en": null,
"video_url": null,
"poster": null,
"last_frame": null,
"msg": null,
"create_time": "<string>",
"update_time": "<string>"
},
"exec_time": 123
}