Skip to main content
POST
cURL
Gebruik dit endpoint om één bronafbeelding te animeren naar een Runway-video.

Voordat je het aanroept

  • Stuur de vereiste X-Runway-Version-header mee, bijvoorbeeld 2024-11-06
  • Gebruik model: gen3a_turbo
  • Geef een stabiele HTTPS-promptImage op
  • Begin met duration: 5 en een ondersteunde ratio-waarde voor het geselecteerde Runway-model/de geselecteerde versie

Duration en ratio

Verzoeken in het officiële Runway-formaat gebruiken ratio, niet size. Lees resolutie-achtige ratio-waarden als hun WxH-equivalent: 1280:720 richt zich op 1280x720, 720:1280 richt zich op 720x1280, en 1280:768 kan nog steeds renderen als 1280x720, afhankelijk van het geselecteerde model/de geselecteerde versie.

Taakstroom

1

Dien het image-to-video-verzoek in

Maak de taak aan met een bronafbeelding en een optionele korte bewegingsprompt.
2

Sla de geretourneerde id op

Bewaar de taak-id om later te pollen.
3

Poll taakstatus

Gebruik Een Runway-taak ophalen. Als de eerste poll task_not_exist retourneert, wacht dan een paar seconden en probeer het opnieuw.

Autorisaties

Authorization
string
header
vereist

Bearer token authentication. Use your CometAPI key.

Headers

X-Runway-Version
string
vereist

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

Body

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

Source image URL.

model
string
standaard:gen3a_turbo
vereist

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
standaard:false

Whether to add a watermark to the output video.

duration
integer
standaard: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
standaard: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.

Respons

200 - application/json

Task accepted.

id
string
vereist