跳转到主要内容
POST
cURL
使用 act_two 将参考视频的表演应用到角色图像 或视频。请求会返回用于获取完成输出的任务 id。

准备资源

  • 使用您的 CometAPI API 密钥进行身份验证。
  • 将 model 设置为 act_two。
  • 将 character.type 作为 image 或 video 提供,其中资源采用 character.uri。确保可识别的面部保持可见且位于画面内。
  • 将 reference.type 作为 video 提供,并在 reference.uri 中提供时长为 3 到 30 秒的表演片段。
  • 将示例媒体 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日