Kling26
Génération vidéo Kling 2.6 avec audio optionnel
Fonctionnalités
- Génération de vidéo à partir de texte
- Génération audio optionnelle
- Durées multiples
- Sortie de haute qualité
Tarification
| Duration | No Sound | With Sound |
|---|---|---|
| 5 sec | 60 (~$0.67) | 120 (~$1.33) |
| 10 sec | 120 (~$1.33) | 240 (~$2.67) |
Point de terminaison
POST
/api/v1/videos/generateParamètres
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
| model | string | Obligatoire | Must be "kling26" |
| type | string | Facultatif | "text-to-video" or "image-to-video" (default: text-to-video) |
| prompt | string | Obligatoire | Text description of the video |
| image_urls | string[] | Facultatif | Input image URLs for image-to-video |
| input_image | string | Facultatif | Deprecated. Alias for image_urls[0] |
| duration | string | Facultatif | "5" or "10" |
| sound | boolean | Facultatif | Generate with audio (default: false) |
| aspect_ratio | string | Facultatif | Output aspect ratio |
Exemple de Demande
{
"model": "kling26",
"prompt": "A fireworks display over a city skyline",
"duration": "10",
"sound": true
}Exemple de réponse
{
"success": true,
"data": {
"task_id": "task_kling123",
"credits_used": 240,
"remaining_credits": 260,
"model": "kling26"
}
}Exemples de Code
curl -X POST https://gateway.bananapro.site/api/v1/videos/generate \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "kling26",
"prompt": "A fireworks display over a city skyline",
"duration": "10",
"sound": true
}'