メインコンテンツへスキップ
POST
/
runway
/
pro
/
act_one
Act-one Expression Migration
curl --request POST \
  --url https://api.cometapi.com/runway/pro/act_one \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "video": "http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4",
  "image": "https://db.xiaohuhd.com/1.jpeg",
  "callback_url": "http://baidu.com"
}
'
{
  "code": 123,
  "msg": "<string>",
  "data": {
    "task_id": "<string>"
  },
  "exec_time": 123
}
このエンドポイントは、Runway のリバースフォーマットラッパーを通じて、ソース動画の表情や演技を別の画像に転送するために使用します。

現在の制約

  • このルートは現在、16:9 のソースアセットのみをサポートしています
  • ソース video とターゲット image の両方が必要です
  • ワークフローをさらに調整する前に、まずは短く安定したソースクリップから始めてください

タスクの流れ

1

act-one タスクを作成

ソース動画、ターゲット画像、コールバックまたは追跡設定を送信し、返されたタスク id を保存します。
2

タスクをポーリング

ラッパーが終了状態に到達するまで、Feed Get Task を使って確認を続けます。
3

結果を永続化

長期的にアクセスできるようにする必要がある場合は、最終出力を独自のメディアパイプラインに保存します。

承認

Authorization
string
header
必須

Bearer token authentication. Use your CometAPI key.

ヘッダー

X-Runway-Version
string

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

ボディ

application/json
video
string
デフォルト:http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4
必須

URL of the source video containing the performance to transfer.

image
string
デフォルト:https://db.xiaohuhd.com/1.jpeg
必須

URL of the target image whose character will receive the expression.

callback_url
string
デフォルト:https://example.com/webhook
必須

Webhook URL that receives a POST request with the result when the task completes.

レスポンス

200 - application/json

OK

code
integer
必須

HTTP status code

msg
string
必須

Text description of the request result

data
object
必須

Object containing specific response data.

exec_time
number
必須

Time spent by the server processing this request