Skip to main content
POST
cURL
Usa questo endpoint per animare un’immagine sorgente in un video Runway.

Prima di chiamarlo

  • Invia l’header X-Runway-Version richiesto, ad esempio 2024-11-06
  • Usa model: gen3a_turbo
  • Fornisci un promptImage HTTPS stabile
  • Inizia con duration: 5 e un valore ratio supportato per il model/version di Runway selezionato

Duration e ratio

Le richieste in formato ufficiale di Runway usano ratio, non size. Interpreta i valori ratio in stile risoluzione come il loro equivalente WxH: 1280:720 corrisponde a 1280x720, 720:1280 corrisponde a 720x1280 e 1280:768 può comunque essere renderizzato come 1280x720 a seconda del model/version selezionato.

Flusso del task

1

Invia la richiesta image-to-video

Crea il task con un’immagine sorgente e un breve Prompt di movimento facoltativo.
2

Memorizza l'id restituito

Salva l’id del task per il polling successivo.
3

Esegui il polling dello stato del task

Usa Ottieni un task Runway. Se il primo polling restituisce task_not_exist, attendi qualche secondo e riprova.

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer token authentication. Use your CometAPI key.

Intestazioni

X-Runway-Version
string
obbligatorio

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

Corpo

application/json
promptImage
string
predefinito:https://cdn.britannica.com/70/234870-050-D4D024BB/Orange-colored-cat-yawns-displaying-teeth.jpg
obbligatorio

Source image URL.

model
string
predefinito:gen3a_turbo
obbligatorio

Runway image-to-video model ID. Choose an available model from the Models page.

seed
integer

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

promptText
string

Text prompt describing the desired motion or scene. Maximum 512 characters.

watermark
boolean
predefinito:false

Whether to add a watermark to the output video.

duration
integer
predefinito:5

Video duration in seconds. Runway support is model/version dependent; use 5 or 10 for the broadest compatibility. CometAPI forwards this value to Runway.

ratio
string
predefinito:1280:768

Requested output ratio. Accepted values are Runway model/version dependent. With X-Runway-Version 2024-11-06, use a resolution-style value accepted by the selected model, such as 1280:768, 768:1280, 1280:720, or 720:1280. Read these as WxH targets, but completed media may normalize, so inspect the returned file before relying on exact pixels.

Risposta

200 - application/json

Task accepted.

id
string
obbligatorio