API / Éditeur
POST
/v1/jobs/{id}/musicGénère une musique de fond IA.
Paramètres
| Nom | Emplacement | Type | Requis | Description |
|---|---|---|---|---|
id | chemin | string | oui | ID du job. |
style | corps | string | non | Ambiance (ex. energetic hip-hop). |
Exemple de requête
curl -X POST https://deklip.com/v1/jobs/{id}/music \
-H "Authorization: Bearer dk_live_VOTRE_CLE" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"style":"upbeat electronic"}'Exemple de réponse
{
"url": "https://…/music.mp3",
"cost": 5,
"credits_remaining": 295
}Via MCP: cet endpoint correspond à l'outil
generate_music.