Riferimento API di Video Translator
Doppia una clip in 28 lingue con sottotitoli, fatturazione al minuto
Con una sola chiave API di PopNow chiami Video Translator 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
- PopNow
- Risultato
- Video
- Da
- $0.005 USD per secondo generato
- ID del modello
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 video
popnow/video-translator-v1/video-translate
Prezzo
| Opzione | USD |
|---|---|
Predefinito | $0.005 per secondo generato |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
video_urlObbligatorio | string | — | — | Clip to translate, 1 second to 10 minutes. The picture is kept; the returned clip carries the dubbed audio. Billed per started minute of this clip. |
target_languageFacoltativo | string | en | en, es, fr, de, it, pt, nl, sv, da, no, fi, el, ru, pl, … (+14) | Language to dub into. It must differ from the language spoken in the clip. |
source_languageFacoltativo | string | auto | auto, en, zh-CN, zh-TW, yue, es, fr, de, it, pt, ru, ja, ko, ar, … (+88) | Language spoken in the clip. auto detects it; set it when there is music under the voice, a heavy accent or long pauses. |
clone_voiceFacoltativo | boolean | false | — | Re-voice each speaker in a voice modelled on their own. |
keep_background_audioFacoltativo | boolean | true | — | Keep the original music and sound effects under the dub; off returns the translated voices only. |
speaker_countFacoltativo | integer | — | 1, 2, 3, 4 | Number of people speaking, 1 to 4. Leave it out to detect it. |
glossaryFacoltativo | array<object> | — | fino a 100 elementi | Names and phrases with a fixed translation, up to 100 pairs. |
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.
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": "popnow/video-translator-v1/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.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
