POST /runway/pro/generate erstellt ein Runway GEN-4-Video aus Referenzbildern, mit Unterstützung für rohe Grafikübertragung und X-Runway-Version-Steuerung.
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 mit einem oder mehreren Referenzbildern nutzen möchten.
X-Runway-Version, zum Beispiel 2024-11-06model: gen4image und den Prompt an, der Bewegung oder Transformation beschreibtDie Reverse-Format-Aufgabe erstellen
Die Aufgabe abfragen
task_not_exist zurückgibt, warten Sie einige Sekunden und versuchen Sie es erneut.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
}