> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dreamto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Wan 3.0 Prime

> Wan 3.0 Prime: the high-speed version of Wan 3.0 with the same capabilities and faster end-to-end generation; text-to-video, image-to-video, omni reference, video editing and extension, native audio, up to 30 seconds and 1080P.

Wan 3.0 Prime (`wan3.0-video-prime`) is the high-speed version of [Wan 3.0](https://docs.dreamto.ai/en/video/models/wan-3-0.md): exactly the same capabilities with faster end-to-end generation, for quick turnarounds and batch iteration. One model covers text-to-video, first-frame and first/last-frame image-to-video, omni-reference generation, plus video editing and extension from a reference video, with natively generated synchronized audio. Output is 480P / 720P / 1080P, 2–30 seconds, in seven aspect ratios.

## Highlights

| Capability | Details |
| - | - |
| Omni reference | Combine up to 10 reference images, 5 reference videos and 5 reference audio clips; refer to them as "image 1", "video 1", "audio 1" |
| First / last frame | Use images exactly as the first frame, or first and last frames |
| Editing and extension | Modify a reference video, or continue it |
| Documents and web pages | Generate from documents (PDF, Office, Markdown, ...) or a public web page |
| Native audio | Synchronized audio by default; same price with or without |
| Long videos | Up to 30 seconds per task, or let the model choose the duration |

## Setup

| | Alibaba Cloud Model Studio (international) | DreamTo |
| - | - | - |
| Create | `POST https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis` | `POST https://api.dreamto.ai/api/v1/services/aigc/video-generation/video-synthesis` |
| Query | `GET https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v1/tasks/{task_id}` | `GET https://api.dreamto.ai/api/v1/tasks/{task_id}` |
| `model` | `wan3.0-video-prime` | Same |
| API Key | Model Studio API Key | API Key from the DreamTo console, in the `Authorization: Bearer` header |

Request and response bodies follow the official DashScope protocol, and creating a task also needs the `X-DashScope-Async: enable` header. Existing code works after changing the base URL and API Key; with the DashScope SDK set `base_http_api_url` to `https://api.dreamto.ai/api/v1`.

## Endpoints

| Endpoint | Purpose |
| - | - |
| [`POST /api/v1/services/aigc/video-generation/video-synthesis`](https://docs.dreamto.ai/en/api-reference/wan-3-0-prime/create-video-synthesis) | Create video generation task |
| [`GET /api/v1/tasks/{task_id}`](https://docs.dreamto.ai/en/api-reference/wan-3-0-prime/query-task) | Query task |

## Parameters

Values out of range return 400; no task is created or charged.

| Field | Values |
| - | - |
| `model` | `wan3.0-video-prime` |
| `parameters.resolution` | `480P` / `720P` / `1080P` (default) |
| `parameters.ratio` | `adaptive` (default) / `21:9` / `16:9` / `4:3` / `1:1` / `3:4` / `9:16` |
| `parameters.duration` | Integer `2`–`30` seconds (default `5`), or `-1` for smart duration; with input video, input plus output ≤ 30 seconds |
| Media | First frame ≤ 1, last frame ≤ 1, reference images ≤ 10, reference videos ≤ 5, reference audio ≤ 5, one document or web page |
| Media URLs | Public `http(s)` URL; images may also be Base64 |

## Pricing

Billed at the official Alibaba Cloud international prices, per second of video by output resolution; the model price in the console is authoritative. The billed duration is `usage.duration`, which adds the input video duration for editing, extension and reference videos. Audio costs the same on or off; failed or canceled tasks and invalid requests are not charged.

| Resolution | `wan3.0-video` | `wan3.0-video-prime` |
| - | - | - |
| 480P | \$0.05 / second | \$0.068 / second |
| 720P | \$0.10 / second | \$0.14 / second |
| 1080P | \$0.20 / second | \$0.28 / second |

## Quick start

Create a task to get a `task_id`, poll about every 15 seconds, and download `output.video_url` once `task_status` is `SUCCEEDED`.

```bash cURL theme={null}
# 1. Create the task
curl -X POST "https://api.dreamto.ai/api/v1/services/aigc/video-generation/video-synthesis" \
  -H "Authorization: Bearer $DREAMTO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-DashScope-Async: enable" \
  -d '{
    "model": "wan3.0-video-prime",
    "input": {
      "prompt": "A small red paper boat floats down a rain-filled street gutter, close-up, soft morning light."
    },
    "parameters": {
      "resolution": "720P",
      "ratio": "16:9",
      "duration": 5
    }
  }'

# 2. Query the task
curl "https://api.dreamto.ai/api/v1/tasks/0385dc79-5ff8-4d82-bcb6-bc5ae0ed7a4f" \
  -H "Authorization: Bearer $DREAMTO_API_KEY"
```

```python Python theme={null}
import os
import time

import requests

BASE_URL = "https://api.dreamto.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"}

payload = {
    "model": "wan3.0-video-prime",
    "input": {
        "prompt": "A small red paper boat floats down a rain-filled street gutter, close-up, soft morning light."
    },
    "parameters": {
        "resolution": "720P",
        "ratio": "16:9",
        "duration": 5
    }
}

created = requests.post(f"{BASE_URL}/api/v1/services/aigc/video-generation/video-synthesis", headers={**HEADERS, "X-DashScope-Async": "enable"}, json=payload, timeout=60).json()
task_id = created["output"]["task_id"]
while True:
    output = requests.get(f"{BASE_URL}/api/v1/tasks/{task_id}", headers=HEADERS, timeout=60).json()["output"]
    if output["task_status"] in ("SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"):
        break
    time.sleep(15)
print(output["task_status"], output.get("video_url"), output.get("message"))
```

## Notes

* `task_id` and `request_id` are issued by DreamTo; `output.video_url` is a DreamTo download link (`/api/v1/video-files/...`) valid for 24 hours from task creation, so download and store videos promptly.
* Task IDs can be queried for 24 hours; tasks that do not exist, belong to another account or have expired return `task_status: UNKNOWN`.
* Temporary storage URLs such as `oss://` are not supported; use public `http(s)` URLs (images may also be Base64).
* Invalid parameters are rejected at creation with 400 `InvalidParameter`, without creating a task.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.