LogoWan API Docs
Homepage
X (Twitter)
Homepage

Get started

OverviewIntegration guideCheck balanceDelete a task

Wan models

Wan 3.0Wan 3.0 PrimeWan 3.0 ProWan 3.0 Prime Pro

Seedance models

Seedance 2.5Seedance 2.5 FlashSeedance 2.0Seedance 2.0 FastSeedance 2.0 Mini

Muse models

Muse Video API

Image models

Seedream 5.0 ProSeedream 5.5 API

Language models

Claude APIClaude Haiku 5.5Claude Sonnet 5.5Claude Opus 5.5Claude Fable 5.2GPT APIGPT Luna 6GPT Terra 6.1GPT Sol 6.1GPT Astra 6
X (Twitter)

Muse Video API

Generate 10–60s 720p videos with native sound from text or up to 9 reference images using Muse Video. Request fields, async task polling and live prices.

Muse Video generates one 720p MP4 clip with synchronized AAC sound from a text prompt and up to 9 optional reference image URLs. Clip duration runs from 10 to 60 seconds in 10-second increments.

Try the Playground · OpenAPI JSON · Integration tutorial

Authentication and endpoints

Pass your Wan API customer key as a Bearer token. One key accesses all available models and groups automatically.

MethodURLPurpose
POSThttps://api.wanapi.app/muse-video/v1/videos/generationsSubmit one Muse Video task
GEThttps://api.wanapi.app/muse-video/v1/tasks/{id}Poll that task until completed or failed

The model ID is muse-video. Both endpoints follow an asynchronous task contract: submit the POST payload once, persist the returned id, and poll the GET route until the task finishes. Do not automatically repeat a POST request after a client timeout.

Submit a text-to-video task

curl https://api.wanapi.app/muse-video/v1/videos/generations \
  -H "Authorization: Bearer $WAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "muse-video",
    "prompt": "Slow motion close-up of a ruby-throated hummingbird hovering at a red trumpet flower during light rain, droplets sparkling in soft backlight, gentle camera drift. Natural ambience: rain patter and wing hum. No text.",
    "aspect_ratio": "16:9",
    "duration": 10
  }'

An accepted submission returns a processing task immediately rather than video bytes:

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

Poll that id every 5 to 10 seconds:

curl https://api.wanapi.app/muse-video/v1/tasks/task_example \
  -H "Authorization: Bearer $WAN_API_KEY"

Keep task_example in durable storage if your worker restarts so polling can resume without creating a duplicate task.

Request parameters

ParameterTypeDefaultRules
modelstringrequiredMust be muse-video.
promptstringrequiredNon-empty string up to 20,000 characters. Required even when image_urls is supplied.
image_urlsURL arraynone0 to 9 public http(s) URLs (PNG, JPEG or WebP, ≤11 MB combined). Base64, data URIs and file uploads are rejected.
aspect_ratiostringauto (omit)One of 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3. Omit the field for auto framing; "auto" is rejected here.
sizestringnoneFraming alias accepting the 7 ratios above or "auto". Pixel strings such as 1280x720 are rejected. If both aspect_ratio and size are sent, aspect_ratio wins.
durationinteger or string1010, 20, 30, 40, 50 or 60 (strings such as "10" or "10s" are also accepted).
seconds, duration_secondsinteger or stringnoneAliases of duration. When multiple duration fields are sent together, their resolved values must match.
resolutionstring"720p"Optional; only "720p" is accepted. 480p, 1080p and 4K are rejected.
audiobooleantrueOptional; only true is accepted because every Muse Video output includes native sound.
ninteger1Optional; only 1 is accepted.

Muse Video has no nsfw_checker, content_filter, seed, first_frame, last_frame, reference_videos or reference_audios field.

Reference images and framing rules

Pass 1 to 9 public HTTP(S) URLs in image_urls without URL credentials (user:pass@), backslashes or login walls. Keep the combined payload of all referenced images within 11 MB in PNG, JPEG or WebP format.

{
  "model": "muse-video",
  "prompt": "The camera glides slowly along the misty lantern canal between floating market boats, lanterns swaying gently, ripples spreading across the water. Ambient water and soft market chatter. No text.",
  "image_urls": [
    "https://your-cdn.example/canal-source.webp"
  ],
  "duration": 10
}

When image_urls is non-empty:

  • At 10, 30, 40, 50 or 60 seconds, omitting aspect_ratio lets the model select framing automatically from the prompt and source image.
  • At 20 seconds, pass an explicit aspect_ratio (for example "16:9" or "9:16").

Completed and failed task responses

When generation finishes, status changes to "completed" and output.video_url points to the stored MP4 clip:

{
  "id": "task_example",
  "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_example/video.mp4?token=EXAMPLE&expires=1798552800"
  }
}

Download and archive the MP4 if you need permanent retention beyond the signed storage window. Deleting a completed task via DELETE /v1/tasks/{id} purges its stored video artifact and CDN cache entry.

If generation fails, status is "failed" with an error object (code and message), and the reserved quota is refunded automatically.

Pricing

Clip durationOutput specificationWan API price (USD)
10 seconds720p MP4 with native sound$0.06
20 seconds720p MP4 with native sound$0.12
30 seconds720p MP4 with native sound$0.18
40 seconds720p MP4 with native sound$0.24
50 seconds720p MP4 with native sound$0.30
60 seconds720p MP4 with native sound$0.36

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

Muse Video is billed strictly by requested clip duration in 10-second steps:

clip cost = (duration / 10) × live 10-second rate

Reference images (image_urls), aspect ratio choice and native audio do not add extra charges. Submission reserves the exact clip cost using the live gateway tariff snapshot; completion settles that exact amount, and failed tasks refund the reservation in full.

Errors and retry safety

Validation errors (400 invalid_request), authentication errors (401/403), insufficient quota (402 insufficient_balance) and rate limits (429 rate_limited) stop before creating a billable task.

Poll GET /muse-video/v1/tasks/{id} safely on transient 429 or 5xx responses. Never auto-retry POST /muse-video/v1/videos/generations when a connection drops or returns submission_unknown: check Task logs first. Accepted tasks wait for normal upstream completion; if a task receives no normal upstream status or delivery for three continuous hours, it fails and refunds automatically.

See the Muse Video API tutorial for a complete curl + Python polling workflow.

Seedance 2.0 Mini

Seedance 2.0 Mini API reference: video generation, frames and references, request examples, task polling, downloads and pricing.

Seedream 5.0 Pro

Seedream 5.0 Pro API reference: text-to-image, reference editing, layer decomposition, transparent PNG, request fields, responses and pricing.

Table of Contents

Authentication and endpointsSubmit a text-to-video taskRequest parametersReference images and framing rulesCompleted and failed task responsesPricingErrors and retry safety