Gebruik CometAPI’s Runway Video to Video Style Redraw-endpoint om video’s opnieuw te stylen via POST /runway/pro/video2video met ondersteuning voor X-Runway-Version.
curl --request POST \
--url https://api.cometapi.com/runway/pro/video2video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"callback_url": "https://example.com/webhook",
"video": "https://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4",
"model": "gen4",
"prompt": "pixelated style",
"options": {
"structure_transformation": 0.5,
"flip": true,
"seconds": 5
}
}
'{
"code": 200,
"message": "",
"msg": "success",
"data": {
"task_id": "196642a0-05e1-441a-981e-eb0c1f5d983b"
}
}Gebruik dit endpoint om een bestaande video opnieuw te stylen.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.
X-Runway-Version-header, bijvoorbeeld 2024-11-06video-URL opmodel: gen4options.seconds op met de duur van de outputstructure_transformation voordat je de style transfer sterker toepastDien de restyle-taak in
Poll taakstatus
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.
URL of the source video to restyle.
Model version to use, e.g. gen4.
Text prompt describing the target style for the redraw.
Additional processing options.
Show child attributes
curl --request POST \
--url https://api.cometapi.com/runway/pro/video2video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"callback_url": "https://example.com/webhook",
"video": "https://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4",
"model": "gen4",
"prompt": "pixelated style",
"options": {
"structure_transformation": 0.5,
"flip": true,
"seconds": 5
}
}
'{
"code": 200,
"message": "",
"msg": "success",
"data": {
"task_id": "196642a0-05e1-441a-981e-eb0c1f5d983b"
}
}