Model API'si
Runway Gen-4.5
Model kimliği
runway-gen-4-5Çalıştır
Girdiye ücret teklifi al, bu teklifle üretimi başlat, ardından işin durumunu sorgula. Önce RAYWAKE_API_KEY değişkenini ayarla; ayrıntılar için Kimlik doğrulama sayfasına bak.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "runway-gen-4-5",
"input": {
"prompt": "A red ceramic cup on a wooden table, soft morning light"
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "runway-gen-4-5", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light"}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"Girdi
| Alan | Tür | Açıklama |
|---|---|---|
inputImage | array of image URLs | Optional first frame image for image-to-video. Leave empty to run text-to-video. |
promptzorunlu | string | Required. Describe the video you want to generate. Maximum 1000 characters. |
ratio | string (enum) | Required. Aspect ratio of the generated video. Choose 'auto' to match the input image's aspect ratio to the closest supported ratio; for text-to-video only supported options are 16:9 and 9:16, auto defaults to 16:9. |
duration | integer | Required. Video duration in seconds. Also determines the price. |
contentModeration | string (enum) | Optional. Public figure moderation threshold. Default to low |
seed | integer | Optional. Fixed seed (0 to 4294967295) for reproducible results. |
Çıktı
Başarılı bir iş, sonuçlarını outputs altında listeler; dosyalar bizim tarafımızda saklanır. Tüm alanlar için İşler sayfasına bak.
"outputs": [
{ "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]Fiyatlandırma
- 2 s$0,39/ video
- 3 s$0,58/ video
- 4 s$0,77/ video
- 5 sn$0,96/ video
- 6 s$1,15/ video
- 7 s$1,34/ video
- 8 s$1,53/ video
- 9 s$1,72/ video
- 10 s$1,91/ video
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?