Rivya AI Docs
Model API Pages

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.

Available via APIText or URL ready; reference modes use Files APIVideo
API model id

wan-3-0-video

Inputs

text, file

Files API

Required for reference modes

Base credits

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⌉

Capability

Video

Billing

METERED

Prompt limit

20000 characters

Request contract

Send the model id at the top level. Model-specific controls belong in params.

KeyTypeRequiredDefaultDescription
modelstringYeswan-3-0-videoUse the wan-3-0-video API model id.
promptstringYes-Maximum 20000 characters for this model.
paramsobjectNo-Model-specific parameter object. Use the rows below for allowed keys.
client_request_idstringNo-Optional client-side id for tracing requests in your system.

Model parameters

KeyTypeRequiredDefaultRangeOptionsDescription
seedance_sceneselectNotext-text, frames, referenceChoose one exclusive input contract before uploading media.
variantselectNostandard-standard, primeStandard and Prime use the same controls but different per-second rates.
resolutionselectNo1080P-480P, 720P, 1080PThe 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_ratioselectNoadaptive-adaptive, 16:9, 4:3, 1:1, 3:4, 9:16Choose adaptive framing or one fixed output ratio.
durationnumberNo5min -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.
audioselectNotrue-true, falseChoose whether the generated video should include model-created audio.
seednumberNo-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.

Reference rule

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.

Max files

20

Accepted file kinds

image, video, audio

Duration token

Video and audio references should carry durationToken from /api/v1/files when duration verification is required.

kindMax sizeMIME types
image20 MBimage/jpeg, image/png, image/bmp, image/webp
video95 MBvideo/mp4, video/quicktime
audio15 MBaudio/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.