Wan 3.0 Prime Video API
https://api.hiapi.ai /v1/tasks Image, video, and audio models are called through theUnified Async API POST /v1/tasks endpoint; only the input fields differ (see input parameters below).
Model summary
| Model name | wan3.0-video-prime |
|---|---|
| Type | Video generation (all-purpose reference, fast) |
| Endpoint | POST /v1/tasks |
| Pricing | See HiAPI Pricing |
Wan 3.0 Prime fast video generation API for text, first/last frames, reference images, audio, files, and webpages, with 480P, 720P, or 1080P output and optional synchronized audio.
Production guidance
- The submission returns a taskId immediately; use callback.url for terminal notifications in production.
- Poll GET /v1/tasks/:id for local debugging or callback reconciliation.
- First/last-frame mode cannot be combined with reference arrays. Reference video input is not available yet.
Best suited for
Describe the complete scene, motion, and camera in the prompt and get the clip back with a shorter wait.
promptCombine image or audio references and address them in order in the prompt.
promptreference_image_urlsreference_audio_urlsControl the beginning and ending frames with two images.
first_frame_urllast_frame_urlRequest parameters
model string required Fixed value wan3.0-video-prime.
input object required Model input parameters.
prompt string required Describe the scene, motion, camera, lighting, and sound. In reference mode, use Image1 or Audio1 in the order of the supplied arrays.
first_frame_url string optional One publicly reachable image used as the first frame. Do not combine with reference media arrays.
last_frame_url string optional One publicly reachable image used as the last frame together with first_frame_url.
reference_image_urls string[] optional Up to 10 publicly reachable reference image URLs for all-purpose reference generation.
reference_audio_urls string[] optional Up to 5 WAV or MP3 reference audio URLs. Pair audio with an image.
reference_file_urls string[] optional At most one publicly reachable document or presentation URL. Do not combine with reference_link_urls.
reference_link_urls string[] optional At most one publicly reachable webpage URL that does not require login. Do not combine with reference_file_urls.
resolution enum optional Output video resolution.
aspect_ratio enum optional Output aspect ratio; adaptive follows the media and prompt.
duration integer optional Output duration in seconds, from 2 to 30.
audio boolean optional Include a synchronized audio track in the output video.
seed integer optional Fixed random seed for reproducible results, from 0 to 2147483647.
callback object optional Optional terminal-state callback configuration.
url string required HTTPS URL that receives terminal task notifications.
when enum optional Callback trigger timing.
Example requests
A low-resolution example sourced from the verified golden task.
{
"model": "wan3.0-video-prime",
"input": {
"prompt": "A glass of iced matcha latte on a sunlit café table; a slow push-in as condensation drips down the glass and a wooden spoon stirs, soft bokeh, warm morning light, gentle café ambience.",
"resolution": "480P",
"aspect_ratio": "16:9",
"duration": 2,
"audio": true
}
}Place public media URLs in the matching array and refer to them in the prompt.
{
"model": "wan3.0-video-prime",
"input": {
"prompt": "The subject from Image1 walks toward the camera on a rainy night street.",
"reference_image_urls": [
"https://example.com/reference.jpg"
],
"resolution": "720P",
"aspect_ratio": "9:16",
"duration": 5,
"audio": true
}
}Control the opening and closing frames with two images and fix the seed for reproducibility. First/last-frame mode cannot be combined with reference_* arrays. Replace the example URLs with publicly accessible images.
{
"model": "wan3.0-video-prime",
"input": {
"prompt": "A flower bud slowly opens into full bloom in the morning sun, static camera, soft natural light, a light breeze.",
"first_frame_url": "https://example.com/first-frame.jpg",
"last_frame_url": "https://example.com/last-frame.jpg",
"resolution": "720P",
"aspect_ratio": "16:9",
"duration": 5,
"audio": true,
"seed": 42
}
}The reference image supplies the presenter's look, the reference audio supplies the voice, and the document supplies brand information; the prompt refers to media in order as Image1 and Audio1. Use either reference_file_urls or reference_link_urls, not both. Replace the example URLs with publicly accessible media.
{
"model": "wan3.0-video-prime",
"input": {
"prompt": "The presenter from Image1 introduces a new product to the camera in a bright studio, speaking in the voice from Audio1, styled to match the brand guidelines in the document.",
"reference_image_urls": [
"https://example.com/reference.jpg"
],
"reference_audio_urls": [
"https://example.com/voice.mp3"
],
"reference_file_urls": [
"https://example.com/brand-guide.pdf"
],
"resolution": "1080P",
"aspect_ratio": "16:9",
"duration": 8,
"audio": true
}
}The reference image supplies the product's look and the webpage supplies product details; the page must be reachable without login. Replace the example URLs with publicly accessible media.
{
"model": "wan3.0-video-prime",
"input": {
"prompt": "The product from Image1 rotates slowly on a plain background, with close-ups of the details highlighted on the webpage.",
"reference_image_urls": [
"https://example.com/reference.jpg"
],
"reference_link_urls": [
"https://example.com/product-page"
],
"resolution": "720P",
"aspect_ratio": "1:1",
"duration": 5,
"audio": false
}
}Getting the result
- POST /v1/tasks returns a taskId immediately.
- When the task succeeds, download the video from output[].url.
- When it fails, fix the request from the error message instead of repeating the same invalid payload.
FAQ
How do I retrieve the result?
Use the returned taskId. On success, download the video from output[].url or receive a terminal callback at callback.url.
Can first-frame input be combined with reference images?
First/last-frame mode and reference_* arrays are mutually exclusive. Choose the mode that matches the media role.
How does it differ from wan3.0-video?
Prime is the fast route with the same parameters and output options and shorter generation time; it currently does not accept reference video input.