官方格式
控制角色
透過 CometAPI 搭配 Runway 的控制角色 API,從參考影片啟動角色表演任務,驅動臉部表情與身體動作。
POST
Create a Runway character-performance task
使用此端點可將參考片段中的表演轉移到角色圖片或角色影片上。Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
呼叫前須知
- 傳送必要的
X-Runway-Versionheader,例如2024-11-06 - 使用
model: act_two - 提供一個
character資產與一個reference資產,且都必須是可存取的 HTTPS URL - 在調整風格前,先以
bodyControl: true和適中的expressionIntensity開始
任務流程
輪詢任務狀態
持續使用 取得任務詳細資料,直到任務進入終止狀態,且 provider metadata 包含已完成的輸出。
輸入角色
character是你想要製作動畫的主體reference是提供臉部表演或身體動作的來源片段bodyControl決定動作轉移是否除表情轉移外也包含身體動作contentModeration會將提供者的內容審核門檻套用到此請求
授權
Bearer token authentication. Use your CometAPI key.
標頭
Runway version header, for example 2024-11-06.
主體
application/json
The character to control. You can either provide a video or an image.
Reference performance clip. Provide type (video) and uri (HTTPS URL).
Enable body control.
Intensity of the expression transfer. Higher values produce more exaggerated expressions.
Random seed for reproducible results.
The model variant to use. Must be act_two.
Aspect ratio of the output video, e.g. 1280:720.
回應
200 - application/json
Task accepted.