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

Wan 2.2 Speech to Video API: AI Lipsync

Sync lips to audio with Wan 2.2 Speech to Video via the Muapi REST API. Pay per generation — no subscription needed.

การควบคุมโมเดลแบบโต้ตอบ

โมเดล wan2.2-speech-to-video มีให้บริการบน MuAPI พร้อมการเรียกเก็บเงินตามการใช้งานที่ยืดหยุ่นและรองรับการทำงานพร้อมกันสูง

Wan 2.2 Speech to Video ข้อมูลอ้างอิง API

จุดสิ้นสุด

POST https://api.muapi.ai/api/v1/wan2.2-speech-to-video

ส่งงานด้วยคีย์ Muapi API ของคุณในส่วนหัว x-api-key จากนั้นสำรวจความคิดเห็น https://api.muapi.ai/api/v1/predictions/{request_id}/result จนกว่าสถานะจะเสร็จสมบูรณ์

พารามิเตอร์

ชื่อประเภทจำเป็นคำอธิบาย
promptstringไม่วิดีโอพร้อมท์
image_urlstringใช่ป้อน URL รูปภาพ
audio_urlstringใช่URL เสียง
resolutionstringไม่ความละเอียดวิดีโอตัวเลือก: 480p, 720pค่าเริ่มต้น: "480p"

ตัวอย่าง CURL

REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/wan2.2-speech-to-video \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image_url":"https://example.com/your-image_url","audio_url":"https://example.com/your-audio_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}/wan2.2-speech-to-video", headers=headers, json={"image_url":"https://example.com/your-image_url","audio_url":"https://example.com/your-audio_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)

เอกสารฉบับเต็มและการรวมตัวแทน/MCP: llms.txt. รับคีย์ API ได้ที่ muapi.ai/access-keys.