Passer au contenu 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
}
Utilisez ce endpoint pour transférer une expression ou une performance d’une vidéo source vers une image distincte via le wrapper reverse-format de Runway.

Contraintes actuelles

  • Cette route prend actuellement en charge uniquement les ressources source au format 16:9
  • Vous avez besoin à la fois d’une video source et d’une image cible
  • Commencez avec un clip source court et stable avant d’ajuster davantage le workflow

Flux de tâche

1

Créer la tâche act-one

Soumettez la vidéo source, l’image cible et les paramètres de callback ou de suivi, puis enregistrez l’id de tâche renvoyé.
2

Interroger la tâche

Continuez avec Feed Get Task jusqu’à ce que le wrapper atteigne un état terminal.
3

Persister le résultat

Stockez la sortie finale dans votre propre pipeline média si vous avez besoin d’un accès durable.

Autorisations

Authorization
string
header
requis

Bearer token authentication. Use your CometAPI key.

En-têtes

X-Runway-Version
string

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

Corps

application/json
video
string
défaut:http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4
requis

URL of the source video containing the performance to transfer.

image
string
défaut:https://db.xiaohuhd.com/1.jpeg
requis

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

callback_url
string
défaut:https://example.com/webhook
requis

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

Réponse

200 - application/json

OK

code
integer
requis

HTTP status code

msg
string
requis

Text description of the request result

data
object
requis

Object containing specific response data.

exec_time
number
requis

Time spent by the server processing this request