Kling 3.0 Turbo API ইন্টিগ্রেশন
Rivya Public API v1 দিয়ে Kling 3.0 Turbo ব্যবহার করুন: model id kling-3-turbo, সমর্থিত ইনপুট, প্যারামিটার, Files API নিয়ম, ক্রেডিট এবং response উদাহরণসহ।
kling-3-turbo
text, file
reference mode-এর জন্য প্রয়োজন
per_output_second · 720p=18 · 1080p=22.5 · ⌈total⌉
ভিডিও
METERED
2500 অক্ষর
রিকোয়েস্ট contract
model id top level-এ পাঠান। Model-specific control params-এ থাকবে।
| Key | ধরন | প্রয়োজনীয় | ডিফল্ট | বিবরণ |
|---|---|---|---|---|
| model | string | হ্যাঁ | kling-3-turbo | kling-3-turbo API model id ব্যবহার করুন। |
| prompt | string | হ্যাঁ | - | এই model-এর জন্য সর্বোচ্চ 2500 অক্ষর। |
| params | object | না | - | মডেল-নির্দিষ্ট প্যারামিটার object। অনুমোদিত key-এর জন্য নিচের row ব্যবহার করুন। |
| client_request_id | string | না | - | আপনার সিস্টেমে request trace করার ঐচ্ছিক client-side id। |
মডেল প্যারামিটার
| Key | ধরন | প্রয়োজনীয় | ডিফল্ট | পরিসর | বিকল্প | বিবরণ |
|---|---|---|---|---|---|---|
| resolution | select | না | 720p | - | 720p, 1080p | নির্বাচিত রেজোলিউশন প্রতি আউটপুট সেকেন্ডের ক্রেডিট হারও নির্ধারণ করে। |
| duration | number | না | 5 | min 3 / max 15 / step 1 | - | 3 থেকে 15 সেকেন্ডের পূর্ণসংখ্যা আউটপুট মেয়াদ বেছে নিন। |
| aspect_ratio | select | না | 16:9 | - | 1:1, 9:16, 16:9 | শুধু টেক্সট-টু-ভিডিওর জন্য পাওয়া যায়; একটি ছবি ব্যবহার করলে নিয়ন্ত্রণটি লুকানো থাকে। |
আপলোড নীতি
প্রথমে reference file upload করুন, তারপর ফেরত পাওয়া URL এবং duration token params.referenceMediaItems-এর মধ্যে দিন।
ঐচ্ছিক সূচনার ছবি: ইমেজ-টু-ভিডিওর জন্য সর্বোচ্চ 10 MB-এর ঠিক একটি JPEG বা PNG ছবি আপলোড করুন। টেক্সট-টু-ভিডিওতে কোনো মিডিয়া আপলোড করা হয় না।
1
image
duration verification প্রয়োজন হলে video এবং audio reference /api/v1/files থেকে durationToken বহন করবে।
| kind | সর্বোচ্চ আকার | MIME types |
|---|---|---|
| image | 10 MB | image/jpeg, image/png |
ন্যূনতম request
{
"model": "kling-3-turbo",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"resolution": "720p",
"duration": 5,
"aspect_ratio": "16:9"
}
}রেফারেন্স ফাইল রিকোয়েস্ট
{
"model": "kling-3-turbo",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"resolution": "720p",
"duration": 5,
"aspect_ratio": "16:9",
"referenceMediaItems": [
{
"url": "https://cdn.example.com/reference-image.png",
"kind": "image",
"name": "reference-image.png",
"mimeType": "image/png",
"width": 1024,
"height": 1024,
"sizeBytes": 1048576,
"imageDimensionsToken": "image_dimensions_token_from_original_files_api_upload_response"
}
]
}
}Create response
create endpoint public task id ফেরত দেয়। task succeeded বা failed না হওয়া পর্যন্ত status endpoint poll করুন।
{
"id": "task_kling_3_turbo_example",
"status": "queued",
"model": "kling-3-turbo",
"reserved_credits": 90,
"final_credits": 0,
"settlement_status": "RESERVED",
"created_at": "2026-05-11T00:00:00.000Z",
"updated_at": "2026-05-11T00:00:00.000Z",
"result": null,
"error": null
}সাধারণ ত্রুটি
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
কিছু mode-এর জন্য Files API reference upload দরকার।