Naar hoofdinhoud gaan
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
}
Gebruik dit endpoint om expressie of performance van een bronvideo over te zetten op een aparte afbeelding via de reverse-format-wrapper van Runway.

Huidige beperkingen

  • Deze route ondersteunt momenteel alleen bronassets in 16:9
  • Je hebt zowel een bron-video als een doel-image nodig
  • Begin met een korte, stabiele bronclip voordat je de workflow verder afstemt

Taakverloop

1

Maak de act-one-taak aan

Dien de bronvideo, doelafbeelding en callback- of trackinginstellingen in en bewaar vervolgens de geretourneerde taak-id.
2

Poll de taak

Ga verder met Feed Get Task totdat de wrapper een terminale status bereikt.
3

Sla het resultaat op

Sla de uiteindelijke output op in je eigen mediapijplijn als je duurzame toegang nodig hebt.

Autorisaties

Authorization
string
header
vereist

Bearer token authentication. Use your CometAPI key.

Headers

X-Runway-Version
string

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

Body

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

URL of the source video containing the performance to transfer.

image
string
standaard:https://db.xiaohuhd.com/1.jpeg
vereist

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

callback_url
string
standaard:https://example.com/webhook
vereist

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

Respons

200 - application/json

OK

code
integer
vereist

HTTP status code

msg
string
vereist

Text description of the request result

data
object
vereist

Object containing specific response data.

exec_time
number
vereist

Time spent by the server processing this request