POST /runway/pro/generate generuje GEN-4 text-to-video z Runway przez CometAPI, z obsługą X-Runway-Version dla wersjonowanych wyników.
curl --request POST \
--url https://api.cometapi.com/runway/pro/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"callback_url": "https://example.com/webhook",
"ratio": "16:9",
"prompt": "a cat",
"style": "cinematic",
"model": "gen4",
"options": {
"seconds": 10,
"motion_vector": {
"x": 0,
"y": 0.3999999999999999,
"z": 0,
"r": -6,
"bg_x_pan": 0,
"bg_y_pan": 0
}
}
}
'{
"code": 200,
"message": "",
"msg": "success",
"data": {
"task_id": "196642a0-05e1-441a-981e-eb0c1f5d983b"
}
}Użyj tego endpointu, aby uruchomić zadanie GEN-4 text-to-video w formacie zgodności Runway.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
callback_url jest wymaganeprompt, ratio, style oraz model definiują żądanie generowaniaoptions.seconds oraz options.motion_vector są wymaganeX-Runway-Version: 2024-11-06gen4_turbocode: 200, msg: success oraz data.task_idOdpytuj trasę feed w formacie zgodności
Bearer token authentication. Use your CometAPI key.
Optional Runway API 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. 16:9, 9:16, 1:1.
Text prompt describing the video content to generate.
Artistic style for the generated video, e.g. cinematic.
Model version to use, e.g. gen4.
Advanced generation options including duration and camera motion.
Show child attributes
curl --request POST \
--url https://api.cometapi.com/runway/pro/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"callback_url": "https://example.com/webhook",
"ratio": "16:9",
"prompt": "a cat",
"style": "cinematic",
"model": "gen4",
"options": {
"seconds": 10,
"motion_vector": {
"x": 0,
"y": 0.3999999999999999,
"z": 0,
"r": -6,
"bg_x_pan": 0,
"bg_y_pan": 0
}
}
}
'{
"code": 200,
"message": "",
"msg": "success",
"data": {
"task_id": "196642a0-05e1-441a-981e-eb0c1f5d983b"
}
}