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
}'