Langsung ke konten utama
POST
/
runwayml
/
v1
/
video_to_video
Generate a video from a video
curl --request POST \
  --url https://api.cometapi.com/runwayml/v1/video_to_video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Runway-Version: <x-runway-version>' \
  --data '
{
  "videoUri": "https://media.w3.org/2010/05/sintel/trailer.mp4",
  "promptText": "Make the motion feel cinematic.",
  "model": "gen4_aleph",
  "references": [
    {
      "type": "image",
      "uri": "https://res.cloudinary.com/demo/image/upload/dog.jpg"
    }
  ],
  "ratio": "1280:720"
}
'
{
  "id": "12a01a5e-ab55-4aa7-b002-7b873546cf76"
}

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.

Gunakan endpoint ini untuk mentransformasi klip sumber yang sudah ada dengan alur kerja video-to-video milik Runway. Endpoint ini memulai task async alih-alih langsung mengembalikan output akhir.

Sebelum Anda memanggilnya

  • Siapkan video sumber yang sesuai dengan persyaratan input penyedia
  • Sertakan header X-Runway-Version yang diperlukan untuk set fitur yang Anda inginkan
  • Mulailah dengan satu prompt singkat yang menjelaskan perubahan, bukan storyboard lengkap

Alur task

1

Kirim klip sumber dan prompt

Mulai task dari endpoint ini dan simpan task id yang dikembalikan.
2

Poll detail task

Gunakan Runway to Get Task Details sampai task mencapai status terminal.
3

Simpan hasil transformasi

Unduh atau simpan aset yang sudah selesai melalui pipeline media normal Anda.

Otorisasi

Authorization
string
header
wajib

Bearer token authentication. Use your CometAPI key.

Header

X-Runway-Version
string
wajib

Runway API version header, for example 2024-11-06.

Body

application/json
videoUri
string
default:https://filesystem.site/cdn/20250818/c4gCDVPhiBc6TomRTJ7zNg0KwO1PSJ.mp4
wajib

HTTPS URL of the source video, or a base64 data URI containing the video.

promptText
string
default:A cat yawning in slow motion.
wajib

Text prompt describing the desired output. Maximum 1000 characters.

seed
integer
default:1
wajib

Random seed for reproducible results. Range: 0–4294967295.

model
string
default:gen4_aleph
wajib

Model variant to use.

references
object[]
wajib

Optional reference images to guide generation. Each item must include type (e.g. image) and uri (HTTPS URL).

ratio
string
default:1280:720
wajib

Aspect ratio of the output video, e.g. 1280:720.

contentModeration
object
wajib

Respons

200 - application/json

success

id
string
wajib

The ID of the task that was created. Use this to retrieve the task later.