Vai al contenuto principale
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
}
Usa questo endpoint per trasferire un’espressione o una performance da un video sorgente a un’immagine separata tramite il wrapper reverse-format di Runway.

Vincoli attuali

  • Questa route attualmente supporta solo asset sorgente in 16:9
  • Sono necessari sia un video sorgente sia un’image di destinazione
  • Inizia con una clip sorgente breve e stabile prima di ottimizzare ulteriormente il workflow

Flusso del task

1

Crea il task act-one

Invia il video sorgente, l’immagine di destinazione e le impostazioni di callback o tracciamento, quindi salva il task id restituito.
2

Interroga il task

Continua con Feed Get Task finché il wrapper non raggiunge uno stato terminale.
3

Salva il risultato

Memorizza l’output finale nella tua media pipeline se ti serve un accesso persistente.

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer token authentication. Use your CometAPI key.

Intestazioni

X-Runway-Version
string

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

Corpo

application/json
video
string
predefinito:http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4
obbligatorio

URL of the source video containing the performance to transfer.

image
string
predefinito:https://db.xiaohuhd.com/1.jpeg
obbligatorio

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

callback_url
string
predefinito:https://example.com/webhook
obbligatorio

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

Risposta

200 - application/json

OK

code
integer
obbligatorio

HTTP status code

msg
string
obbligatorio

Text description of the request result

data
object
obbligatorio

Object containing specific response data.

exec_time
number
obbligatorio

Time spent by the server processing this request