Model API
ElevenLabs Dubbing
Generate dubbed videos or audios using ElevenLabs Dubbing feature!
Model id
elevenlabs/dubbingRun it
Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 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"Input
| Name | Type | Description |
|---|---|---|
audio_urlrequired | string (URL) | URL of the audio file to dub. Either audio_url or video_url must be provided. |
target_langrequired | 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. |
Output
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]Pricing
- per minute$0.9508/ minute
The exact charge for your input comes from a quote. How charges settle