Wan 25 Preview

wan-25-preview-text-to-video

post

Wan 2.5 text-to-video model.

Header parameters
AuthorizationstringRequiredExample: sk-kEEV5TfTCTpE4uFwUg9p8UhVyVWpC9IEgOVezQ4b1ZCWQFCV
Body
modelstringRequired

model is the model name

Example: wan-25-preview-text-to-video
promptstringRequired

prompt is the prompt.

Example: A cute baby sea otter.
audio_urlstringOptional

URL of the audio to use as the background music. Must be publicly accessible. Limit handling: If the audio duration exceeds the duration value (5 or 10 seconds), the audio is truncated to the first 5 or 10 seconds, and the rest is discarded. If the audio is shorter than the video, the remaining part of the video will be silent. For example, if the audio is 3 seconds long and the video duration is 5 seconds, the first 3 seconds of the output video will have sound, and the last 2 seconds will be silent.

  • Format: WAV, MP3.
  • Duration: 3 to 30 s.
  • File size: Up to 15 MB.
aspect_ratiostringOptional

The aspect ratio of the generated video Default value: "16:9"

Possible enum values: 16:9, 9:16, 1:1

Default: 16:9Example: 16:9
resolutionstring · enumOptional

Video resolution tier Default value: "1080p"

Possible enum values: 480p, 720p, 1080p

Default: 1080pExample: 1080pPossible values:
durationstring · enumOptional

Duration of the generated video in seconds. Choose between 5 or 10 seconds. Default value: "5"

Possible enum values: 5, 10

Default: 5Example: 5Possible values:
negative_promptstringOptional

Negative prompt to describe content to avoid. Max 500 characters.

Example: low resolution, error, worst quality, low quality, defects
enable_prompt_expansionbooleanOptional

Whether to enable prompt rewriting using LLM. Improves results for short prompts but increases processing time. Default value: true

Default: true
seedintegerOptional

Random seed for reproducibility. If None, a random seed is chosen.

Example: 1
output_formatstring · enumOptional

output_format indicate the output format, default value is url.

Default: urlExample: urlPossible values:
Responses
200Success
application/json
post
/v1/videos/generations
200Success