LogoWan API
  • Models
  • Developers
  • Pricing
  • API Docs
  • Guides
Muse Video API tutorial: generate 720p clips with sound
11/29/2026

Muse Video API tutorial: generate 720p clips with sound

Submit a Muse Video task, poll GET /muse-video/v1/tasks/{id}, pass up to 9 reference image URLs and handle 20s ratio rules. Check 10–60s live clip prices.

Muse Video generates 720p MP4 clips with native AAC sound in fixed 10-second increments from 10 to 60 seconds. On Wan API, you submit one JSON request with model: "muse-video" to POST https://api.wanapi.app/muse-video/v1/videos/generations, persist the returned task id, and poll GET https://api.wanapi.app/muse-video/v1/tasks/{id} until output.video_url is ready. Every call requires a non-empty text prompt and optionally accepts up to 9 public HTTP(S) reference images in image_urls. 1 2

Meta Superintelligence Labs introduced Muse Video on July 7, 2026 inside the Meta AI consumer app and web experience rather than as a self-serve developer console endpoint. 1 Also note the naming collision in open-source search results: Meta's muse-video model has no relation to Tencent's 2024 MuseV, MuseTalk, or MusePose GitHub repositories, which are older silent diffusion pipelines built around ControlNet pose conditioning. If your application needs Meta's joint 720p video-and-sound model over HTTP, this guide walks through a complete submission, polling, multi-reference, and error-handling setup.

You can inspect and test the exact same JSON schema interactively in the Muse Video Playground before wiring server code, or review field definitions in the Muse Video API reference.

10-second 720p widescreen Muse Video sample with synchronized rain and wing-hum audio, generated from the prompt below.

Submit your first 10-second clip once

Create a customer key in API Keys and store it on your backend as WAN_API_KEY. Customer keys on Wan API use automatic group routing, so the same Bearer token calls muse-video, Wan 3.0, Seedance, Seedream, and chat models without separate key scopes.

Start with a 10-second clip—the shortest and lowest-cost unit—and save the payload as muse-request.json:

{
  "model": "muse-video",
  "prompt": "Slow motion close-up of a ruby-throated hummingbird hovering at a red trumpet flower during light rain, wings blurring, droplets sparkling in soft backlight, shallow depth of field, gentle camera drift. Natural ambience: rain patter and the hum of wings. No text.",
  "aspect_ratio": "16:9",
  "duration": 10
}

Submit the file with --retry 0 so curl never resends a potentially accepted generation POST on a slow network hop:

curl --fail-with-body --retry 0 --max-time 90 \
  https://api.wanapi.app/muse-video/v1/videos/generations \
  -H "Authorization: Bearer $WAN_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @muse-request.json \
  -o muse-submitted.json

An accepted submission returns HTTP 200 with a task envelope:

{
  "id": "task_01jdx9m8q4example",
  "model": "muse-video",
  "status": "processing",
  "created_at": 1795900800
}

Persist the entire muse-submitted.json record—or at minimum id—in your database or job queue before polling. If the connection drops before you receive an HTTP status code, check Task logs in the dashboard before issuing another POST. Retrying a blind POST can create a second paid video task.

Poll the task ID and archive the MP4

Video-with-sound synthesis across 10 to 60 seconds runs asynchronously. Poll GET /muse-video/v1/tasks/{id} every 5 to 10 seconds using the same WAN_API_KEY. Because GET polling is idempotent, you can safely retry 429 or 5xx read responses and resume after worker restarts.

import json
import os
import time
import urllib.error
import urllib.request
from pathlib import Path

submitted = json.loads(Path("muse-submitted.json").read_text(encoding="utf-8"))
task_id = submitted["id"]
poll_url = f"https://api.wanapi.app/muse-video/v1/tasks/{task_id}"
deadline = time.monotonic() + 900  # 15-minute local wait window

while time.monotonic() < deadline:
    req = urllib.request.Request(
        poll_url,
        headers={"Authorization": f"Bearer {os.environ['WAN_API_KEY']}"},
    )
    try:
        with urllib.request.urlopen(req, timeout=30) as resp:
            task = json.load(resp)
    except urllib.error.HTTPError as err:
        if err.code != 429 and err.code < 500:
            raise
        time.sleep(6)
        continue
    except (urllib.error.URLError, TimeoutError):
        time.sleep(6)
        continue

    if task.get("id") != task_id:
        raise RuntimeError(f"Task ID mismatch: expected {task_id}")
    if task.get("status") == "failed":
        err_msg = task.get("error", {}).get("message", "Generation failed")
        raise RuntimeError(err_msg)
    if task.get("status") == "completed":
        video_url = task["output"]["video_url"]
        print("Completed MP4:", video_url)
        break

    time.sleep(6)
else:
    raise TimeoutError(f"Task {task_id} is still processing; resume polling later.")

When status reaches "completed", the response includes finished_at and output.video_url:

