Kling26
Generación de vídeo Kling 2.6 con audio opcional
Características
- Generación de texto a video
- Generación de audio opcional
- Múltiples duraciones
- Resultado de alta calidad
Precios
| Duration | No Sound | With Sound |
|---|---|---|
| 5 sec | 60 (~$0.67) | 120 (~$1.33) |
| 10 sec | 120 (~$1.33) | 240 (~$2.67) |
Punto de conexión
POST
/api/v1/videos/generateParámetros
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| model | string | Necesario | Must be "kling26" |
| type | string | Opcional | "text-to-video" or "image-to-video" (default: text-to-video) |
| prompt | string | Necesario | Text description of the video |
| image_urls | string[] | Opcional | Input image URLs for image-to-video |
| input_image | string | Opcional | Deprecated. Alias for image_urls[0] |
| duration | string | Opcional | "5" or "10" |
| sound | boolean | Opcional | Generate with audio (default: false) |
| aspect_ratio | string | Opcional | Output aspect ratio |
Ejemplo de Solicitud
{
"model": "kling26",
"prompt": "A fireworks display over a city skyline",
"duration": "10",
"sound": true
}Ejemplo de Respuesta
{
"success": true,
"data": {
"task_id": "task_kling123",
"credits_used": 240,
"remaining_credits": 260,
"model": "kling26"
}
}Ejemplos de Código
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
}'