🔥 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リップシンク

Muapi REST API経由でWan 2.2 Speech to Videoを使用して音声とリップシンク。従量課金制 — サブスクリプション不要。

インタラクティブなモデルコントロール

MuAPIの低遅延APIを通じてwan2.2-speech-to-videoモデルを統合。従量課金制で柔軟かつスケーラブルに利用可能です。

Wan 2.2 Speech to Video APIリファレンス

エンドポイント

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

x-api-keyヘッダーにMuapi APIキーを設定してタスクを送信し、 https://api.muapi.ai/api/v1/predictions/{request_id}/result ステータスがcompletedになるまでポーリングします。

パラメータ

名前型必須説明
promptstringいいえ生成する動画の内容を記述するプロンプト。
image_urlstringはい処理の開始点となる入力元画像のURLまたはBase64データ。
audio_urlstringはい生成プロセスを適切に制御するためのパラメータ設定(The URL for uploading audio files.)。
resolutionstringいいえ出力メディアの解像度(720p、1080p、4Kなど)。選択肢: 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"

Pythonの例

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.