{
  "id": "task_01jdx9m8q4example",
  "model": "muse-video",
  "status": "completed",
  "created_at": 1795900800,
  "finished_at": 1795900894,
  "output": {
    "video_url": "https://media.wanapi.app/flexible/v1/expires/2026-12/20261229T14/wanapi-task_01jdx9m8q4example/video.mp4?token=EXAMPLE&expires=1798552800"
  }
}

Wan API copies finished Muse Video clips to signed CDN storage so temporary upstream download links do not expire mid-session. Download the MP4 to your own object bucket if you need long-term retention, and call DELETE /v1/tasks/{id} when you want the stored MP4 deleted and purged from CDN cache immediately.

Animate 1 to 9 reference images without Base64 errors

Muse Video uses a single image_urls array for both single-image animation and multi-reference composition. Pass 1 URL when animating an opening illustration or product photo, or pass 2 to 9 URLs when combining a character sheet, prop close-up, and background environment in one shot. 2

Every reference payload must obey four pre-submission checks:

  1. prompt stays mandatory. Unlike frame-only animators that allow empty text, Muse Video rejects blank or whitespace-only prompts even when image_urls contains references. Describe both camera motion and expected ambient sound.
  2. Public HTTP(S) URLs only. Each entry must be a direct http:// or https:// URL without embedded user:password@ credentials, backslashes, or authentication walls. Inline Base64 strings, data: URIs, and multipart file uploads are rejected with HTTP 400 before quota is reserved.
  3. Format and size ceiling. Use PNG, JPEG, or WebP files whose combined payload across all URLs does not exceed 11 MB.
  4. No video or audio reference files. image_urls accepts still images only. If your workflow requires motion transfer from a reference MP4 or lip-sync from an audio track, use Wan 3.0 or Seedance 2.5 instead.

Here is a single-reference payload that animates a canal illustration while preserving its wide framing automatically:

{
  "model": "muse-video",
  "prompt": "The camera glides slowly along the misty lantern canal between the floating market boats, lanterns swaying gently, steam rising from bowls, ripples spreading across the water, the cat on the bridge turning its head. Ambient sounds of water, soft chatter and distant music. No text.",
  "image_urls": [
    "https://your-cdn.example/canal-source.webp"
  ],
  "duration": 10
}

When passing multiple references—for example a protagonist portrait, a vintage bicycle, and a rainy cobblestone street—state each asset's role explicitly in prompt so the model knows which image defines character identity and which defines scenery.

Handle aspect ratios, size, and the 20-second reference rule

Framing parameters in Muse Video trip up callers migrating from OpenAI-style video or image endpoints because pixel dimensions and "auto" behave differently across aspect_ratio and size.

FieldAccepted valuesAuto framingInvalid examples
aspect_ratio1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3Omit aspect_ratio completely"auto", "21:9", "1280x720"
sizeSame 7 ratios plus "auto"Pass "auto" or omit"720p", "1280x720", "1024x1024"

If a request sends both aspect_ratio and size, aspect_ratio takes precedence. Sending "aspect_ratio": "auto" returns HTTP 400 (aspect_ratio: must be 1:1, 16:9, 9:16, 4:3, 3:4, 3:2 or 2:3; omit it for auto). If your existing client library always serializes a string field, map auto framing to "size": "auto" and omit aspect_ratio.

Watch out for one duration-specific rule when image_urls is non-empty:

  • At 10, 30, 40, 50, or 60 seconds, omitting aspect_ratio lets Muse Video infer framing automatically from your prompt and reference images.
  • At 20 seconds with one or more image_urls, you must supply an explicit ratio such as "aspect_ratio": "16:9" or "aspect_ratio": "9:16". The Muse Video Playground blocks 20-second auto-ratio reference submissions client-side so you catch this before sending a request.

Duration steps, aliases, and fixed 720p audio rules

Muse Video supports six discrete clip lengths: 10, 20, 30, 40, 50, and 60 seconds. Arbitrary integers such as 5, 8, or 15 are rejected before submission.

To ease SDK compatibility, the gateway accepts three field names for clip length—duration, seconds, and duration_seconds—as integers (20) or strings ("20", "20s"). Omitting all three defaults to 10. If your code populates more than one alias in the same JSON object, their normalized values must match; sending {"duration": 10, "seconds": 20} fails immediately with HTTP 400 rather than guessing which duration to bill.

Two output settings are intentionally locked by the model specification:

  • resolution: Only "720p" is supported (or omit the field). Requests asking for "480p", "1080p", or "4K" fail validation before billing.
  • audio: Every Muse Video clip synthesizes synchronized AAC sound alongside the video stream. You may omit audio or pass "audio": true, whereas "audio": false is rejected. If you need a silent video track downstream, strip or mute the AAC stream with ffmpeg -an after downloading the MP4 rather than passing audio: false in the API payload.

Pricing and reservation accounting

Pricing is currently unavailable. Refresh this page to try again.

