Jevrouter Video API · reference-to-video
Wan 3.0 prime · reference to video
alibaba/wan-3.0-prime/reference-to-video:video
Alibaba WAN 3.0 Prime Reference-to-Video combines reference images, videos, and audio with prompts to create coherent videos with flexible 2-30 second duration, resolution, aspect ratio, audio, and deep-thinking controls. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.
Create an API keyOptions and pricing
Task: reference-to-video. Catalog base price: $0.75. The exact quote depends on your inputs; the catalog price is not a fixed per-task charge.
We reserve the quoted maximum before submission, settle the actual generation cost and release the remainder. Set jev.max_cost_usd to your maximum reservation. A quote above this limit is rejected before generation.
| Input field | Type | Required | Options / default |
|---|---|---|---|
seed | integer | No | See schema |
prompt | string | Yes | See schema |
duration | integer | No | 5 |
resolution | string | No | ["480p","720p","1080p"] |
aspect_ratio | string | No | ["16:9","9:16","1:1","4:3","3:4"] |
generate_audio | boolean | No | true |
reference_audios | array | No | See schema |
reference_images | array | No | See schema |
reference_videos | array | No | See schema |
enable_prompt_expansion | boolean | No | false |
Complete input schema
{
"type": "object",
"required": [
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"description": "The random seed to use for the generation. -1 means a random seed will be used."
},
"prompt": {
"type": "string",
"description": "The positive prompt for the generation. Refer to reference media as Image 1, Video 1, Audio 1, ..., numbered per type in array order."
},
"duration": {
"type": "integer",
"default": 5,
"maximum": 30,
"minimum": 2,
"description": "The duration of the generated video in seconds. Default: 5. Without video input, use an integer from 2 to 30. When reference videos are provided, the total input video duration plus the generated output duration must not exceed 30 seconds.",
"x-ui-component": "slider"
},
"resolution": {
"enum": [
"480p",
"720p",
"1080p"
],
"type": "string",
"default": "720p",
"description": "The resolution of the generated video."
},
"aspect_ratio": {
"enum": [
"16:9",
"9:16",
"1:1",
"4:3",
"3:4"
],
"type": "string",
"default": "16:9",
"description": "The aspect ratio of the generated video."
},
"generate_audio": {
"type": "boolean",
"default": true,
"x-aliases": [
"enable_audio"
],
"description": "Whether to include audio in the generated video."
},
"reference_audios": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 5,
"description": "Array of reference audio URLs (up to 5). Total input audio duration must not exceed 15 seconds."
},
"reference_images": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10,
"description": "Array of reference image URLs (up to 10). At least one reference image, video, or audio is required."
},
"reference_videos": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 5,
"description": "Array of reference video URLs (up to 5). Each video must be MP4 or MOV, 1-15 seconds, 240-4096 pixels on each side, no more than 8:1 aspect ratio, and no more than 100 MB. Total input video duration must not exceed 15 seconds. Supports HTTP/HTTPS URLs and temporary OSS URLs."
},
"enable_prompt_expansion": {
"type": "boolean",
"default": false,
"description": "If set to true, the prompt optimizer will be enabled."
}
},
"x-order-properties": [
"prompt",
"reference_images",
"reference_videos",
"reference_audios",
"resolution",
"aspect_ratio",
"duration",
"enable_prompt_expansion",
"generate_audio",
"seed"
],
"additionalProperties": false
}Required fields and conditional rules come from the published schema. Catalog support does not mean every option has been independently tested by Jevrouter. Synchronous generation, base64 output and customer callbacks are unavailable.
1. Submit a video task
Allow this model on your Jevrouter key. Replace every placeholder below with a value of the correct type, set a USD limit, and supply any conditional fields required by the schema. Media inputs must use your own accessible URLs; this endpoint does not upload files.
curl https://api.jevrouter.io/v1/videos \
-H "Authorization: Bearer $JEVROUTER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: video-demo-001" \
-d @- <<'JSON'
{
"model": "alibaba/wan-3.0-prime/reference-to-video:video",
"input": {
"prompt": "<prompt: provide string>",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": true,
"enable_prompt_expansion": false
},
"jev": {
"max_cost_usd": "YOUR_USD_LIMIT"
}
}
JSONSave data.id and data.urls.get. An accepted task continues even if you disconnect.
Let Jevrouter choose
Use jev/auto as the model and set task to reference-to-video. Your project must enable Auto, and both the project and key must allow Auto and the candidate models.
Auto checks the task type and all supplied input fields against each candidate. It compares live quotes for up to eight compatible candidates, shortlisted by catalog base price. It selects the lowest quote within that shortlist and your budget; this is not a quality ranking or a guarantee of the cheapest model in the entire catalog.
Use common options such as duration, resolution and aspect_ratio at the top level where available. Model-specific options belong in input and may narrow the pool. Unsupported options are rejected, never silently dropped. Without task, Auto defaults to text-to-video.
2. Check the result
curl https://api.jevrouter.io/v1/videos/REQUEST_ID \ -H "Authorization: Bearer $JEVROUTER_API_KEY"
Replace REQUEST_ID with your task ID. Wait at least three seconds between checks. Status progresses from queued to processing, then completed or failed. Results appear in data.outputs as media URLs or structured output objects.
If the submission response is lost, repeat the original request with the same idempotency key. A new key may create another billed task.
Results and billing
View the request in your dashboard or query /v1/requests/REQUEST_ID for reservation and settlement details. Results may be ready before the bill arrives.
Result links are retained for up to seven days and may expire earlier. Save your video while it is available. Anyone with a media URL may be able to access it. Cancellation and customer webhooks are not available.