Skip to content

Wan 3.0 Prime Video Edit

POST/v1/run

Wan 3.0 Prime Video Edit by Alibaba restyles or modifies an input video from a text instruction, optionally guided by reference images and audio, keeping the original length.

Request body

Submit an async generation request. The model field selects the model; other fields are model-specific input parameters.

stringmodelrequired

Model identifier. Set to alibaba/wan/3.0/prime/video-edit.

Default: alibaba/wan/3.0/prime/video-edit

stringpromptrequired

Text instruction describing the editing. Refer to the input video as Video 1 and to reference images or audio as Image 1, Audio 1, and so on.

stringvideorequired

URL of the input video (MP4 or MOV; 1-15 seconds, at least 16 fps, 240-4096px per side, under 100MB).

Optional<array<string>>images

Up to 10 optional reference image URLs (JPEG, PNG, BMP, or WebP; up to 20MB each). Refer to them in the prompt as Image 1, Image 2, and so on.

Optional<array<string>>audios

Up to 5 optional reference audio URLs (WAV or MP3; 1-15s each, 15s total, under 15MB each).

Optional<string>resolution

Output video resolution tier.

Allowed values: 480p, 720p, 1080p

Default: 720p

Optional<boolean>generate_audio

Generate a synchronized audio track. Pricing is the same either way.

Default: true

Optional<integer>seed

Random seed (0-2147483647) for reproducible results. Omit for a random seed; the same seed may still produce slightly different results.

Range: 0 to 2147483647

Response Schema

The submit endpoint returns a run response. If its status is pending or running, poll GET /v1/run/{id} with the returned opaque ID until it reaches a terminal state.

stringidrequired

Opaque SandBase run identifier. Use it exactly as returned; no prefix is guaranteed.

stringstatusrequired

Current public run status.

Allowed values: pending, running, completed, failed, timeout

Optional<string>model

Public SandBase model name used for this run.

Optional<array<object>>outputs

Present only for completed runs. Each object is capability-specific; inspect the selected model schema for its fields.

Optional<object>error

Present only for failed or timeout runs. Contains a public error type and sanitized message.

Optional<string>error.type

Stable public error category.

Optional<string>error.message

Sanitized error message safe to show to clients.

Optional<object>usage

Usage details when available.

Model capabilities

array<string>capability_tagsrequired

Capabilities declared by the model registry.

Default: video-to-video

stringexecution_moderequired

Execution mode declared by the model registry.

Default: async