Model API'si

Workflow Utilities Blend Video

Blend Video ile iki klibi üst üste katmanlar halinde birleştirebilirsin.

Model kimliği

Her istekte bunu kullan
workflow-utilities/blend-video

Ç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": "workflow-utilities/blend-video",
  "input": {
    "top_video_url": "https://example.com/input.mp4",
    "bottom_video_url": "https://example.com/input.mp4"
  }
}'

# 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": "workflow-utilities/blend-video", "quote_id": "QUOTE_ID", "input": {"top_video_url":"https://example.com/input.mp4","bottom_video_url":"https://example.com/input.mp4"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Girdi

workflow-utilities/blend-video girdi alanları
AlanTürAçıklama
top_video_urlzorunlustring (URL)
URL of the top layer video
bottom_video_urlzorunlustring (URL)
URL of the bottom layer video
blend_modestring (enum)
Blend mode to use for combining the videos

Varsayılan: overlay

Seçenekler: addition, average, burn, darken, difference, divide, dodge, exclusion, grainextract, grainmerge, hardlight, lighten, multiply, negation, normal, overlay, phoenix, pinlight, reflect, screen, softlight, subtract, vividlight

opacitynumber
Opacity of the top layer (0.0-1.0)

Varsayılan: 1

shortestboolean
End output when the shortest input ends

Varsayılan: true

Çı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.

İş yanıtından bir bölüm
"outputs": [
  { "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]

Fiyatlandırma

  • en fazla$1,43/ üretim

Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?