Maak een Runway video-to-video-taak aan
Gebruik CometAPI Runway POST /runwayml/v1/video_to_video om video-to-video-generatietaken te starten, X-Runway-Version in te stellen en bronclips te transformeren.
Voordat je het aanroept
- Bereid een bronvideo voor die voldoet aan de invoervereisten van de provider
- Voeg de vereiste
X-Runway-Version-header toe voor de functieset die je wilt - Begin met één korte prompt die de wijziging beschrijft, niet een volledig storyboard
Uitvoer-verhouding
ratio-waarden. Gebruik 1280:720 voor 1280x720-output en 720:1280 voor 720x1280; 1280x720 wordt niet geaccepteerd op elke Runway video-to-video-route.
Taakverloop
Dien de bronclip en prompt in
Poll taakdetails
Sla het getransformeerde resultaat op
Autorisaties
Bearer token authentication. Use your CometAPI key.
Headers
Runway API version header, for example 2024-11-06.
Body
HTTPS URL of the source video, or a base64 data URI containing the video.
Text prompt describing the desired output. Maximum 1000 characters.
Random seed for reproducible results. Range: 0–4294967295.
Model variant to use.
Optional reference images to guide generation. Each item must include type (e.g. image) and uri (HTTPS URL).
Requested output frame shape. Use colon-separated values such as 1280:720 or 720:1280; read them as 1280x720 and 720x1280 targets. Do not assume every Runway video-to-video route accepts 1280x720 with an x separator.
Respons
success
The ID of the task that was created. Use this to retrieve the task later.