Runway の video-to-video タスクを作成する
CometAPI Runway の POST /runwayml/v1/video_to_video を使用して video-to-video 生成タスクを開始し、X-Runway-Version を設定して、ソースクリップを変換します。
呼び出す前に
- プロバイダーの入力要件に一致するソース動画を準備します
- 必要な
X-Runway-Versionヘッダーを含めて、必要な機能セットを指定します - 完全な絵コンテではなく、変更内容を説明する短いプロンプト(Prompt)1つから始めます
出力比率
ratio 値を想定しています。1280x720 出力には 1280:720、720x1280 には 720:1280 を使用してください。1280x720 はすべての Runway video-to-video ルートで受け入れられるわけではありません。
タスクフロー
ソースクリップとプロンプトを送信
タスク詳細をポーリング
変換結果を保存
承認
Bearer token authentication. Use your CometAPI key.
ヘッダー
Runway API version header, for example 2024-11-06.
ボディ
HTTPS URL of the source video, or a base64 data URI containing the video.
Text prompt describing the desired output. Maximum 1000 characters.
Random seed for reproducible results. Range: 0–4294967295.
Model variant to use.
Optional reference images to guide generation. Each item must include type (e.g. image) and uri (HTTPS URL).
Requested output frame shape. Use colon-separated values such as 1280:720 or 720:1280; read them as 1280x720 and 720x1280 targets. Do not assume every Runway video-to-video route accepts 1280x720 with an x separator.
レスポンス
success
The ID of the task that was created. Use this to retrieve the task later.