跳轉到主要內容
POST
cURL
使用 act_two 將參考影片中的表演套用至角色圖片 或影片。請求會傳回任務 id,以便擷取完成的輸出。

準備資產

  • 使用您的 CometAPI API 金鑰進行驗證。
  • 將 model 設為 act_two。
  • 以 character.type 或 image 的形式提供 video,並將資產放在 character.uri。請確保可辨識的臉部保持可見且位於畫面內。
  • 以 reference.type 的形式提供 video,其中包含長度介於 3 到 30 秒的表演片段,格式為 reference.uri。
  • 請將範例媒體 URL 替換為可存取的 HTTPS URL。媒體欄位 也接受編碼大小最多 5 MB 的 Base64 資料 URI。

設定表演

僅 model、character 和 reference 為必填欄位。 bodyControl: false 會被視為省略,因此不會明確 停用身體控制。seed 或 expressionIntensity 為 0 時,也會 被視為省略。請省略選用欄位,而非傳送 null。 選用的 ratio 值為 1280:720, 720:1280, 960:960, 1104:832, 832:1104或 1584:672。

擷取結果

儲存傳回的 id,並使用 取得 Runway 任務 來擷取任務狀態。 當 status 為 SUCCEEDED 時,從 output 讀取結果 URL。如果任務 失敗,請在存在時檢查 failure 和 failureCode。

授權

Authorization
string
header
必填

Your CometAPI API key.

主體

application/json

Act-Two character-performance request.

model
enum<string>
必填

Model ID for this request.

可用選項:
act_two
character
object
必填

Character image or video to animate. Keep a recognizable face visible and inside the frame.

reference
object
必填

Reference video containing the performance to apply. The video must be 3 to 30 seconds long.

bodyControl
boolean

Set true to request body movements and gestures in addition to facial expressions. Omit to leave this option unspecified; false is treated as omission.

expressionIntensity
integer

Expression intensity from 1 through 5. Higher values request stronger expressions. Omit for 3; 0 is treated as omission.

必填範圍: 0 <= x <= 5
seed
integer

Sampling seed. Omit for a random seed; 0 is treated as omission.

必填範圍: 0 <= x <= 4294967295
ratio
enum<string>

Optional requested frame dimensions.

可用選項:
1280:720,
720:1280,
960:960,
1104:832,
832:1104,
1584:672
contentModeration
object

Content moderation settings. Omit to use the standard settings.

回應

The task was created. Save its id for task retrieval.

id
string
必填

Task ID for GET /runwayml/v1/tasks/{id}.

status
string

Task state, when returned.

createdAt
string<date-time>

Task submission timestamp, when returned.

output
string<uri>[]

Result URLs, when returned.

failure
string

Failure explanation, when returned.

failureCode
string

Machine-readable failure code, when returned.

estimatedCost
object

Task estimate metadata, when returned.

cost
object

Task cost metadata, when returned.

最後修改於 2026年9月21日