Model API'si
ElevenLabs Dubbing
ElevenLabs ile mevcut ses kaydının seçtiğin dilde dublajını oluşturabilirsin.
Model kimliği
elevenlabs/dubbingÇ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": "elevenlabs/dubbing",
"input": {
"audio_url": "https://example.com/input.mp3",
"target_lang": "example"
}
}'
# 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": "elevenlabs/dubbing", "quote_id": "QUOTE_ID", "input": {"audio_url":"https://example.com/input.mp3","target_lang":"example"}}'
# 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 |
|---|---|---|
audio_urlzorunlu | string (URL) | URL of the audio file to dub. Either audio_url or video_url must be provided. |
target_langzorunlu | string | Target language code for dubbing (ISO 639-1) |
source_lang | string | Source language code. If not provided, will be auto-detected. |
num_speakers | integer | Number of speakers in the audio. If not provided, will be auto-detected. |
highest_resolution | boolean | Whether to use the highest resolution for dubbing. |
Çı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
- dakika başına$0,9508/ dakika
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?