Skip to content
Alibaba · Wan

wan3.0-video-prime API

Generate video from text, frames, and multimodal references with wan3.0-video-prime on Openrouter API.

Video generationVideoAsync task
Model id
wan3.0-video-prime

wan3.0-video-prime API pricing

All prices in USD. Openrouter API rates compared with the official list price for the same unit.

OptionOpenrouter APIOfficialSave
DefaultDefault$0.2263$0.25−9%
1080P$0.2263$0.25−9%
480P$0.05657$0.0625−9%
720P$0.1131$0.125−10%

Prices are per second.

What is wan3.0-video-prime?

wan3.0-video-prime is Alibaba’s Wan-family video generation model, available through Openrouter API for text-to-video, first-frame, first-and-last-frame, and multimodal reference workflows. It accepts images, video, audio, documents, and public web pages as references. Developers can select 480P, 720P, or 1080P output, set a fixed duration from 2–30 seconds or let the model choose, and control aspect ratio, audio, prompt rewriting, seed, and watermark settings. Reference-video workflows have an additional combined input-and-output duration limit.

Call the model through Openrouter API’s video generation endpoint using your Openrouter API key. Billing is pay-as-you-go and applies only to successful requests: 480P costs $0.05657 per second, 720P costs $0.1131 per second, and Default or 1080P costs $0.2263 per second. The default configuration is about 9% below the developer's list price. Omitting resolution selects 1080P; including or excluding an audio track does not change the price.

wan3.0-video-prime highlights

Multiple Generation Modes

Generate from a text prompt, a first frame, first and last frames, or multimodal references. Documents and public web pages can also serve as reference inputs.

Resolution and Duration Controls

Choose 480P, 720P, or 1080P and a fixed output length from 2–30 seconds. Set duration to -1 to let the model choose the length within applicable constraints.

Flexible Aspect Ratios

Use adaptive sizing or select 21:9, 16:9, 4:3, 1:1, 3:4, or 9:16. Adaptive sizing is recommended for frame-based and reference-media tasks.

Optional Audio Track

Output includes audio by default, and you can disable it without changing the price. Watermarking is separately controlled and disabled by default.

How to call the wan3.0-video-prime API in 4 steps

  1. 01

    Get an API key

    Sign in to Openrouter API, top up from $50, and create an sk-ora key in the console.

  2. 02

    Set the base URL

    Use https://openrouterapi.ru/v1 as the base URL in your SDK or HTTP client.

  3. 03

    Send the request

    Call POST /v1/videos/generations with "model": "wan3.0-video-prime" and the parameters below.

  4. 04

    Handle the response

    The response contains a task_id. Poll GET /v1/tasks/{task_id} until the status is completed, then download the result URLs.

curl --request POST \
  --url https://openrouterapi.ru/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "wan3.0-video-prime",
    "prompt": "A kitten runs across a moonlit rooftop, neon lights of the city flicker in the distance, cinematic quality, smooth camera move.",
    "resolution": "720P",
    "size": "21:9",
    "duration": 5,
    "prompt_extend": false,
    "seed": -1
  }'

Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequired—Video generation model name. Allowed values:
nsfw_checkbooleanOptionalfalseWhether to run content moderation before submitting the video task.
promptstringOptional—Text description. **Required unless** media fields are provided (at least one of prompt or media).
prompt_extendbooleanOptionaltrueEnable intelligent prompt rewriting. `true` or omission enables it (default); `false` disables it. Rewriting can improve short prompts but may increase latency.
resolutionstringOptional1080POutput resolution (case-insensitive)
sizestringOptionaladaptiveAspect ratio. `aspect_ratio` is also accepted.
durationintegerOptional5Duration in seconds:
audiobooleanOptionaltrueWhether the output includes an audio track. Default `true`. **Price is the same with or without audio.**
seedintegerOptional—Integer random seed: `-1` or `[0, 2147483647]`. `-1` is equivalent to omission and selects a random seed. Out-of-range values such as `-2` or `2147483648` return HTTP 400 at submission.
watermarkbooleanOptionalfalseWhether to add a watermark. Default `false`
generation_typestringOptional—How bare `image_urls` are classified:
image_urlsstring[]Optional—Image URL array. Role assignment follows mutual exclusion rules.
image_with_rolesobject[]Optional—Images with explicit roles. Each item:
video_urlsstring[]Optional—Reference videos, up to **5** clips; each 1–15s, **total ≤ 15s**
audio_urlsstring[]Optional—Reference audio, up to **5** clips; each 1–15s, **total ≤ 15s**
audio_urlstringOptional—Single reference audio (single-value form of `audio_urls`)
file_urlstringOptional—Reference document URL, at most **1**. **Cannot be combined with `link_url`.**
link_urlstringOptional—Public web page URL, at most **1**. Login-free pages only. **Cannot be combined with `file_url`.**

