Przejdź do głównej treści
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.

Użyj tego endpointu, aby przekształcić istniejący klip źródłowy za pomocą workflow video-to-video w Runway. Uruchamia on zadanie asynchroniczne zamiast od razu zwracać końcowy wynik.

Zanim go wywołasz

  • Przygotuj wideo źródłowe, które spełnia wymagania wejściowe dostawcy
  • Dołącz wymagany nagłówek X-Runway-Version dla zestawu funkcji, którego chcesz użyć
  • Zacznij od jednego krótkiego promptu opisującego zmianę, a nie od pełnego storyboardu

Przepływ zadania

1

Prześlij klip źródłowy i prompt

Uruchom zadanie z tego endpointu i zapisz zwrócone id zadania.
2

Sprawdzaj szczegóły zadania

Używaj Runway do pobierania szczegółów zadania, aż zadanie osiągnie stan końcowy.
3

Zapisz przekształcony wynik

Pobierz lub zachowaj gotowy asset w swoim standardowym pipeline mediów.

Autoryzacje

Authorization
string
header
wymagane

Bearer token authentication. Use your CometAPI key.

Nagłówki

X-Runway-Version
string
wymagane

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

Treść

application/json
videoUri
string
domyślnie:https://filesystem.site/cdn/20250818/c4gCDVPhiBc6TomRTJ7zNg0KwO1PSJ.mp4
wymagane

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

promptText
string
domyślnie:A cat yawning in slow motion.
wymagane

Text prompt describing the desired output. Maximum 1000 characters.

seed
integer
domyślnie:1
wymagane

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

model
string
domyślnie:gen4_aleph
wymagane

Model variant to use.

references
object[]
wymagane

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

ratio
string
domyślnie:1280:720
wymagane

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

contentModeration
object
wymagane

Odpowiedź

200 - application/json

success

id
string
wymagane

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