Skip to main content
POST
cURL
このエンドポイントを使用して、Runway の画像生成タスクを作成します。

使用上の注意

  • 必須の X-Runway-Version ヘッダーを送信してください(例: 2024-11-06
  • model: gen4_image を使用します
  • このルートでは少なくとも 1 つの referenceImages 項目が必要です。テキストのみのリクエストは reference_images_empty を返します

タスクの流れ

1

生成リクエストを送信

promptTextratiomodel、および少なくとも 1 つの referenceImages オブジェクトを送信します。
2

返された id を保存

このルートは非同期であるため、返された id を保持してください。
3

タスクをポーリング

Runway タスクを取得する を使用します。即時のポーリングで 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
promptText
string
デフォルト:A paper boat floating on calm water at sunrise.
必須

A non-empty string up to 1000 characters.

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

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

seed
integer
デフォルト:1
必須

Random seed for reproducible results.

model
string
デフォルト:gen4_image
必須

The model variant to use.

referenceImages
object[]
必須

An array of up to three images to be used as references. At least one item is required. referenceImages is required.

contentModeration
object
必須

レスポンス

200 - application/json

Task accepted.

id
string
必須