Створити завдання Runway image-to-video
Використовуйте CometAPI для виклику Runway image_to_video і перетворення URL статичного зображення на raw video output із підтримкою X-Runway-Version для сумісності.
Перед викликом
- Надішліть обов’язковий заголовок
X-Runway-Version, наприклад2024-11-06 - Використовуйте
model: gen3a_turbo - Надайте стабільний HTTPS
promptImage - Почніть із
duration: 5і підтримуваного значення ratio для вибраної моделі/версії Runway
Duration і ratio
ratio, а не size. Інтерпретуйте значення ratio у форматі роздільної здатності як їхній еквівалент WxH: 1280:720 відповідає 1280x720, 720:1280 — 720x1280, а 1280:768 усе ще може рендеритися як 1280x720 залежно від вибраної моделі/версії.
Потік завдання
Надішліть запит image-to-video
Збережіть повернений id
id завдання для подальшого опитування.Опитуйте статус завдання
task_not_exist, зачекайте кілька секунд і повторіть спробу.Авторизації
Bearer token authentication. Use your CometAPI key.
Заголовки
Runway version header, for example 2024-11-06.
Тіло
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.
Відповідь
Task accepted.