Saltar para o conteúdo principal
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
}
Use este endpoint para transferir expressão ou performance de um vídeo de origem para uma imagem separada por meio do wrapper reverse-format do Runway.

Restrições atuais

  • Esta rota atualmente oferece suporte apenas a recursos de origem em 16:9
  • Você precisa de um video de origem e uma image de destino
  • Comece com um clipe de origem curto e estável antes de ajustar mais o fluxo de trabalho

Fluxo da tarefa

1

Criar a tarefa act-one

Envie o vídeo de origem, a imagem de destino e as configurações de callback ou rastreamento, depois salve o id da tarefa retornado.
2

Consultar a tarefa

Continue com Feed Get Task até que o wrapper atinja um estado terminal.
3

Persistir o resultado

Armazene a saída final no seu próprio pipeline de mídia se precisar de acesso durável.

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication. Use your CometAPI key.

Cabeçalhos

X-Runway-Version
string

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

Corpo

application/json
video
string
padrão:http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4
obrigatório

URL of the source video containing the performance to transfer.

image
string
padrão:https://db.xiaohuhd.com/1.jpeg
obrigatório

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

callback_url
string
padrão:https://example.com/webhook
obrigatório

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

Resposta

200 - application/json

OK

code
integer
obrigatório

HTTP status code

msg
string
obrigatório

Text description of the request result

data
object
obrigatório

Object containing specific response data.

exec_time
number
obrigatório

Time spent by the server processing this request