lipsync-2-pro:flowافتراضيLipsync 2 PRO API — كيفية الاتصال والدفع
Lipsync-2-pro — مزامنة حركة الشفاه لفيديو موجود مع صوت جديد. يتطلب video_url وaudio_url. طول الإخراج مع sync_mode=cut_off (الافتراضي) هو min(video, audio). السعر لكل ثانية من فيديو الإخراج.
مقارنة القنوات
آخر 7 أيام
| القناة | السعر |
|---|---|
Flow lipsync-2-pro:flowافتراضي | يبدأ من $0.119 / ث |
أنشئ النتيجة التي تحتاج إليها
lipsync-2-pro:flowيعرض هذا النموذج الحد الأدنى لسعره فقط في الكتالوج.
ما هو Lipsync 2 PRO
Lipsync-2-pro — مزامنة حركة الشفاه لفيديو موجود مع صوت جديد. يتطلب video_url وaudio_url. طول الإخراج مع sync_mode=cut_off (الافتراضي) هو min(video, audio). السعر لكل ثانية من فيديو الإخراج.
ملخص العقد
- الإدخال
- video, audio
- الإخراج
- video
- الوضع
- غير متزامن (مهمة + استعلام دوري)
- الاستعلام عن الحالة
- كل 3 ثوانٍ · حتى 600 ثانية
نقاط القوة
- التسعير: لكل ثانية
- المدخلات: فيديو، صوت
- 5 خيارات قابلة للتهيئة
- مفتاح API واحد لتوليد الوسائط
أين يُستخدم
- مقاطع وسائل التواصل الاجتماعي
- المواد الترويجية وتسلسلات العناوين
- تحريك الصور الثابتة
- لوحات القصص والمخططات المتحركة
عقد API
تتم عملية الإنشاء بشكل غير متزامن: أنشئ مهمة، ثم استعلم عن حالتها حتى تكتمل.
- إنشاء مهمة
- POST /api/media/generate
- التحقق من الحالة
- GET /api/media/jobs/{jobId}
- الإدخال
- 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":"lipsync-2-pro:flow","opts":{"video_url":"https://example.com/video_url.mp4","audio_url":"https://example.com/audio_url.mp3","sync_mode":"cut_off"}}'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": "lipsync-2-pro:flow",
"opts": {
"video_url": "https://example.com/video_url.mp4",
"audio_url": "https://example.com/audio_url.mp3",
"sync_mode": "cut_off"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);معلمات طلب API
معلمات الطلبات إلى Lipsync 2 PRO عبر GetVibe API.
video_urlaudio_urlsync_modevideo_file_idvideo_base64audio_file_idaudio_base64| المعلمة | النوع | القيم | الافتراضي | السعر |
|---|---|---|---|---|
video_url | URL | Public video URL | — | — |
audio_url | URL | Public audio URL | — | — |
sync_mode | option selection | Cut to the shorter (length = min) (default) · Loop the video (length = audio) · Ping-pong the video (length = audio) · Stretch the video (length = audio) · Pad with silence (length = max) | Cut to the shorter (length = min) | Included in the base price |
video_file_id | text | Alternative to video_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
video_base64 | text | Alternative to video_url: the file inline, as base64 or a data: URI | — | Included in the base price |
audio_file_id | text | Alternative to audio_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
audio_base64 | text | Alternative to audio_url: the file inline, as base64 or a data: URI | — | Included in the base price |
الطلب: POST https://getvibeapi.com/api/media/generate. الأسعار بالدولار الأمريكي.
سعر Lipsync 2 PRO
تكلفة Lipsync 2 PRO: من $0.119 per second. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي، وتظهر التكلفة النهائية في استجابة API (priceRub). الدفع بالدولار الأمريكي، دون اشتراكات.
تكلفة الطلب الافتراضي
عند عدم إرسال أي معلمات، يستخدم الطلب هذه القيم: When lengths differ — Cut to the shorter (length = min). تبلغ تكلفة هذا الطلب $0.119.
القنوات والأسعار لكل مجموعة من المعلمات
لكل قناة، سعر كل مجموعة من المعلمات. هذا هو المبلغ المحدد الذي تُحاسَب عليه عملية الإنشاء الناجحة، وهو الرقم نفسه الوارد في الجدول القابل للقراءة آليًا المرتبط أدناه.
Flowlipsync-2-pro:flowيبدأ من $0.119 / ثأسعار دقيقة
| السعر | السعر |
|---|---|
| Flow | $0.119 / ث |
السعر لكل ثانية من الفيديو المُنشأ. الرسوم هي هذا السعر × المدة الفعلية للنتيجة.
كل مجموعة بصيغة JSON: /api/media/price-table?model=lipsync-2-pro%3Aflow
README
يحتوي العقد القابل للقراءة آليًا لـ Lipsync 2 PRO على مخطط الطلب، والعمليات، والحدود، وأمثلة الاستطلاع والاستجابة.
# Lipsync 2 PRO
نموذج عام: lipsync-2-pro:flow
إنشاء مهمة: POST /api/media/generate
التحقق من الحالة: GET /api/media/jobs/{jobId}
## معلمات الإدخال
- `video_url` (URL): Public video URL; افتراضي: —
- `audio_url` (URL): Public audio URL; افتراضي: —
- `sync_mode` (option selection): Cut to the shorter (length = min) (default) · Loop the video (length = audio) · Ping-pong the video (length = audio) · Stretch the video (length = audio) · Pad with silence (length = max); افتراضي: Cut to the shorter (length = min)
- `video_file_id` (text): Alternative to video_url: the id of your own file from POST /v1/files (file-pv-…); افتراضي: —
- `video_base64` (text): Alternative to video_url: the file inline, as base64 or a data: URI; افتراضي: —
- `audio_file_id` (text): Alternative to audio_url: the id of your own file from POST /v1/files (file-pv-…); افتراضي: —
- `audio_base64` (text): Alternative to audio_url: the file inline, as base64 or a data: URI; افتراضي: —
## الأنواع العامة
- `lipsync-2-pro:flow`: Flowالأسئلة الشائعة حول واجهة برمجة تطبيقات Lipsync 2 PRO
كم تبلغ تكلفة Lipsync 2 PRO؟
سعر Lipsync 2 PRO: من $0.119 per second. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي.
هل يتوافق مع OpenAI SDK؟
نعم، واجهة برمجة التطبيقات متوافقة بالكامل مع OpenAI. ما عليك سوى تغيير base_url إلى https://getvibeapi.com/v1 وإضافة مفتاحك — وستبقى بقية الشفرة كما هي.
اربط Lipsync 2 PRO الآن
أنشئ حسابًا خلال دقيقة، وادفع حسب الاستخدام، واستفد من الشفرة الجاهزة أعلاه.
الحصول على مفتاح API