Ana içeriğe atla
POST
/
runway
/
pro
/
generate
Create a compatibility-format Runway generate task
curl --request POST \
  --url https://api.cometapi.com/runway/pro/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "callback_url": "https://example.com/webhook",
  "image": "https://db.xiaohuhd.com/1.jpeg",
  "model": "gen4",
  "prompt": "Smile, Eat Burger"
}
'
{
  "code": 200,
  "message": "",
  "msg": "success",
  "data": {
    "task_id": "196642a0-05e1-441a-981e-eb0c1f5d983b"
  }
}

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

Bir veya daha fazla referans görselle Runway uyumluluk formatındaki generate rotasını kullanmak istediğinizde bu endpoint’i kullanın.

Çağırmadan önce

  • Gerekli X-Runway-Version header’ını gönderin, örneğin 2024-11-06
  • model: gen4 kullanın
  • Kaynak image ile hareketi veya dönüşümü açıklayan prompt’u sağlayın
  • Stil ve motion-vector ayarlarını katmanlı olarak eklemeden önce ilk isteği basit tutun

Görev akışı

1

Uyumluluk formatındaki görevi oluşturun

Prompt, image, ratio ve seçenekleri gönderin, ardından dönen görev kimliğini kaydedin.
2

Görevi sorgulayın

Feed Get Task ile devam edin. İlk sorgu task_not_exist döndürürse birkaç saniye bekleyin ve yeniden deneyin.
3

Sonucu kalıcı olarak saklayın

Görev tamamlandığında, uzun süreli saklama gerekiyorsa nihai asset’i kendi medya 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
callback_url
string
varsayılan:https://example.com/webhook
gerekli

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

ratio
string
varsayılan:1280:720
gerekli

Aspect ratio of the generated video, e.g. 1280:720.

prompt
string
varsayılan:A paper boat gently rocks on calm water.
gerekli

Text prompt describing the desired video content or motion.

model
string
varsayılan:gen4
gerekli

Model version to use, e.g. gen4.

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

URL of the source image to animate.

style
string

Artistic style for the generated video, e.g. cinematic.

options
object

Advanced generation options.

last_image
string

URL of the end-frame image. When provided, the video transitions toward this frame.

Yanıt

200 - application/json

OK

code
integer
gerekli

HTTP status code returned by the task service.

data
object
gerekli
message
string

Empty on success.

msg
string

Result message.