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パラメータ
| パラメータ | タイプ | 必須 | 説明 |
|---|---|---|---|
| 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
}'