Skip to main content
POST
cURL
Bu endpoint’i, tek bir kaynak görseli bir Runway videosuna canlandırmak için kullanın.

Çağırmadan önce

  • Gerekli X-Runway-Version header’ını gönderin, örneğin 2024-11-06
  • model: gen3a_turbo kullanın
  • Kararlı bir HTTPS promptImage sağlayın
  • Seçilen Runway model/version için duration: 5 ve desteklenen bir ratio değeriyle başlayın

Duration ve ratio

Runway resmi format istekleri size değil, ratio kullanır. Çözünürlük tarzı ratio değerlerini WxH eşdeğeri olarak okuyun: 1280:720, 1280x720 hedefler; 720:1280, 720x1280 hedefler; ve 1280:768, seçilen model/version’a bağlı olarak yine de 1280x720 olarak render edilebilir.

Görev akışı

1

image-to-video isteğini gönderin

Kaynak görsel ve isteğe bağlı kısa bir hareket prompt’u ile görevi oluşturun.
2

Dönen id'yi saklayın

Daha sonra polling yapmak için görev id değerini kaydedin.
3

Görev durumunu polling ile kontrol edin

Bir Runway görevi alın kullanın. İlk poll task_not_exist döndürürse birkaç saniye bekleyin ve yeniden deneyin.

Yetkilendirmeler

Authorization
string
header
gerekli

Bearer token authentication. Use your CometAPI key.

Başlıklar

X-Runway-Version
string
gerekli

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

Gövde

application/json
promptImage
string
varsayılan:https://cdn.britannica.com/70/234870-050-D4D024BB/Orange-colored-cat-yawns-displaying-teeth.jpg
gerekli

Source image URL.

model
string
varsayılan:gen3a_turbo
gerekli

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
varsayılan:false

Whether to add a watermark to the output video.

duration
integer
varsayılan: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
varsayılan: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.

Yanıt

200 - application/json

Task accepted.

id
string
gerekli