POST /runway/pro/generate は、参照画像から Runway GEN-4 動画を作成し、raw graphic transfer と 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 ルートを利用したい場合は、このエンドポイントを使用します。
X-Runway-Version ヘッダーを送信します。例: 2024-11-06model: gen4 を使用しますimage と、動きや変化を説明するプロンプト(Prompt)を指定しますタスクをポーリング
task_not_exist が返された場合は、数秒待ってから再試行してください。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.
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
}