kling-v4-flashافتراضيKling 4.0 Flash API — كيفية الاتصال والدفع
Kling 4.0 Flash — الفئة الأسرع والأقل تكلفة من Kling 4.0: من نص، أو من إطارات رئيسية (الأول والأخير وما يصل إلى 8 إطارات وسطية)، أو من مراجع (ما يصل إلى 10 صور و5 مقاطع فيديو و7 عناصر و3 أصوات). بدقة 720p، ومدة 3–20 ثانية، وصوت مدمج. تُحتسب التكلفة لكل ثانية؛ وعند استخدام فيديو إدخال، تُحتسب ثوانيه أيضًا.
مقارنة القنوات
آخر 7 أيام
| القناة | السعر |
|---|---|
Pixel kling-v4-flashافتراضي | يبدأ من $0.109286 / ث |
أنشئ النتيجة التي تحتاج إليها
kling-v4-flashما هو Kling 4.0 Flash
Kling 4.0 Flash — الفئة الأسرع والأقل تكلفة من Kling 4.0: من نص، أو من إطارات رئيسية (الأول والأخير وما يصل إلى 8 إطارات وسطية)، أو من مراجع (ما يصل إلى 10 صور و5 مقاطع فيديو و7 عناصر و3 أصوات). بدقة 720p، ومدة 3–20 ثانية، وصوت مدمج. تُحتسب التكلفة لكل ثانية؛ وعند استخدام فيديو إدخال، تُحتسب ثوانيه أيضًا.
ملخص العقد
- الإدخال
- text, image, video, audio
- الإخراج
- video
- الوضع
- غير متزامن (مهمة + استعلام دوري)
- الاستعلام عن الحالة
- كل 3 ثوانٍ · حتى 600 ثانية
نقاط القوة
- التسعير: لكل ثانية
- المدخلات: نص، صورة، فيديو، صوت
- 3 خيارات قابلة للتهيئة
- مفتاح API واحد لتوليد الوسائط
أين يُستخدم
- مقاطع وسائل التواصل الاجتماعي
- العروض الترويجية وتسلسلات العناوين
- تحريك الصور الثابتة
- لوحات القصص والرسوم التحريكية
عقد API
تتم عملية الإنشاء بشكل غير متزامن: أنشئ مهمة، ثم استعلم عن حالتها حتى تكتمل.
- إنشاء مهمة
- POST /api/media/generate
- التحقق من الحالة
- GET /api/media/jobs/{jobId}
- الإدخال
- text, image, video, audio
- الإخراج
- video
- الاستعلام الدوري
- كل 3 ثوانٍ · حتى 600 ثانية
- المصادقة
- Authorization: Bearer sk-pv-…
مثال على طلب
مرّر مفتاحك في ترويسة Bearer. تُرجع API jobId للاستعلام عن الحالة.
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"kling-v4-flash","prompt":"a beautiful landscape","opts":{"input":"text-to-video","aspect_ratio":"auto","resolution":"720p","duration":5}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "kling-v4-flash",
"prompt": "a beautiful landscape",
"opts": {
"input": "text-to-video",
"aspect_ratio": "auto",
"resolution": "720p",
"duration": 5
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);معلمات طلب API
معلمات الطلبات إلى Kling 4.0 Flash عبر GetVibe API.
promptمطلوبimage_urlvideo_urlaudio_urlinputaspect_ratioresolutiondurationlast_frame_urlkeep_original_soundkeyframe_urlsimage_file_idimage_base64last_frame_file_idreference_image_urlsreference_video_urlselementsvoicesreference_image_file_idsreference_video_file_ids| المعلمة | النوع | القيم | الافتراضي | السعر |
|---|---|---|---|---|
promptمطلوب | text | text description | required | — |
image_url | URL | Public image URL | — | — |
video_url | URL | Public video URL | — | — |
audio_url | URL | Public audio URL | — | — |
input | option selection | Text → video (default) · Keyframes → video · Reference → video | نص → فيديو | Included in the base price |
aspect_ratio | option selection | Auto (default) · 16:9 · 9:16 · 1:1 · 21:9 | تلقائي | Included in the base price |
resolution | option selection | 720p (default) | 720p | Included in the base price |
duration | text / number | any value | — | Included in the base price |
last_frame_url | text / number | any value | — | Included in the base price |
keep_original_sound | yes/no | Yes · No (default) | لا | Included in the base price |
keyframe_urls | Array<URLs>, 0–8 items | Public HTTP(S) URLs | — | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
last_frame_file_id | text | Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
reference_image_urls | Array<URLs>, 0–10 items | Public HTTP(S) URLs | — | Included in the base price |
reference_video_urls | Array<URLs>, 0–5 items | Public HTTP(S) URLs | — | Included in the base price |
elements | Array<objects>, 0–7 items | object: name, image_urls, video_url, tag, description, voice_url | — | Included in the base price |
voices | Array<objects>, 0–3 items | object: name, audio_url | — | Included in the base price |
reference_image_file_ids | Array<strings> | List of values | — | Included in the base price |
reference_video_file_ids | Array<strings> | List of values | — | Included in the base price |
الطلب: POST https://getvibeapi.com/api/media/generate. الأسعار بالدولار الأمريكي.
سعر Kling 4.0 Flash
تكلفة Kling 4.0 Flash: من $0.109286 per second. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي، وتظهر التكلفة النهائية في استجابة API (priceRub). الدفع بالدولار الأمريكي، دون اشتراكات.
تكلفة الطلب الافتراضي
عند عدم إرسال أي معلمات، يستخدم الطلب هذه القيم: Source material — Text → video, Frame format — Auto, Keep the reference video sound — No. تبلغ تكلفة هذا الطلب $0.109286.
القنوات والأسعار لكل مجموعة من المعلمات
لكل قناة، سعر كل مجموعة من المعلمات. هذا هو المبلغ المحدد الذي تُحاسَب عليه عملية الإنشاء الناجحة، وهو الرقم نفسه الوارد في الجدول القابل للقراءة آليًا المرتبط أدناه.
Pixelkling-v4-flashيبدأ من $0.109286 / ثأسعار دقيقة
| المدخلات \ نسبة العرض إلى الارتفاع | تلقائي | 16:9 | 9:16 | 1:1 | 21:9 | — |
|---|---|---|---|---|---|---|
| نص → فيديو | $0.109286 / ث | $0.109286 / ث | $0.109286 / ث | $0.109286 / ث | $0.109286 / ث | — |
| الإطارات الرئيسية → فيديو | — | — | — | — | — | $0.109286 / ث |
| مرجع → فيديو | $0.109286 / ث | $0.109286 / ث | $0.109286 / ث | $0.109286 / ث | $0.109286 / ث | — |
كل مجموعة بصيغة JSON: /api/media/price-table?model=kling-v4-flash
README
يحتوي العقد القابل للقراءة آليًا لـ Kling 4.0 Flash على مخطط الطلب، والعمليات، والحدود، وأمثلة الاستطلاع والاستجابة.
# Kling 4.0 Flash
نموذج عام: kling-v4-flash
إنشاء مهمة: POST /api/media/generate
التحقق من الحالة: GET /api/media/jobs/{jobId}
## معلمات الإدخال
- `prompt` (text): text description; افتراضي: required
- `image_url` (URL): Public image URL; افتراضي: —
- `video_url` (URL): Public video URL; افتراضي: —
- `audio_url` (URL): Public audio URL; افتراضي: —
- `input` (option selection): Text → video (default) · Keyframes → video · Reference → video; افتراضي: Text → video
- `aspect_ratio` (option selection): Auto (default) · 16:9 · 9:16 · 1:1 · 21:9; افتراضي: Auto
- `resolution` (option selection): 720p (default); افتراضي: 720p
- `duration` (text / number): any value; افتراضي: —
- `last_frame_url` (text / number): any value; افتراضي: —
- `keep_original_sound` (yes/no): Yes · No (default); افتراضي: No
- `keyframe_urls` (Array<URLs>, 0–8 items): Public HTTP(S) URLs; افتراضي: —
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); افتراضي: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; افتراضي: —
- `last_frame_file_id` (text): Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…); افتراضي: —
- `reference_image_urls` (Array<URLs>, 0–10 items): Public HTTP(S) URLs; افتراضي: —
- `reference_video_urls` (Array<URLs>, 0–5 items): Public HTTP(S) URLs; افتراضي: —
- `elements` (Array<objects>, 0–7 items): object: name, image_urls, video_url, tag, description, voice_url; افتراضي: —
- `voices` (Array<objects>, 0–3 items): object: name, audio_url; افتراضي: —
- `reference_image_file_ids` (Array<strings>): List of values; افتراضي: —
- `reference_video_file_ids` (Array<strings>): List of values; افتراضي: —
## الأنواع العامة
- `kling-v4-flash`: Pixelالأسئلة الشائعة حول واجهة برمجة تطبيقات Kling 4.0 Flash
كم تبلغ تكلفة Kling 4.0 Flash؟
سعر Kling 4.0 Flash: من $0.109286 per second. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي.
هل يتوافق مع OpenAI SDK؟
نعم، واجهة برمجة التطبيقات متوافقة بالكامل مع OpenAI. ما عليك سوى تغيير base_url إلى https://getvibeapi.com/v1 وإضافة مفتاحك — وستبقى بقية الشفرة كما هي.
اربط Kling 4.0 Flash الآن
أنشئ حسابًا خلال دقيقة، وادفع حسب الاستخدام، واستفد من الشفرة الجاهزة أعلاه.
الحصول على مفتاح API