Utwórz zadanie Runway image-to-video
Użyj CometAPI, aby wywołać Runway image_to_video i przekształcić adres URL statycznego obrazu w surowy wynik wideo, z obsługą X-Runway-Version dla zgodności.
Zanim go wywołasz
- Wyślij wymagany nagłówek
X-Runway-Version, na przykład2024-11-06 - Użyj
model: gen3a_turbo - Podaj stabilny adres HTTPS
promptImage - Zacznij od
duration: 5i obsługiwanej wartości ratio dla wybranego modelu/wersji Runway
Duration i ratio
ratio, a nie size. Odczytuj wartości ratio w stylu rozdzielczości jako ich odpowiednik WxH: 1280:720 odpowiada 1280x720, 720:1280 odpowiada 720x1280, a 1280:768 nadal może zostać wyrenderowane jako 1280x720 w zależności od wybranego modelu/wersji.
Przepływ zadania
Wyślij żądanie image-to-video
Zapisz zwrócone id
id zadania do późniejszego odpytywania.Sprawdzaj status zadania
task_not_exist, odczekaj kilka sekund i spróbuj ponownie.Autoryzacje
Bearer token authentication. Use your CometAPI key.
Nagłówki
Runway version header, for example 2024-11-06.
Treść
Source image URL.
Runway image-to-video model ID. Choose an available model from the Models page.
Random seed for reproducible results. Range: 0–999999999.
Text prompt describing the desired motion or scene. Maximum 512 characters.
Whether to add a watermark to the output video.
Video duration in seconds. Runway support is model/version dependent; use 5 or 10 for the broadest compatibility. CometAPI forwards this value to Runway.
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.
Odpowiedź
Task accepted.