What you can build with wan3.0-video-prime

Text-to-Video Creation Tools

Build an interface that turns written scene descriptions into video clips, with selectable resolution, duration, and aspect ratio.

Frame-Guided Video Workflows

Let users supply an opening image or both opening and closing images to guide video generation through explicit frame roles.

Multimodal Creative Workspaces

Combine reference images, video clips, and audio with a prompt in a video creation workflow.

Document-to-Video Workflows

Build tools that generate videos using a reference document or login-free public web page, with an optional prompt to describe the intended result.

Tips for better results

  • 01

    Set Resolution Explicitly

    Omitting resolution selects 1080P at $0.2263 per second. Choose 480P at $0.05657 per second or 720P at $0.1131 per second when a lower-resolution output fits the task.

  • 02

    Budget Reference Video Length

    Total reference video duration plus output duration must not exceed 30 seconds. Account for reference footage when choosing a fixed output duration.

  • 03

    Choose Prompt Rewriting Deliberately

    Prompt rewriting is enabled by default and can improve short prompts, but may increase latency. For document or web page references, it must remain enabled or omitted.

  • 04

    Assign Frame Roles Explicitly

    Use image_with_roles to identify first_frame, last_frame, or reference_image inputs. For media-guided tasks, start with adaptive sizing; if you supply both size and aspect_ratio, their values must match.

Limits and things to know

  • Reference video and audio each allow up to 5 clips, with each clip lasting 1–15 seconds and each media type totaling no more than 15 seconds.

  • A request can include at most one reference document or one public web page, and these cannot be combined.

  • Prompts longer than 20,000 characters are automatically truncated rather than rejected.

wan3.0-video-prime API FAQ

How much does wan3.0-video-prime cost on Openrouter API?

Openrouter API pricing is $0.05657 per second for 480P, $0.1131 per second for 720P, and $0.2263 per second for Default or 1080P. The default configuration is about 9% below the developer's list price, and only successful requests are billed.

How do I call wan3.0-video-prime?

Send a POST request to https://openrouterapi.ru/v1/videos/generations with Bearer Token authentication using your Openrouter API key. Set the model field to wan3.0-video-prime and provide a prompt or supported reference input.

Which output settings are supported?

You can choose 480P, 720P, or 1080P, a fixed duration of 2–30 seconds or model-chosen duration, and adaptive or supported explicit aspect ratios. Audio, seed, watermark, and prompt rewriting are also configurable.

What are the reference video limits?

You can supply up to 5 reference video clips, each 1–15 seconds long, totaling no more than 15 seconds. Total input video duration plus output duration must not exceed 30 seconds, including when the model chooses the output length.

Can I use generated videos commercially?

Commercial use is subject to the model developer’s terms. Review the applicable terms before using generated videos in commercial products or campaigns.

How does wan3.0-video-prime compare with wan3.0-video?

The documentation states that wan3.0-video-prime and wan3.0-video accept exactly the same request parameters. It does not specify a quality, speed, or capability difference between them.

Related models

Depth: 250+ models · Minimum top-up $50

Start building with wan3.0-video-prime

One key, pay as you go from $50, billed only for successful requests.