Wan API

Wan Video Generation
Turn assets into shots

Turn text and reference assets into videos with first- and last-frame control and multimedia references. Integrate with your creative workflow through a unified API.

2–30sAutomatic or specified duration
480P–1080PThree output options
7 media typesUnified media input
Input + OutputBilled by actual video seconds

Define shots with assets, not just descriptions

One interface covers text-to-video, first and last frames, reference images, reference videos, and audio-driven generation, automatically selecting the appropriate generation mode.

Text creation

Generate complete shots from prompts, ideal for concept videos, social content, and video drafts.

First- and last-frame control

Lock the opening and closing frames for greater control over motion, subject position, and transition direction.

Multimedia references

Use images, videos, or audio as references for characters, movement, style, and rhythm without switching interfaces.

first_framelast_framereference_imagereference_videoreference_audiofilelink

Real production videos

Both videos were generated by the production API and transferred to AceDataCloud CDN. Play them directly to verify.

Text to video · 480P · 2sA red sphere in a white studio, filmed from a fixed camera. Output: 2 seconds.
Reference video output · 480P · 2sUses a 2-second reference video to produce a 2-second output, billed for 4 seconds total.

Keep the request structure simple; let the assets define the mode

curl -X POST 'https://api.acedata.cloud/wan/videos' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "wan3.0-video",
    "prompt": "A red ball on a white studio floor",
    "duration": 2,
    "resolution": "480P",
    "ratio": "16:9",
    "async": true
  }'

Submission response JSON

{
  "task_id": "9478f7ee-5ebb-47ac-ab49-63fbb42d8233"
}

Retrieve the original task

curl --request POST "https://api.acedata.cloud/wan/tasks" \
  --header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"action":"retrieve","id":"YOUR_TASK_ID"}'

Processing response JSON

The following illustrates the response structure; use the task ID and output returned by this request.

{
  "id": "9478f7ee-5ebb-47ac-ab49-63fbb42d8233"
}

Completion response JSON

{
  "id": "9478f7ee-5ebb-47ac-ab49-63fbb42d8233",
  "response": {
    "success": true,
    "task_id": "9478f7ee-5ebb-47ac-ab49-63fbb42d8233",
    "data": {
      "status": "succeeded",
      "video_url": "https://cdn.acedata.cloud/assets/examples/wan/92c7a0fc-5942-4539-81ee-37833c1e3c3b-aedee115fc1e.mp4"
    }
  }
}
{
  "success": true,
  "task_id": "9478f7ee-5ebb-47ac-ab49-63fbb42d8233",
  "data": {
    "status": "succeeded",
    "usage": {
      "input_video_duration": 0,
      "output_video_duration": 2,
      "SR": 480,
      "ratio": "16:9"
    }
  },
  "cost": {"list_amount": 1.16}
}

Submission returns a task ID; the corresponding completed historical task result is shown on the right. Retrieve asynchronous tasks through the Tasks API; task retrieval is free. Historical charges are based on the price at the time of the request; see the pricing page for current rates.

Price display and final billing serve distinct purposes

The Pricing tab displays standard per-second rates by resolution; the final bill is calculated using the actual input video duration plus the successful output duration in seconds from the response usage.

480P

Suitable for quick previews, shot drafts, and mobile content.

720P

Suitable for everyday publishing, social content, and product demos.

1080P

Suitable for high-quality finished videos, detailed footage, and large-screen displays.

Per-second prices in Credits and USD are displayed in real time on this page's Pricing tab, rather than duplicated as static prices in the introduction.

Frequently Asked Questions

What does duration=-1 mean?

Enables intelligent duration. Pre-authorization is checked against a 30-second upper limit, but final billing is based on actual usage.

How are reference videos billed?

The duration of input reference videos is added to the duration of successfully generated output videos; image, audio, and text inputs do not add to the video duration.

Where can I find the complete media fields?

See the Wan Video Generation API documentation; refer to that document for field constraints and response structures.

Integrate multimodal video generation into your workflow

Start with a text prompt, then add frame, video, image, and audio references as needed.

Get an API Key