Ana içeriğe atla
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
}
Bu endpoint’i, Runway reverse-format wrapper aracılığıyla bir kaynak videodaki ifadeyi veya performansı ayrı bir görsele aktarmak için kullanın.

Mevcut kısıtlamalar

  • Bu route şu anda yalnızca 16:9 kaynak varlıkları destekler
  • Hem bir kaynak video hem de bir hedef image gerekir
  • İş akışını daha fazla ayarlamadan önce kısa ve stabil bir kaynak kliple başlayın

Görev akışı

1

act-one görevini oluşturun

Kaynak videoyu, hedef görseli ve callback veya izleme ayarlarını gönderin; ardından döndürülen görev kimliğini kaydedin.
2

Görevi sorgulayın

Wrapper terminal bir duruma ulaşana kadar Feed Get Task ile devam edin.
3

Sonucu kalıcı olarak saklayın

Kalıcı erişime ihtiyacınız varsa, nihai çıktıyı kendi medya iş hattınızda saklayın.

Yetkilendirmeler

Authorization
string
header
gerekli

Bearer token authentication. Use your CometAPI key.

Başlıklar

X-Runway-Version
string

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

Gövde

application/json
video
string
varsayılan:http://runwaycdn.rixapi.com/attachments/video/runway/20241015/82bc23c83b5c32e75059c8328df5cffb.mp4
gerekli

URL of the source video containing the performance to transfer.

image
string
varsayılan:https://db.xiaohuhd.com/1.jpeg
gerekli

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

callback_url
string
varsayılan:https://example.com/webhook
gerekli

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

Yanıt

200 - application/json

OK

code
integer
gerekli

HTTP status code

msg
string
gerekli

Text description of the request result

data
object
gerekli

Object containing specific response data.

exec_time
number
gerekli

Time spent by the server processing this request