使用 Runway 兼容格式 POST /runway/pro/act_one 将源视频中的表情和动作迁移到目标图片上。
curl --request POST \
--url https://api.deerapi.com/runway/pro/act_one \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video": "http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4",
"image": "https://db.xiaohuhd.com/1.jpeg",
"callback_url": "https://your-server.com/callback"
}
'{
"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,
"point": "<string>",
"refund": "<string>",
"create_time": "<string>",
"update_time": "<string>"
},
"exec_time": 123
}video 和目标 image轮询任务状态
Bearer token authentication. Use your DeerAPI key.
curl --request POST \
--url https://api.deerapi.com/runway/pro/act_one \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video": "http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4",
"image": "https://db.xiaohuhd.com/1.jpeg",
"callback_url": "https://your-server.com/callback"
}
'{
"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,
"point": "<string>",
"refund": "<string>",
"create_time": "<string>",
"update_time": "<string>"
},
"exec_time": 123
}