メインコンテンツへスキップ
POST
/
runwayml
/
v1
/
video_to_video
Generate a video from a video
curl --request POST \
  --url https://api.cometapi.com/runwayml/v1/video_to_video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Runway-Version: <x-runway-version>' \
  --data '
{
  "videoUri": "https://filesystem.site/cdn/20250818/c4gCDVPhiBc6TomRTJ7zNg0KwO1PSJ.mp4",
  "promptText": "string",
  "seed": 4294967295,
  "model": "gen4_aleph",
  "references": [
    {
      "type": "image",
      "uri": "https://cdn.britannica.com/70/234870-050-D4D024BB/Orange-colored-cat-yawns-displaying-teeth.jpg"
    }
  ],
  "ratio": "1280:720",
  "contentModeration": {
    "publicFigureThreshold": "auto"
  }
}
'
{}
このエンドポイントは、Runway の video-to-video ワークフローを使用して既存のソースクリップを変換するために使用します。最終出力をすぐに返すのではなく、非同期タスクを開始します。

呼び出す前に

  • プロバイダーの入力要件に合うソース動画を準備します
  • 必要な X-Runway-Version ヘッダーを含めて、使用したい機能セットを指定します
  • 完全な絵コンテではなく、変更内容を説明する短いプロンプトを 1 つ用意して始めます

タスクの流れ

1

ソースクリップとプロンプトを送信

このエンドポイントからタスクを開始し、返されたタスク id を保存します。
2

タスク詳細をポーリング

タスクが終了状態に到達するまで、Runway でタスク詳細を取得 を使用します。
3

変換結果を保存

通常のメディアパイプラインを通じて、完成したアセットをダウンロードまたは永続化します。

CometAPI ラッパーに関する注意

CometAPI は、Runway の非同期タスクモデルとバージョン管理されたリクエスト動作を維持しつつ、認証とベース URL の処理をプラットフォーム全体で統一しています。

承認

Authorization
string
header
必須

Bearer token authentication. Use your CometAPI key.

ヘッダー

X-Runway-Version
string
必須

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

ボディ

application/json
videoUri
string
デフォルト:https://filesystem.site/cdn/20250818/c4gCDVPhiBc6TomRTJ7zNg0KwO1PSJ.mp4
必須

HTTPS URL of the source video, or a base64 data URI containing the video.

promptText
string
デフォルト:A cat yawning in slow motion.
必須

Text prompt describing the desired output. Maximum 1000 characters.

seed
integer
デフォルト:1
必須

Random seed for reproducible results. Range: 0–4294967295.

model
string
デフォルト:gen4_aleph
必須

Model variant to use.

references
object[]
必須

Optional reference images to guide generation. Each item must include type (e.g. image) and uri (HTTPS URL).

ratio
string
デフォルト:1280:720
必須

Aspect ratio of the output video, e.g. 1280:720.

contentModeration
object
必須

レスポンス

200 - application/json

success

The response is of type object.