🔥 Black Friday AI API deals are live· 🎬 Seedance 2.5 — 20% off, up to 42% below market, until Nov 30Ends in--d --:--:--See deals →

HappyHorse 1.1 Reference to Video API: تبدیل تصویر به ویدیو

برای تبدیل تصاویر به ویدیو از طریق REST API پلتفرم MuAPI از HappyHorse 1.1 Reference to Video استفاده کنید. پرداخت به ازای هر استفاده بدون اشتراک.

کنترل‌های تعاملی مدل

Happy Horse 1.1 Reference to Video generates video conditioned on 1-9 reference images plus a text prompt, with selectable 720p/1080p output resolution.

HappyHorse 1.1 Reference to Video API

نقطه پایانی (Endpoint)

POST https://api.muapi.ai/api/v1/happy-horse-1.1-reference-to-video

Muapi API x-api-key , https://api.muapi.ai/api/v1/predictions/{request_id}/result completed。

پارامترها

نام پارامترنوع دادهالزامیتوضیحات
promptstringبلهText description of the desired video. حداکثر تا 5,000 characters.
resolutionstringخیرOutput resolution. Price scales with resolution: 720p is cheaper, 1080p is more expensive.گزینه‌ها: 720p, 1080pپیش‌فرض: "720p"
images_listarrayبلهآدرس اینترنتی تصویر مرجع جهت هدایت استنتاج مدل.
aspect_ratiostringخیرنسبت ابعاد تصویر خروجی (مانند 16:9 یا 1:1).گزینه‌ها: 16:9, 9:16, 1:1, 4:3, 3:4پیش‌فرض: "16:9"
durationintخیرمدت زمان ویدیوی خروجی بر حسب ثانیه.پیش‌فرض: 5
seedintخیرسید تصادفی (Seed) برای بازتولید دقیق خروجی.پیش‌فرض: 0

CURL

REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/happy-horse-1.1-reference-to-video \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"<prompt>","images_list":[]}' | jq -r .request_id)

curl -s https://api.muapi.ai/api/v1/predictions/$REQUEST_ID/result -H "x-api-key: $MUAPI_API_KEY"

پایتون

import os, time, requests

API = "https://api.muapi.ai/api/v1"
headers = {"x-api-key": os.environ["MUAPI_API_KEY"]}

r = requests.post(f"{API}/happy-horse-1.1-reference-to-video", headers=headers, json={"prompt":"<prompt>","images_list":[]})
request_id = r.json()["request_id"]

while True:
    res = requests.get(f"{API}/predictions/{request_id}/result", headers=headers).json()
    if res["status"] == "completed":
        print(res["outputs"]); break
    if res["status"] == "failed":
        raise RuntimeError(res.get("error"))
    time.sleep(3)

Agent/MCP : llms.txt. دریافت کلید API: muapi.ai/access-keys.