🔥 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 Video Edit API: ویرایش ویدیو با هوش مصنوعی

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

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

Happy Horse 1.1 Video Edit modifies an existing video using a natural-language instruction, with selectable 720p/1080p output resolution.

HappyHorse 1.1 Video Edit API

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

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

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

پارامترها

نام پارامترنوع دادهالزامیتوضیحات
promptstringبلهتنظیم پارامتر Edit instruction describing the change to apply to the video. جهت هدایت دقیق فرآیند تولید مدل.
resolutionstringخیرOutput resolution. Price scales with resolution: 720p is cheaper, 1080p is more expensive.گزینه‌ها: 720p, 1080pپیش‌فرض: "720p"
video_urlstringبلهتعداد فریم‌ها در هر ثانیه (FPS) برای ویدیوی خروجی.
images_listarrayخیراختیاری 0-5 reference image URLs to guide the edit.
audio_settingstringخیرتنظیم پارامتر Audio strategy: 'auto' lets the model decide, 'origin' preserves source audio. جهت هدایت دقیق فرآیند تولید مدل.گزینه‌ها: auto, originپیش‌فرض: "auto"
seedintخیرسید تصادفی (Seed) برای بازتولید دقیق خروجی.پیش‌فرض: 0

CURL

REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/happy-horse-1.1-video-edit \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"<prompt>","video_url":"https://example.com/your-video_url"}' | 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-video-edit", headers=headers, json={"prompt":"<prompt>","video_url":"https://example.com/your-video_url"})
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.

HappyHorse 1.1 Video Edit API: ویرایش ویدیو با هوش مصنوعی