API / Angles
POST
/v1/angles/{id}/videoGénère la vidéo complète d'un angle.
Asynchrone: renvoie un job_id. Visuels IA + voix off + musique + sous-titres + montage. Ajoutez hookClip:true pour ouvrir sur un clip animé (+45 crédits).
Paramètres
| Nom | Emplacement | Type | Requis | Description |
|---|---|---|---|---|
id | chemin | string | oui | ID de l'angle. |
voice | corps | string | non | ID de voix (voir /v1/voices). |
hookClip | corps | bool | non | Clip animé d'ouverture (+45 cr). |
Exemple de requête
curl -X POST https://deklip.com/v1/angles/{id}/video \
-H "Authorization: Bearer dk_live_VOTRE_CLE" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"voice":"eleven-v3"}'Exemple de réponse
{
"job_id": "job_9f2c…",
"status": "processing",
"cost": 40,
"credits_remaining": 60
}Notes
- Suivez GET /v1/jobs/{job_id} jusqu'à status=done, puis récupérez result (URL du MP4).
Via MCP: cet endpoint correspond à l'outil
generate_video.