Vai al contenuto principale
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.

Usa questo endpoint per trasformare una clip di origine esistente con il workflow video-to-video di Runway. Avvia un’attività asincrona invece di restituire immediatamente l’output finale.

Prima di chiamarlo

  • Prepara un video di origine che soddisfi i requisiti di input del provider
  • Includi l’header X-Runway-Version richiesto per il set di funzionalità che desideri
  • Inizia con un prompt breve che descriva la modifica, non uno storyboard completo

Flusso dell’attività

1

Invia la clip di origine e il prompt

Avvia l’attività da questo endpoint e salva l’id dell’attività restituito.
2

Controlla i dettagli dell'attività

Usa Runway to Get Task Details finché l’attività non raggiunge uno stato terminale.
3

Archivia il risultato trasformato

Scarica o conserva l’asset completato tramite la tua normale pipeline media.

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer token authentication. Use your CometAPI key.

Intestazioni

X-Runway-Version
string
obbligatorio

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

Corpo

application/json
videoUri
string
predefinito:https://filesystem.site/cdn/20250818/c4gCDVPhiBc6TomRTJ7zNg0KwO1PSJ.mp4
obbligatorio

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

promptText
string
predefinito:A cat yawning in slow motion.
obbligatorio

Text prompt describing the desired output. Maximum 1000 characters.

seed
integer
predefinito:1
obbligatorio

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

model
string
predefinito:gen4_aleph
obbligatorio

Model variant to use.

references
object[]
obbligatorio

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

ratio
string
predefinito:1280:720
obbligatorio

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

contentModeration
object
obbligatorio

Risposta

200 - application/json

success

id
string
obbligatorio

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