PopNowDocs API
Contenuto principale

Riferimento API di ElevenLabs Dubbing

Doppia una registrazione o la colonna sonora di un video in 33 lingue, fino a 15 minuti

Con una sola chiave API di PopNow chiami ElevenLabs Dubbing dal tuo codice. Qui trovi gli ID del modello da inviare, ogni campo di input accettato, quanto costa ogni richiesta in USD e una richiesta da incollare nel terminale così com’è.

Le descrizioni dei parametri provengono dallo schema di input del modello e sono disponibili solo in inglese.

In sintesi

Sviluppato da
ElevenLabs
Risultato
Audio
Da
$0.012 USD per secondo generato

I prezzi sono indicati in USD e gli importi vengono addebitati sul tuo saldo PopNow. Alla ricezione viene riservato il massimo importo; al termine viene addebitato il consumo effettivo e il resto viene sbloccato. Le attività fallite non vengono addebitate. Per un preventivo esatto prima di eseguire, usa POST /api/v1/jobs/quote.

Traduttore audio

elevenlabs/dubbing/audio-to-audio

Prezzo

OpzioneUSD
Predefinito$0.012 per secondo generato

Parametri

CampoTipoPredefinitoValori ammessiA cosa serve
audio_urlObbligatoriostring——Speech recording to dub, 1 second to 15 minutes. Billed per second of this recording, rounded up.
target_languageFacoltativostringenar, bg, zh, hr, cs, da, nl, en, fil, fi, fr, de, el, hi, … (+19)Language to dub the speech into, as a language code.
source_languageFacoltativostringautoauto, af, ar, hy, az, be, bs, bg, ca, zh, hr, cs, da, nl, … (+44)Language spoken in the source; auto detects it.
speaker_countFacoltativointeger—1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, … (+18)Number of people speaking, 1 to 32. Leave it out to let the service count them.
keep_background_audioFacoltativobooleantrue—Keep music and sound effects under the dubbed voices; off returns the voices only.

Richiesta di esempio

Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.

L’esempio usa file di prova di PopNow in audio_url. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "elevenlabs/dubbing/audio-to-audio",
  "input": {
    "audio_url": "https://media.popnow.ai/shortfilm/voices/Aoede-46e4c427.mp3"
  }
}'

La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Traduttore video

elevenlabs/dubbing/video-translate

Prezzo

OpzioneUSD
Predefinito$0.012 per secondo generato

Parametri

CampoTipoPredefinitoValori ammessiA cosa serve
video_urlObbligatoriostring——Video with speech to dub, 1 second to 15 minutes. The picture is kept; billed per second of this clip, rounded up.
target_languageFacoltativostringenar, bg, zh, hr, cs, da, nl, en, fil, fi, fr, de, el, hi, … (+19)Language to dub the speech into, as a language code.
source_languageFacoltativostringautoauto, af, ar, hy, az, be, bs, bg, ca, zh, hr, cs, da, nl, … (+44)Language spoken in the source; auto detects it.
speaker_countFacoltativointeger—1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, … (+18)Number of people speaking, 1 to 32. Leave it out to let the service count them.
keep_background_audioFacoltativobooleantrue—Keep music and sound effects under the dubbed voices; off returns the voices only.

Richiesta di esempio

Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.

L’esempio usa file di prova di PopNow in video_url. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "elevenlabs/dubbing/video-translate",
  "input": {
    "video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4"
  }
}'

La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Passi successivi

In questa pagina