Kling26
Kling 2.6 비디오 생성 (오디오 옵션 포함)
기능
- 텍스트-비디오 생성
- 선택적 오디오 생성
- 다중 지속 시간
- 고품질 출력
요금제
| Duration | No Sound | With Sound |
|---|---|---|
| 5 sec | 60 (~$0.67) | 120 (~$1.33) |
| 10 sec | 120 (~$1.33) | 240 (~$2.67) |
엔드포인트
POST
/api/v1/videos/generate매개변수
| Parameter | 타입 | 필수 | 설명 |
|---|---|---|---|
| model | string | 필수 | Must be "kling26" |
| type | string | 선택 사항 | "text-to-video" or "image-to-video" (default: text-to-video) |
| prompt | string | 필수 | Text description of the video |
| image_urls | string[] | 선택 사항 | Input image URLs for image-to-video |
| input_image | string | 선택 사항 | Deprecated. Alias for image_urls[0] |
| duration | string | 선택 사항 | "5" or "10" |
| sound | boolean | 선택 사항 | Generate with audio (default: false) |
| aspect_ratio | string | 선택 사항 | Output aspect ratio |
요청 예시
{
"model": "kling26",
"prompt": "A fireworks display over a city skyline",
"duration": "10",
"sound": true
}응답 예시
{
"success": true,
"data": {
"task_id": "task_kling123",
"credits_used": 240,
"remaining_credits": 260,
"model": "kling26"
}
}코드 예제
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
}'