Skip to main content
POST
cURL
Используйте этот endpoint, чтобы анимировать одно исходное изображение в видео Runway.

Перед вызовом

  • Отправьте обязательный заголовок X-Runway-Version, например 2024-11-06
  • Используйте model: gen3a_turbo
  • Укажите стабильный HTTPS promptImage
  • Начните с duration: 5 и поддерживаемого значения ratio для выбранной модели/версии Runway

Duration и ratio

Запросы Runway в official-format используют ratio, а не size. Читайте значения ratio в стиле разрешения как эквивалент WxH: 1280:720 соответствует 1280x720, 720:1280720x1280, а 1280:768 все равно может рендериться как 1280x720 в зависимости от выбранной модели/версии.

Поток задачи

1

Отправьте запрос image-to-video

Создайте задачу с исходным изображением и необязательным коротким Prompt для движения.
2

Сохраните возвращенный id

Сохраните id задачи для последующего polling.
3

Опрашивайте статус задачи

Используйте Get a Runway task. Если первый опрос возвращает task_not_exist, подождите несколько секунд и повторите попытку.

Авторизации

Authorization
string
header
обязательно

Bearer token authentication. Use your CometAPI key.

Заголовки

X-Runway-Version
string
обязательно

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

Тело

application/json
promptImage
string
по умолчанию:https://cdn.britannica.com/70/234870-050-D4D024BB/Orange-colored-cat-yawns-displaying-teeth.jpg
обязательно

Source image URL.

model
string
по умолчанию:gen3a_turbo
обязательно

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
по умолчанию:false

Whether to add a watermark to the output video.

duration
integer
по умолчанию: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
по умолчанию: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.

Ответ

200 - application/json

Task accepted.

id
string
обязательно