Membuat task video-to-video Runway
Gunakan CometAPI Runway POST /runwayml/v1/video_to_video untuk memulai task pembuatan video-to-video, menetapkan X-Runway-Version, dan mentransformasikan klip sumber.
Sebelum Anda memanggilnya
- Siapkan video sumber yang sesuai dengan persyaratan input penyedia
- Sertakan header
X-Runway-Versionyang diperlukan untuk set fitur yang Anda inginkan - Mulailah dengan satu prompt singkat yang menjelaskan perubahan, bukan storyboard lengkap
Rasio output
ratio yang dipisahkan dengan titik dua. Gunakan 1280:720 untuk output 1280x720 dan 720:1280 untuk 720x1280; 1280x720 tidak diterima di setiap rute video-to-video Runway.
Alur task
Kirim klip sumber dan prompt
Polling detail task
Simpan hasil transformasi
Otorisasi
Bearer token authentication. Use your CometAPI key.
Header
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.