wan3.0/reference-to-videoGeneration type:
video_to_videoEndpoint:
POST /api/asset_generator/
Pricing
Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.
These prices assume no billable reference inputs. The charge goes up for each second of reference video (up to 15 seconds).
Quick start
The example uses sample media from our CDN. Swap in publicly accessible URLs for your own files.Input parameters
Send these fields ininput_params.
string
required
Describe the video. Reference your inputs as @image1, @video1 — numbered separately per type, in the order added.Minimum characters:
1.
Maximum characters: 5000.string[]
Up to 10 reference images (JPEG, PNG, BMP, WEBP, max 20MB each).Maximum items:
10.string[]
Up to 5 reference videos (MP4, MOV, max 15s combined, 100MB total). Reference as ‘Video 1’, ‘Video 2’. Generated video (reference seconds + duration) is capped at 30s total.Maximum items:
5.string[]
Up to 5 reference audio clips (WAV, MP3, max 15s combined, 15MB total). Requires at least one image or video reference.Maximum items:
5.string
default:"5"
Duration of the generated video in seconds.Allowed values:
"2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30".string
default:"adaptive"
The aspect ratio of the generated video. adaptive follows the reference media.Allowed values:
"adaptive", "16:9", "9:16", "1:1", "4:3", "3:4".string
default:"1080P"
Video resolution. 1080P costs more than 720P and 480P.Allowed values:
"480P", "720P", "1080P".boolean
default:true
Generate synchronized audio for the video. Same price with or without audio.
integer
Random seed for reproducibility.Minimum:
0.
Maximum: 2147483647.Complete JSON schema
Complete JSON schema
Response
The request returns the task withstatus: "initializing". Poll GET /api/asset_generator/{id}/ until status is done or failed, or pass a webhook_url to be notified. A finished task lists its files in assets and the credits it charged in credits_used.
