Model API'si

Kling Video to Audio

Kling Video to Audio ile mevcut videoya ses üret.

Model kimliği

Her istekte bunu kullan
kling-video/video-to-audio

Ç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": "kling-video/video-to-audio",
  "input": {
    "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": "kling-video/video-to-audio", "quote_id": "QUOTE_ID", "input": {"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

kling-video/video-to-audio girdi alanları
AlanTürAçıklama
video_urlzorunlustring (URL)
The video URL to extract audio from. Only .mp4/.mov formats are supported. File size does not exceed 100MB. Video duration between 3.0s and 20.0s.
sound_effect_promptstring
Sound effect prompt. Cannot exceed 200 characters.

Varsayılan: Car tires screech as they accelerate in a drag race

background_music_promptstring
Background music prompt. Cannot exceed 200 characters.

Varsayılan: intense car race

asmr_modeboolean
Enable ASMR mode. This mode enhances detailed sound effects and is suitable for highly immersive content scenarios.

Varsayılan: false

Çı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": "audio", "url": "https://…", "mime_type": "audio/mpeg", "thumbnail_url": null }
]

Fiyatlandırma

  • 1 video$0,06/ video

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