Kling26
Geração de vídeo Kling 2.6 com áudio opcional
Funcionalidades
- Geração de vídeo a partir de texto
- Geração de áudio opcional
- Várias durações
- Saída de alta qualidade
Preços
| Duration | No Sound | With Sound |
|---|---|---|
| 5 sec | 60 (~$0.67) | 120 (~$1.33) |
| 10 sec | 120 (~$1.33) | 240 (~$2.67) |
Endpoint
POST
/api/v1/videos/generateParâmetros
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| model | string | Obrigatório | Must be "kling26" |
| type | string | Opcional | "text-to-video" or "image-to-video" (default: text-to-video) |
| prompt | string | Obrigatório | 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 |
Exemplo de Solicitação
{
"model": "kling26",
"prompt": "A fireworks display over a city skyline",
"duration": "10",
"sound": true
}Exemplo de Resposta
{
"success": true,
"data": {
"task_id": "task_kling123",
"credits_used": 240,
"remaining_credits": 260,
"model": "kling26"
}
}Exemplos 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
}'