Live gateway tariff; reference images (up to 9 URLs) add no extra charge.

Muse Video billing depends on one variable: requested output seconds.

total USD = (duration / 10) × live 10-second rate

Unlike multi-image editors that bill per input frame, attaching 1 to 9 URLs in image_urls adds zero surcharge on Muse Video. Choosing 9:16 vs 16:9 or auto framing also leaves the price unchanged.

At submission time, Wan API reads the live gateway tariff, snapshots groupRatio = 1, and reserves quota for your exact duration. When the task completes with a playable MP4 URL, that reservation settles with zero post-hoc adjustment. If validation fails before submission, nothing is deducted; if an accepted task fails upstream or goes three continuous hours without a normal status update, the gateway marks the task failed and refunds the full reservation automatically.

Validation checklist before going to production

Before shipping a backend worker against /muse-video/v1/videos/generations, verify five guardrails against the machine-readable Muse Video OpenAPI specification:

  • Validate inputs locally first: Reject empty prompts, prompts above 20,000 characters, image_urls arrays over 9 items, non-HTTP(S) links, and durations outside 10, 20, 30, 40, 50, 60.
  • Enforce explicit ratios on 20s reference runs: Require one of the seven supported ratios whenever image_urls.length > 0 and duration === 20.
  • Disable automatic POST retries: Set HTTP client retries to 0 on POST /muse-video/v1/videos/generations and persist the returned id before entering your polling loop.
  • Keep polling separate from web request timeouts: A 30-second or 60-second video task takes longer than a typical serverless HTTP response window; enqueue the saved task_id and poll GET /muse-video/v1/tasks/{id} from a background worker or client status route.
  • Pick sibling models when specs differ: Keep muse-video for 10–60s 720p clips with built-in sound, and route 1080p/4K shots or video-reference edits to Wan 3.0 Pro or Seedance 2.5.

Open the Muse Video model page to test prompts with live cost estimates, or copy the schema from the Muse Video API documentation.

References

  1. Meta Superintelligence Labs, Introducing Muse Video, published July 7, 2026.
  2. Wan API, Muse Video API reference and OpenAPI 3.1 schema, verified November 29, 2026.
All Posts

Author

avatar for Wan API
Wan API

Categories

  • Product
Submit your first 10-second clip oncePoll the task ID and archive the MP4Animate 1 to 9 reference images without Base64 errorsHandle aspect ratios, size, and the 20-second reference ruleDuration steps, aliases, and fixed 720p audio rulesPricing and reservation accountingValidation checklist before going to productionReferences

More Posts

Seedream 5.0 Pro layer separation: what it returns and how it is billed
Product

Seedream 5.0 Pro layer separation: what it returns and how it is billed

How Seedream 5.0 Pro layer separation works through the API: input rules, size options, the layer data it returns, and per-layer billing you can check first.

avatar for Wan API
Wan API
10/23/2026
Seedream 5.5 API tutorial: generate, edit and split images
Product

Seedream 5.5 API tutorial: generate, edit and split images

Call Seedream 5.5 once, poll its task, edit with references, create transparent PNGs and split images into layers. Check output sizes and live image prices.

avatar for Wan API
Wan API
11/12/2026
Cheapest Wan 3.0 API Pricing Per Second (2026)
Product

Cheapest Wan 3.0 API Pricing Per Second (2026)

Compare live Wan 3.0 API pricing per second across providers: $0.025/s to $0.100/s on Wan API (50% off Alibaba Singapore list), plus Prime and Pro rates.

avatar for Wan API
Wan API
12/02/2026

Wan API updates

Service updates and model news

Sign up for model news, service updates and API integration information.

LogoWan API

Wan 3.0 and Wan 3.0 Prime. Video generation for your next project.Independent platform. Not affiliated with or endorsed by Alibaba, Wan or ByteDance.

X (Twitter)
Featured on Findly.toolsFazierDang.aiFeatured on Twelve Tools
Models
  • Wan 3.0
  • Wan 3.0 Prime
  • Wan 3.0 Pro
  • Wan 3.0 Prime Pro
  • Seedance 2.5
  • Seedance 2.0
  • Seedance 2.0 Fast
  • Seedance 2.0 Mini
  • Seedance 2.5 Flash
  • Muse Video
  • Seedream 5.0 Pro
  • Seedream 5.5
  • Claude Haiku 5.5
  • Claude Sonnet 5.5
  • Claude Opus 5.5
  • Claude Fable 5.2
  • GPT Luna 6
  • GPT Terra 6.1
  • GPT Sol 6.1
  • GPT Astra 6
  • Pricing
Developers
  • Documentation
  • Wan 3.0 guide
  • FAQ
  • About Wan API
  • Contact Wan API
Legal
  • Privacy
  • Terms
  • Acceptable Use Policy
llms.txtllms-full.txtsitemap.xml
© 2026 Wan API. All rights reserved.