🔥 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 3.0 Reference to Video API: AI Image-to-Video

Animate images to video with Wan 3.0 Reference to Video via the Muapi REST API. Pay per generation — no subscription needed.

Interaktywne sterowanie modelem

Model wan3.0-reference-to-video jest dostępny w MuAPI z elastycznym rozliczaniem według zużycia i wysoką współbieżnością.

Wan 3.0 Reference to Video Dokumentacja API

Punkt końcowy

POST https://api.muapi.ai/api/v1/wan3.0-reference-to-video

Prześlij zadanie, używając klucza Muapi API w nagłówku x-api-key, a następnie odpytuj https://api.muapi.ai/api/v1/predictions/{request_id}/result do czasu zakończenia stanu.

Parametry

ImięWpiszWymaganeOpis
promptstringTakwideo. .
images_listarrayNieUp to 10 reference images for visual coherence guidance.
videos_listarrayNieUp to 5 reference video clips (MP4/MOV, 1-15s each); total reference + generated duration must not exceed 30s.
audios_listarrayNieUp to 5 reference audio clips (total duration up to 15s) for soundtrack synchronization.
resolutionstringNierozdzielczość wyjścia wideo.Opcje: 480p, 720p, 1080pDomyślne: "720p"
aspect_ratiostringNiewyjście wideo.Opcje: adaptive, 16:9, 9:16, 1:1, 4:3, 3:4Domyślne: "16:9"
durationintegerNieczas trwania filmu () .Domyślne: 5
thinking_modebooleanNiedla przepływów pracy żądań/ankiet i zdarzeń wysyłanych przez serwerDomyślne: false
enable_audiobooleanNiewideoaudio.Domyślne: true
seedintegerNienasiona. -1 nasiono.Domyślne: -1

przykład cURL

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

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

Przykład Pythona

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}/wan3.0-reference-to-video", headers=headers, json={"prompt":"<prompt>"})
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)

Pełna dokumentacja i integracja agenta/MCP: llms.txt. Zdobądź klucz API pod adresem muapi.ai/access-keys.