مستندات المطور UlazAI
فيديو HappyHorse API
مرجع هابي هورس
مستندات HappyHorse لـ T2V وI2V والإشارة إلى الفيديو وتحرير الفيديو
استخدم POST /api/v1/video-studio/generate/ مع أحد هذه النماذج الثابتة:
happyhorse_t2v, happyhorse_i2v, happyhorse_r2v,
أو happyhorse_videoedit. تدعم جميع أوضاع HappyHorse مقاطع مدتها من 3 إلى 15 ثانية،
720p أو 1080pوسير عمل حالة استوديو الفيديو.
نقاط النهاية الأساسية
POST /api/v1/video-studio/generate/
GET /api/v1/video-studio/status/{job_id}/
GET /api/v1/video-studio/history/
التسعير
720 بكسل: 33 الاعتمادات في الثانية الواحدة
1080p: 44 الاعتمادات في الثانية الواحدة
الحد الأدنى للطلب: 3 ثواني
قواعد التحقق من الصحة الخاصة بالوضع
| سبيكة نموذجية | وضع | مدة | المدخلات المطلوبة |
|---|---|---|---|
happyhorse_t2v |
النص إلى الفيديو | 3-15 ثانية | Prompt فقط. تم رفض مدخلات الوسائط المرجعية. |
happyhorse_i2v |
الصورة إلى الفيديو | 3-15 ثانية | يتطلب input_image_urls. يتم قبول ما يصل إلى عنواني URL للصورة. |
happyhorse_r2v |
الإشارة إلى الفيديو | 3-15 ثانية | يتطلب input_image_urls. يتم قبول ما يصل إلى تسع صور مرجعية. |
happyhorse_videoedit |
تحرير الفيديو | 3-15 ثانية | يتطلب واحدًا على الأقل input_video_urls قيمة. |
طلب مقتطفات
النص إلى الفيديو
{
"model_slug": "happyhorse_t2v",
"prompt": "A miniature cardboard city wakes up at night as tiny lights turn on one by one",
"duration_seconds": 5,
"quality_mode": "1080p",
"aspect_ratio": "16:9"
}
الصورة إلى الفيديو
{
"model_slug": "happyhorse_i2v",
"prompt": "Animate the reference into a premium cinematic product reveal with a slow push-in",
"input_image_urls": ["https://media.ulazai.com/examples/product-reference.jpg"],
"duration_seconds": 5,
"quality_mode": "1080p",
"aspect_ratio": "16:9"
}
الإشارة إلى الفيديو
{
"model_slug": "happyhorse_r2v",
"prompt": "Keep the same character identity and build a short cinematic action beat",
"input_image_urls": ["https://media.ulazai.com/examples/character-reference.jpg"],
"duration_seconds": 8,
"quality_mode": "720p",
"aspect_ratio": "9:16"
}
تحرير الفيديو
{
"model_slug": "happyhorse_videoedit",
"prompt": "Regrade the source clip with brighter highlights and smooth commercial motion",
"input_video_urls": ["https://media.ulazai.com/examples/source-video.mp4"],
"duration_seconds": 8,
"quality_mode": "720p"
}