Используйте POST /runway/pro/act_one, чтобы переносить выражения Act-one в видео/изображениях Runway через reverse-format wrapper CometAPI с поддержкой X-Runway-Version (только 16:9).
curl --request POST \
--url https://api.cometapi.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": "http://baidu.com"
}
'{
"code": 123,
"msg": "<string>",
"data": {
"task_id": "<string>"
},
"exec_time": 123
}video, и целевое imageСоздайте задачу act-one
Опрашивайте задачу
Bearer token authentication. Use your CometAPI key.
Optional Runway version header, for example 2024-11-06.
URL of the source video containing the performance to transfer.
URL of the target image whose character will receive the expression.
Webhook URL that receives a POST request with the result when the task completes.
curl --request POST \
--url https://api.cometapi.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": "http://baidu.com"
}
'{
"code": 123,
"msg": "<string>",
"data": {
"task_id": "<string>"
},
"exec_time": 123
}