API / Éditeur
POST
/v1/jobs/{id}/translateTraduit les sous-titres.
Paramètres
| Nom | Emplacement | Type | Requis | Description |
|---|---|---|---|---|
id | chemin | string | oui | ID du job. |
lang | corps | string | oui | Langue cible (en, es…). |
Exemple de requête
curl -X POST https://deklip.com/v1/jobs/{id}/translate \
-H "Authorization: Bearer dk_live_VOTRE_CLE" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"lang":"en"}'Exemple de réponse
{
"captions": [
{
"text": "…",
"startSec": 0,
"endSec": 1.5
}
],
"cost": 3,
"credits_remaining": 292
}Via MCP: cet endpoint correspond à l'outil
translate_captions.