官方格式
控制角色
通过 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-Version请求头,例如2024-11-06 - 使用
model: act_two - 提供一个
character资源和一个reference资源,且二者都必须是可访问的 HTTPS URL - 在调整风格之前,先使用
bodyControl: true和适中的expressionIntensity作为起点
任务流程
轮询任务状态
继续使用 获取任务详情,直到任务进入终态,并且提供商元数据包含已完成的输出。
输入角色
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.