Skip to main content
POST
cURL
Gunakan endpoint ini untuk menganimasikan satu gambar sumber menjadi video Runway.

Sebelum Anda memanggilnya

  • Kirim header X-Runway-Version yang wajib, misalnya 2024-11-06
  • Gunakan model: gen3a_turbo
  • Sediakan promptImage HTTPS yang stabil
  • Mulai dengan duration: 5 dan nilai ratio yang didukung untuk model/versi Runway yang dipilih

Duration dan ratio

Permintaan format resmi Runway menggunakan ratio, bukan size. Baca nilai ratio bergaya resolusi sebagai ekuivalen WxH-nya: 1280:720 menargetkan 1280x720, 720:1280 menargetkan 720x1280, dan 1280:768 tetap dapat dirender sebagai 1280x720 tergantung pada model/versi yang dipilih.

Alur task

1

Kirim permintaan image-to-video

Buat task dengan gambar sumber dan Prompt gerakan singkat opsional.
2

Simpan id yang dikembalikan

Simpan task id untuk polling nanti.
3

Poll status task

Gunakan Dapatkan task Runway. Jika poll pertama mengembalikan task_not_exist, tunggu beberapa detik lalu coba lagi.

Otorisasi

Authorization
string
header
wajib

Bearer token authentication. Use your CometAPI key.

Header

X-Runway-Version
string
wajib

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

Body

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

Source image URL.

model
string
default:gen3a_turbo
wajib

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

Whether to add a watermark to the output video.

duration
integer
default: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
default: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
wajib