POST /runway/pro/generate tạo video Runway GEN-4 từ hình ảnh tham chiếu, có hỗ trợ raw graphic transfer và điều khiển X-Runway-Version.
curl --request POST \
--url https://api.cometapi.com/runway/pro/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"callback_url": "http://baidu.com",
"image": "https://db.xiaohuhd.com/1.jpeg",
"model": "gen4",
"prompt": "Smile, Eat Burger"
}
'{
"code": 123,
"msg": "<string>",
"data": {
"task_id": "<string>"
},
"exec_time": 123
}generate định dạng đảo ngược của Runway với một hoặc nhiều hình ảnh tham chiếu.
X-Runway-Version bắt buộc, ví dụ 2024-11-06model: gen4image nguồn và prompt mô tả chuyển động hoặc biến đổiTạo tác vụ định dạng đảo ngược
Poll tác vụ
task_not_exist, hãy đợi vài giây rồi thử lại.Bearer token authentication. Use your CometAPI key.
Optional Runway version header, for example 2024-11-06.
Webhook URL that receives a POST request with the result when the task completes.
Aspect ratio of the generated video, e.g. 1280:720.
Text prompt describing the desired video content or motion.
Model version to use, e.g. gen4.
URL of the source image to animate.
Artistic style for the generated video, e.g. cinematic.
Advanced generation options.
Show child attributes
URL of the end-frame image. When provided, the video transitions toward this frame.
OK
curl --request POST \
--url https://api.cometapi.com/runway/pro/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"callback_url": "http://baidu.com",
"image": "https://db.xiaohuhd.com/1.jpeg",
"model": "gen4",
"prompt": "Smile, Eat Burger"
}
'{
"code": 123,
"msg": "<string>",
"data": {
"task_id": "<string>"
},
"exec_time": 123
}