Wan 3.0 Video API Integration
Use Wan 3.0 Video through Rivya Public API v1 with model id wan-3-0-video, supported inputs, parameters, Files API rules, credits, and response examples.
wan-3-0-video
text, file
Required for reference modes
per_input_and_output_second · standard_480P=8 · standard_720P=16 · standard_1080P=32 · prime_480P=12.2 · prime_720P=25.2 · prime_1080P=50.4 · ⌈total⌉
Video
METERED
20000 characters
Request contract
Send the model id at the top level. Model-specific controls belong in params.
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| model | string | Yes | wan-3-0-video | Use the wan-3-0-video API model id. |
| prompt | string | Yes | - | Maximum 20000 characters for this model. |
| params | object | No | - | Model-specific parameter object. Use the rows below for allowed keys. |
| client_request_id | string | No | - | Optional client-side id for tracing requests in your system. |
Model parameters
| Key | Type | Required | Default | Range | Options | Description |
|---|---|---|---|---|---|---|
| seedance_scene | select | No | text | - | text, frames, reference | Choose one exclusive input contract before uploading media. |
| variant | select | No | standard | - | standard, prime | Standard and Prime use the same controls but different per-second rates. |
| resolution | select | No | 1080P | - | 480P, 720P, 1080P | The reservation is the variant-and-resolution rate multiplied by verified input-video seconds plus reserved output seconds, rounded up once. Intelligent duration reserves 30 output seconds and is unavailable with reference video. |
| aspect_ratio | select | No | adaptive | - | adaptive, 16:9, 4:3, 1:1, 3:4, 9:16 | Choose adaptive framing or one fixed output ratio. |
| duration | number | No | 5 | min -1 / max 30 / step 1 | - | Choose -1 for intelligent duration or a whole number from 2 through 30 seconds. Intelligent duration reserves 30 output seconds and cannot be used with reference video. |
| audio | select | No | true | - | true, false | Choose whether the generated video should include model-created audio. |
| seed | number | No | - | min 0 / max 2147483647 / step 1 | - | Leave it empty for a new random result each time. Reusing the same integer makes it easier to reproduce or fine-tune a previous result. It stays closer only when the prompt and other key settings also remain similar, and it is not a guaranteed 1:1 match. |
Upload policy
Upload reference files first, then place the returned URL and duration token inside params.referenceMediaItems.
Guide frames or signed multimodal references: Frames accepts a required first image and one optional last image. Reference accepts up to 10 JPEG, non-transparent PNG, WebP, or BMP images at 20 MB each, 5 MP4/MOV videos at 95 MB and 1-15 seconds each, and 5 MP3/WAV audio clips at 15 MB and 1-15 seconds each; video and audio totals are each capped at 15 seconds.
20
image, video, audio
Video and audio references should carry durationToken from /api/v1/files when duration verification is required.
| kind | Max size | MIME types |
|---|---|---|
| image | 20 MB | image/jpeg, image/png, image/bmp, image/webp |
| video | 95 MB | video/mp4, video/quicktime |
| audio | 15 MB | audio/mpeg, audio/wav, audio/x-wav |
Minimal request
{
"model": "wan-3-0-video",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"seedance_scene": "text",
"variant": "standard",
"resolution": "1080P",
"aspect_ratio": "adaptive",
"duration": 5,
"audio": "true",
"seed": 0
}
}Reference-file request
{
"model": "wan-3-0-video",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"seedance_scene": "reference",
"variant": "standard",
"resolution": "1080P",
"aspect_ratio": "adaptive",
"duration": 5,
"audio": "true",
"seed": 0,
"referenceMediaItems": [
{
"url": "https://cdn.example.com/reference-image.png",
"kind": "image",
"name": "reference-image.png",
"mimeType": "image/png",
"width": 1024,
"height": 1024,
"sizeBytes": 1048576,
"imageDimensionsToken": "image_dimensions_token_from_original_files_api_upload_response"
}
]
}
}Create response
The create endpoint returns a public task id. Poll the status endpoint until the task succeeds or fails.
{
"id": "task_wan_3_0_video_example",
"status": "queued",
"model": "wan-3-0-video",
"reserved_credits": 160,
"final_credits": 0,
"settlement_status": "RESERVED",
"created_at": "2026-05-11T00:00:00.000Z",
"updated_at": "2026-05-11T00:00:00.000Z",
"result": null,
"error": null
}Common errors
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
Some modes require Files API reference uploads.