Kuaishoukling-3.0
Kuaishou Kling 3.0: 3 to 15 second clips at 720p, 1080p or 4K from a prompt, a first frame, or a first and a last frame, with or without a soundtrack
$0.1134/ ثانية-10%$0.126السعر الرسميلا رسوم على عمليات التوليد الفاشلة
- 3–15 second clips
- 720p, 1080p and 4K
- الإطاران الأول والأخير
- Sound on or off
- النوع
- فيديو
- نقطة النهاية
- /v1/videos/generations
- معرّف النموذج
- kling-3.0
- المزوّد
- Kuaishou
Kling 3.0 نظرة عامة على API
نقطة نهاية موثّقة
تُرسَل طلبات الفيديو إلى /v1/videos/generations. يسرد جدول المعاملات أدناه الحقول التي توثّقها هذه الواجهة.
مزوّد النموذج
Kling 3.0 من إصدار Kuaishou ويُستدعى عبر API بمعرّف النموذج kling-3.0.
المخرجات والحدود
3–15 seconds; 720p, 1080p or 4K; one output per request; text: 16:9, 1:1 or 9:16; a first frame, or a first and a last frame, sets the shape (adaptive); no reference images, videos or audio; frame images at least 300 pixels a side with a width to height ratio from 0.4 to 2.5; prompt required; a soundtrack is generated unless generate_audio is false, and the price is the same with or without it
Kling 3.0 أسعار API
تُحتسب تكلفة Kling 3.0 أقل بنسبة 10% من السعر الرسمي في كل بند أدناه.
| البند | سعر ArgoLink | السعر الرسمي | توفّر |
|---|---|---|---|
| 720p | $0.1134 / ثانية | -10% | |
| 1080p | $0.1512 / ثانية | -10% | |
| 4k | $0.378 / ثانية | -10% |
3–15 seconds; 720p, 1080p or 4K; one output per request; text: 16:9, 1:1 or 9:16; a first frame, or a first and a last frame, sets the shape (adaptive); no reference images, videos or audio; frame images at least 300 pixels a side with a width to height ratio from 0.4 to 2.5; prompt required; a soundtrack is generated unless generate_audio is false, and the price is the same with or without it
Kling 3.0 مرجع API
البدء السريع
أنشئ مفتاح API في لوحة التحكم، ثم استخدم عنوان URL الأساسي ونقطة النهاية وجسم الطلب المعروضة في هذه الصفحة.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-3.0",
"prompt": "A slow aerial shot over a foggy pine forest at sunrise"
}'
curl https://argolink.io/v1/videos/$REQUEST_ID \
-H "Authorization: Bearer $ARGOLINK_API_KEY"
curl -L https://argolink.io/v1/videos/$REQUEST_ID/content \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-o output.mp4
import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['ARGOLINK_API_KEY']}"}
job = requests.post(
"https://argolink.io/v1/videos/generations",
headers=headers,
json={"model": "kling-3.0", "prompt": "A slow aerial shot over a foggy pine forest at sunrise"},
timeout=600,
)
job.raise_for_status()
request_id = job.json()["request_id"]
while True:
status = requests.get(f"https://argolink.io/v1/videos/{request_id}", headers=headers, timeout=60).json()
if status["status"] in ("done", "failed", "expired"):
break
time.sleep(5)
if status["status"] == "done":
video = requests.get(f"https://argolink.io/v1/videos/{request_id}/content", headers=headers, timeout=600)
open("output.mp4", "wb").write(video.content)
الأوضاع
من نص إلى فيديو
موجّه فقط، لا شيء غيره
أقصر استدعاء ممكن: الحقل prompt وحده مطلوب، وعند عدم إرسال بقية الحقول يُولَّد فيديو مدته 5 ثوانٍ بدقة 720p ونسبة 16:9 ويُحتسب على هذا الأساس.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-3.0",
"prompt": "لقطة جوية بطيئة فوق غابة صنوبر يكسوها الضباب عند شروق الشمس",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}'
| الحقل | القيمة |
|---|---|
prompt | مطلوب، حتى 40,000 بايت؛ صِف حركة الكاميرا والعنصر الرئيسي والأجواء |
duration | 3–15 ثانية بأعداد صحيحة، والقيمة الافتراضية 5 |
resolution | 720p · 1080p · 4k، والقيمة الافتراضية 720p |
aspect_ratio | 16:9 · 1:1 · 9:16، والقيمة الافتراضية 16:9 |
size | بكسلات بدلًا من resolution مع aspect_ratio، فـ 1280x720 تعني 720p بنسبة 16:9 |
يُنتج كل طلب فيديو واحدًا؛ ولا يُدعم seed وwatermark، ويحمل الناتج مسارًا صوتيًا مُولَّدًا ما لم تكن قيمة generate_audio هي false.
الإطاران الأول والأخير
ثبّت البداية، والنهاية اختياريًا
start_image وحده إطار أول؛ أضف end_image فيملأ النموذج ما بينهما.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-3.0",
"prompt": "تقترب الكاميرا ببطء بينما تنجرف أوراق الشجر عبر الكادر",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "adaptive",
"start_image": {"url": "https://example.com/first-frame.png"}
}'
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-3.0",
"prompt": "يتحوّل النهار إلى ليل فوق أفق المدينة نفسه بينما تُضاء الأنوار",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "adaptive",
"start_image": {"url": "https://example.com/day.png"},
"end_image": {"url": "https://example.com/night.png"}
}'
| الحقل | القيمة |
|---|---|
prompt | مطلوب؛ صِف كيف تتحرك اللقطة |
start_image | صورة واحدة عبر HTTPS، وهي تحدّد إطار النتيجة |
end_image | اختياري؛ صورة واحدة عبر HTTPS ينتهي عندها الفيديو |
duration | 3–15 ثانية بأعداد صحيحة، والقيمة الافتراضية 5 |
resolution | 720p · 1080p · 4k، والقيمة الافتراضية 720p |
aspect_ratio | adaptive فقط؛ فهي تتبع الإطار الأول |
تأخذ النتيجة النسبة الأقرب إلى الإطار الأول.
كيفية رفع الإطارات واستخدامها
رابطك الخاص، أو ملف محلي يُرفع أولًا
قيمة url في start_image وend_image عنوان HTTPS. يُرسَل الرابط الذي تستضيفه بالفعل كما هو، ما دام تنزيله ممكنًا دون تسجيل الدخول وتبقى كل عمليات إعادة التوجيه على HTTPS. أما الملف المحلي فيُرفع أولًا، ثم يوضع media_url الذي تحصل عليه في الطلب.
FILE=first-frame.png
TICKET=$(curl -fsS https://argolink.io/v1/media/uploads \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"model\":\"kling-3.0\",\"type\":\"image\",\"content_type\":\"image/png\",\"size_bytes\":$(wc -c < "$FILE" | tr -d ' ')}")
curl -fsS -X PUT "$(jq -r .upload_url <<<"$TICKET")" \
-H "Content-Type: image/png" --data-binary @"$FILE"
# Put this media_url in start_image.url
jq -r .media_url <<<"$TICKET"
طلب تذكرة الرفع مجاني ولا يُنشئ أي مهمة: يظل upload_url صالحًا لمدة 15 دقيقة، ويجب أن يحمل طلب PUT ترويسة Content-Type التي صرّحت بها؛ ويبقى media_url الذي تُستبدل به التذكرة قابلًا للقراءة سبعة أيام.
| الحقل | التنسيق | الحجم | المدة |
|---|---|---|---|
start_image · end_image | JPEG أو PNG | ≤ 20 MiB | — |
أي ملف خارج هذه النطاقات يُفشل المهمة بالخطأ invalid_input قبل بدء التوليد، ولا يُحتسب أي شيء.
Kling 3.0 معاملات الطلب كاملةً
| المعامل | النوع | المتطلب | الوظيفة |
|---|---|---|---|
model | string | مطلوب | The catalog identifier for this page: kling-3.0. |
prompt | string | مطلوب | Describes the video: camera motion, subject action and mood. This model needs one in every mode, assets or not. |
duration | integer | اختياري | Output length in whole seconds, 3 to 15؛ والقيمة الافتراضية 5. |
resolution | string | اختياري | Output resolution: 720p, 1080p or 4k؛ والقيمة الافتراضية 720p. |
aspect_ratio | string | اختياري | Output aspect ratio: 16:9, 1:1 or 9:16؛ والقيمة الافتراضية 16:9. In first-frame and first-and-last-frame modes, send adaptive only; the result follows the first frame and uses the ratio closest to its first frame. |
size | string | اختياري | Pixels instead of resolution plus aspect_ratio, written WIDTHxHEIGHT: the short side picks the tier (720 for 720p, 1080 for 1080p or 2160 for 4k) and the shape picks the ratio, so 1280x720 تعني 720p 16:9. It picks a tier and a ratio, not exact pixels; a resolution or aspect_ratio sent with it must match, or the request is rejected with 400. |
start_image | object | أوضاع الإطار الأول | HTTPS URL of the first frame. Alone it makes a first-frame video, with end_image a first-and-last-frame video. |
end_image | object | الإطاران الأول والأخير فقط | HTTPS URL للإطار الأخير؛ أرسله مع start_image. قد تختلف نسبة الصورة المصدر، لأن النتيجة تكيّفها مع الإطار الأول. |
reference_images · reference_videos · reference_audios | array | غير مدعوم | This model takes no reference assets: send a prompt, or a prompt with start_image and end_image. Any reference list is rejected with 400. |
seconds · ratio | — | أسماء متوافقة | اسمان بديلان لـ duration وaspect_ratio؛ أرسل اسمًا واحدًا لكل قيمة، ولا ترسل الاثنين معًا أبدًا. |
image_url · image_urls · video_urls · audio_urls · frame_images · input_references | — | أسماء متوافقة | تعمل أيضًا أسماء الحقول المستخدمة في طلبات fal وOpenRouter: image_url هو start_image؛ وimage_urls وvideo_urls وaudio_urls هي قوائم المراجع الثلاث؛ وعناصر frame_images التي تكون قيمة frame_type فيها first_frame أو last_frame هي start_image وend_image؛ وعناصر input_references من النوع image_url أو video_url أو audio_url هي مراجع. استخدم اسمًا واحدًا لكل مُدخل. |
n | integer | اختياري | يجب أن تكون قيمته 1 أو ألا يُرسَل؛ فكل طلب يُنتج فيديو واحدًا بالضبط. |
generate_audio | boolean | اختياري | Defaults to true: Kling 3.0 scores the video itself. Send false for a silent result. |
seed · watermark | — | غير مدعوم | غير متاح في هذا النموذج: يُرفض أي seed أو watermark: true بالخطأ 400. |
request_id | string | حقل في الاستجابة | يُعيده استدعاء الإرسال، وهو المعرّف الوحيد الذي تقبله نقطتا نهاية الحالة والمحتوى. |
progress · estimated_seconds_remaining | integer | حقل في الاستجابة | تُعيدهما نقطة نهاية الحالة ما دامت قيمة status هي pending: يقدّر progress مدى تقدّم المهمة من 0 إلى 99، ويقدّر estimated_seconds_remaining عدد الثواني المتبقية؛ ولا يُضمَّن الأخير إلا عند توفر تقدير. وتصبح قيمة progress هي 100 عندما تصبح قيمة status هي done. |
video.url | string | حقل في الاستجابة | رابط تنزيل ملف MP4 المكتمل عندما تصبح قيمة status هي done: رابط من ArgoLink يمكن لأي شخص فتحه دون مفتاح API، لمدة 30 يومًا. |
usage | object | حقل في الاستجابة | يُعاد عندما تصبح قيمة status هي done: output_seconds وreference_video_seconds وbilled_seconds، وهو مجموعهما الذي تُحتسب عليه المهمة. |
Kling 3.0 مقارنة API بنماذج مماثلة
| النموذج | معرّف النموذج | المزوّد | السعر | الاستخدام الأنسب |
|---|---|---|---|---|
| Kling 3.0 | kling-3.0 | Kuaishou | $0.1134 / ثانية | Kuaishou Kling 3.0: 3 to 15 second clips at 720p, 1080p or 4K from a prompt, a first frame, or a first and a last frame, with or without a soundtrack |
| Seedance 2.5 | seedance-2.5 | ByteDance Seed | $0.0874 / ثانية | أقدر نماذج فيديو Seedance حتى الآن: مقاطع مدتها 30 ثانية، وحتى 50 ملفًا مرجعيًا، ودعم أصلي للمراجع التي تضم أشخاصًا حقيقيين دون موافقة يدوية أو تحقق إضافي |
| Grok Imagine Video 1.5 | grok-imagine-video-1.5 | xAI | $0.032 / ثانية | توليد فيديو بدقة 480p و720p و1080p، يُحتسب لكل ثانية من الناتج |
| Gemini Omni 1.2 Flash | gemini-omni-1.2-flash | $0.0215 / ثانية | Google Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, حتى 10 reference images and 3 reference videos, or as an edit of a video |
نماذج أخرى من هذا المزوّد
- Kling 4.0Kuaishou Kling 4.0: 3 to 30 second clips at 720p or 1080p from a prompt, or from حتى 10 reference images and 5 reference videos, with a soundtrack of its own$0.1256 / ثانية
- Kling 4.0 FlashKuaishou Kling 4.0 Flash: the quicker Kling 4.0, 3 to 20 second clips at 720p from a prompt, a first frame, or حتى 10 reference images and 5 reference videos, with a soundtrack of its own$0.07536 / ثانية
نماذج أخرى من النوع نفسه
- Seedance 2.5أقدر نماذج فيديو Seedance حتى الآن: مقاطع مدتها 30 ثانية، وحتى 50 ملفًا مرجعيًا، ودعم أصلي للمراجع التي تضم أشخاصًا حقيقيين دون موافقة يدوية أو تحقق إضافي$0.0874 / ثانية
- Grok Imagine Video 1.5توليد فيديو بدقة 480p و720p و1080p، يُحتسب لكل ثانية من الناتج$0.032 / ثانية
- Gemini Omni 1.2 FlashGoogle Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, حتى 10 reference images and 3 reference videos, or as an edit of a video$0.0215 / ثانية
- MAGI-2Sand AI's MAGI-2: 4 to 30 second 1080p clips with native sound, from a prompt or from حتى 10 reference images, 5 reference videos and 5 audio clips$0.072 / ثانية
Kling 3.0 الأسئلة الشائعة حول API
كيف يمكنني استدعاء Kling 3.0؟
Create an API key in the console and POST https://argolink.io/v1/videos/generations مع ضبط model على kling-3.0. The response carries request_id, the only job identifier: poll GET https://argolink.io/v1/videos/{request_id}, which reports progress and estimated_seconds_remaining while the job is pending, until status is done, then download the MP4 from GET https://argolink.io/v1/videos/{request_id}/content، وهو العنوان الذي تُعيده الحالة في video.url.
كم تبلغ تكلفة Kling 3.0؟
لكل ثانية من الناتج، بدءًا من $0.1134 per second at the lowest tier; each tier in the pricing table has its own per-second rate, multiplied by the video's length. كل مستوى 10% أقل من سعر القائمة الرسمي للثانية ($0.126 للثانية في أدنى مستوى). Only a completed video is billed; a failed or rejected job costs nothing.
ما أوضاع الإدخال التي يدعمها Kling 3.0؟
جميعها على نقطة النهاية نفسها: من نص إلى فيديو (موجّه وحده); first frame (start_image); first and last frames (start_image plus end_image on one aspect ratio). First-frame and first-and-last-frame videos take their aspect ratio from the first frame. Every asset is an HTTPS URL.
ما الذي لا يدعمه Kling 3.0؟
أكثر من فيديو واحد لكل طلب (يجب أن تكون قيمة n هي 1 أو ألا تُرسَل)، أو أي seed، أو watermark: true؛ وكلها تُرجع 400. الناتج ملف بترميز H.264 بصيغة MP4 يحمل مسارًا صوتيًا مُولَّدًا ما لم تكن قيمة generate_audio هي false.
كيف تُحدَّد نسبة العرض إلى الارتفاع لفيديو الإطار الأول في Kling 3.0؟
Leave aspect_ratio out, or send adaptive, and the first frame decides: the video takes the closest of 16:9, 1:1, 9:16, so the frame is cropped as little as possible. The two frame modes take no fixed ratio; naming one is rejected. With first and last frames, the source images may have different ratios; the result adapts the last frame to the first.
هل تحتوي فيديوهات Kling 3.0 على صوت؟
نعم، افتراضيًا: Kling 3.0 scores the video itself. Send generate_audio: false for a silent result.