Skip to content
中文
Wan · Model API

Wan 3.0 Video Prime API

Wan 3.0 Video Prime API with VezAPI. Explore model capabilities, credit pricing, request parameters, and integration examples.

Text to VideoImage to VideoVideo to Video

Wan 3.0 Video Prime API documentation

Integrate Wan 3.0 Video Prime with your VezAPI key. The operations below share the same authentication and account balance.

Base URL: https://api.vezapi.com
Send Authorization: Bearer YOUR_VEZAPI_KEY. Use a unique Idempotency-Key for each submission; reuse it only when checking the same request.

Wan 3.0 - Video Prime

POST/api/v1/jobs/createTask

Model IDs: wan/3-0-video-prime

ParameterTypeDescription & constraints
model
required
string

wan/3-0-video-prime is a high-speed model. The model name used to generate videos. This field is required. - This endpoint must be `wan/3-0-video-prime`

Values: "wan/3-0-video-prime"

callBackUrl
optional
string

Callback URL for task completion notifications. This parameter is optional. If provided, the system sends a POST request to this URL when the task is completed, regardless of whether it succeeds or fails. If not provided, no callback notification is sent.

input
required
object

Parameters for Wan 3.0 video generation.

input.prompt
optional
string

Text prompt. Chinese and English are supported. Up to 20,000 characters. Required for text-to-video; for other modes, it is recommended to provide it together with media. In reference mode, use Image1/Video1/Audio1 to reference the provided materials.

maxLength: 20000

input.first_frame_url
optional
string

URL of the first-frame image. Up to 1 image, used strictly as the first frame of the video. Used for first-frame-to-video or first-and-last-frame-to-video generation. Cannot be provided together with `reference_*_urls`. Formats: JPEG/JPG, PNG (transparency not supported), BMP, WEBP; each side [240, 8000] px; aspect ratio ≤ 8:1; ≤ 20MB.

input.last_frame_url
optional
string

URL of the last-frame image. Use together with first_frame_url. Same format limits as first_frame_url.

input.reference_image_urls
optional
array

Reference images for all-purpose reference mode. Up to 10 images. Correspond to Image1, Image2, and so on in the prompt according to array order. Same specifications as `first_frame_url`. Cannot be provided together with the first-frame or last-frame image.

maxItems: 10

input.reference_video_urls
optional
array

Reference videos for all-purpose reference mode. Up to 5 videos. Each video must be 1–15s, with a combined duration of ≤ 15s. Correspond to Video1, Video2, and so on according to array order. Formats: mp4, mov; each side [240, 4096] px; aspect ratio ≤ 8:1; each file ≤ 100MB. There is an additional output-side limit: the input video duration plus `duration` cannot exceed 30 seconds.

maxItems: 5

input.reference_audio_urls
optional
array

Reference audio files for all-purpose reference mode. Up to 5 audio files. Each file must be 1–15s, with a combined duration of ≤ 15s. Correspond to Audio1, Audio2, and so on according to array order. Formats: wav, mp3; ≤ 15MB. Reference audio can be used as the only media input; pairing it with a reference image or video usually gives better results.

maxItems: 5

input.reference_file_urls
optional
array

File-to-video generation. Up to 1 file. Cannot be provided together with `reference_link_urls`, or with the first-frame/last-frame image. Formats: docx/doc/xlsx/xls/pptx/ppt/pdf/txt/key/pages/numbers/md; ≤ 100MB; pdf/docx/ppt/key/pages, etc. ≤ 50 pages.

maxItems: 1

input.reference_link_urls
optional
array

Link-to-video generation. Up to 1 publicly accessible webpage that does not require login. Cannot be provided together with `reference_file_urls`, or with the first-frame/last-frame image.

maxItems: 1

input.resolution
optional
string

Output resolution level. Default: **1080P**.

Values: "480P", "720P", "1080P"

Default: "1080P"

input.aspect_ratio
optional
string

Output aspect ratio. `adaptive` (default) automatically selects the aspect ratio based on the input materials and intent.

Values: "adaptive", "16:9", "4:3", "1:1", "3:4", "9:16"

Default: "adaptive"

input.duration
optional
integer

Output video duration in seconds. Default: 5. When there is no video input, the value must be within [2, 30]. When reference videos are provided: input video duration plus output duration ≤ 30. Pass `-1` to use an intelligent duration determined by the model.

Default: 5

input.audio
optional
boolean

Whether the output video includes an audio track. Default: true.

Default: true

input.seed
optional
integer

Random seed used to reproduce results. If omitted, a random seed is used.

minimum: 0

maximum: 2147483647

input.nsfw_checker
optional
boolean

Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model.

Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
  -H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
  -H 'Idempotency-Key: your-unique-request-id' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "wan/3-0-video-prime",
  "input": {
    "prompt": "A kitten running across a rooftop under the moonlight, neon lights flickering in the distance, cinematic quality, with smooth camera movement.",
    "resolution": "1080P",
    "aspect_ratio": "adaptive",
    "duration": 5
  }
}'
Responses and errors

HTTP 200

Request successful.

ParameterTypeDescription & constraints
code
optional
integer

Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying).

Values: 200, 401, 402, 404, 422, 429, 433, 455, 500, 501, 505

msg
optional
string

Response message, error description upon failure

data
required
object
data.taskId
required
string

The task ID can be used with the "Get Task Details" endpoint to query the task status.

Task status and callbacks

For asynchronous tasks, keep the returned taskId. Query GET /api/v1/jobs/recordInfo?taskId=... or provide callBackUrl when creating the task. Only the account that created a task can access it or derive new resources from it.

A timeout can mean the submission was accepted. Inspect the existing request in your dashboard; do not create another task automatically. Callback delivery is retried and may arrive more than once. Deduplicate with X-VezAPI-Event-Id.

Files, logs and billing

Generated media normally follows a 14-day provider lifetime; uploaded files expire after 24 hours. Save the files you need before expiration. VezAPI streams registered files without keeping a permanent media library. Request logs are retained for two calendar months.

Credits are reserved before submission. Final deductions match actual discounted consumption one for one. Unknown usage pauses new paid requests. If available funds cannot cover final usage while protecting other reservations, settlement stays pending until funded; model usage cannot make the wallet negative. Time-based inputs require server-side metadata reads; a failed read prevents submission.

Open full documentation →

Wan 3.0 Video Prime API pricing

Rates below are reference estimates; final deductions equal actual discounted consumption, one for one. At the standard pack rate, 1,000 credits ≈ $10. Larger packs reduce the effective credit price.

SpecificationCreditsUnitUSD reference
wan3.0 video prime, 1080p, video50.4per second$0.504
wan3.0 video prime, 720p, video25.2per second$0.252
wan3.0 video prime, 480p, video12.2per second$0.122