> ## Documentation Index
> Fetch the complete documentation index at: https://docs.myrouter.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Wan 2.5 Text to Video Preview

Wan 2.5 Text-to-Video API that generates high-quality videos with native audio synchronization from text descriptions.

<Tip>
  This is an **async** API that only returns the task\_id of the async task. Use the task\_id to call the [Get Async Task Result API](/docs/models/reference-get-async-task-result) to retrieve the generated result.
</Tip>

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="input" type="object" required={true}>
  Input parameters, including the text prompt for video generation.

  <Expandable title="properties" defaultOpen={true}>
    <ParamField body="prompt" type="string" required={true}>
      Text describing the desired video content. Supports Chinese and English, up to 1500 characters.
    </ParamField>

    <ParamField body="negative_prompt" type="string">
      Describes content to avoid in the generated video. Up to 500 characters.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="model" type="string">
  Model name for video generation, e.g. wan2.5-t2v-preview.
</ParamField>

<ParamField body="parameters" type="object">
  Optional parameters for controlling video generation.

  <Expandable title="properties" defaultOpen={true}>
    <ParamField body="seed" type="integer">
      Random seed for reproducible generation.

      Range: \[0, 2147483647]
    </ParamField>

    <ParamField body="size" type="string">
      Video resolution in width\*height format. Supports 480P/720P/1080P tiers.

      Possible values: `832*480`, `480*832`, `624*624`, `1280*720`, `720*1280`, `960*960`, `1088*832`, `832*1088`, `1920*1080`, `1080*1920`, `1440*1440`, `1632*1248`, `1248*1632`
    </ParamField>

    <ParamField body="duration" type="integer">
      Duration of the generated video (seconds).

      Possible values: `5`, `10`
    </ParamField>

    <ParamField body="watermark" type="boolean">
      Whether to add an "AI Generated" watermark. Default: false.
    </ParamField>

    <ParamField body="prompt_extend" type="boolean">
      Whether to enable LLM automatic prompt enhancement. Default: true.
    </ParamField>
  </Expandable>
</ParamField>

## Response

<ResponseField name="task_id" type="string" required={false}>
  Use the task\_id to call the [Get Async Task Result API](/docs/models/reference-get-async-task-result) to retrieve the generated output.
</ResponseField>

<ResponseField name="provider_request_id" type="string" required={false}>
  Unique request identifier from the service provider.
</ResponseField>
