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

# wan3.0-video

> 创建并查询 Wan3.0 文生视频、帧引导、多模态参考、文件参考和网页参考视频任务。

Wan3.0 使用同一个模型和创建端点处理文生视频、帧引导、多模态参考以及文件或网页参考工作流。请选择对应标签页查看请求格式，再使用返回的任务 ID 查询结果。

<Info>
  阿里云官方 Wan3.0 页面仅列出 `wan3.0-video`。AnyFast 还在 `Direct` 资源组中提供 AnyFast 特有的 `wan3.0-video-nsfw` 变体。
</Info>

<Tabs sync={false}>
  <Tab title="文生视频">
    ## 创建任务

    `POST /v1/video/generations`

    <div className="kling-api-example-panel">
      ```bash cURL theme={null}
      curl --request POST \
        --url https://www.anyfast.ai/v1/video/generations \
        --header 'Authorization: Bearer YOUR_API_KEY' \
        --header 'Content-Type: application/json' \
        --data '{
          "model": "wan3.0-video",
          "input": {
            "prompt": "一只小猫在月光下的屋顶奔跑，远处霓虹灯闪烁，电影感光影和平滑跟拍镜头。"
          },
          "parameters": {
            "resolution": "1080P",
            "ratio": "16:9",
            "duration": 8,
            "audio": true,
            "seed": 42,
            "watermark": false
          }
        }'
      ```
    </div>

    ## 请求头

    <ParamField header="Authorization" type="string" required>Bearer 鉴权，格式为 `Bearer YOUR_API_KEY`。</ParamField>
    <ParamField header="Content-Type" type="string" default="application/json" required>请求体格式。</ParamField>

    ## 请求体

    <ParamField body="model" type="string" required>
      AnyFast 模型 ID。使用 `wan3.0-video`，或在 `Direct` 资源组中使用 AnyFast 特有的 `wan3.0-video-nsfw` 变体。阿里云官方页面仅列出标准模型。
    </ParamField>

    <ParamField body="input" type="object" required>基础生成输入，必须至少提供 `input.prompt` 或 `input.media` 之一。</ParamField>
    <ParamField body="input.prompt" type="string" required>中文或英文视频描述，超过 20,000 个字符的部分会自动截断。</ParamField>
    <ParamField body="parameters" type="object">视频生成控制参数。</ParamField>
    <ParamField body="parameters.resolution" type="string" default="1080P">输出分辨率：`1080P`、`720P` 或 `480P`。</ParamField>
    <ParamField body="parameters.ratio" type="string" default="adaptive">输出宽高比：`adaptive`、`16:9`、`4:3`、`1:1`、`3:4` 或 `9:16`。</ParamField>
    <ParamField body="parameters.duration" type="integer" default={5}>输出时长（秒）。没有视频输入时，可使用 `-1` 智能选择时长，或填写 2–30 的整数。</ParamField>
    <ParamField body="parameters.audio" type="boolean" default={true}>生成视频是否包含音轨；设为 `true` 或 `false` 的价格相同。</ParamField>
    <ParamField body="parameters.seed" type="integer">随机种子，取值范围为 `0`–`2147483647`。</ParamField>
    <ParamField body="parameters.watermark" type="boolean" default={false}>是否为生成视频添加水印。</ParamField>

    ## 创建响应

    <div className="kling-api-example-panel">
      ```json 200 theme={null}
      {
        "id": "asyntask_wan30example123",
        "task_id": "asyntask_wan30example123",
        "object": "video",
        "model": "wan3.0-video",
        "status": "queued",
        "progress": 0,
        "created_at": 1787280000
      }
      ```
    </div>

    <ResponseField name="id" type="string">用于查询结果的任务 ID。</ResponseField>
    <ResponseField name="task_id" type="string">任务 ID，与 `id` 相同。</ResponseField>
    <ResponseField name="object" type="string">返回对象类型，固定为 `video`。</ResponseField>
    <ResponseField name="model" type="string">任务使用的 AnyFast 模型 ID。</ResponseField>
    <ResponseField name="status" type="string">初始任务状态，通常为 `queued`。</ResponseField>
    <ResponseField name="progress" type="integer">初始任务进度百分比。</ResponseField>
    <ResponseField name="created_at" type="integer">创建时间，Unix 秒级时间戳。</ResponseField>
  </Tab>

  <Tab title="首帧生视频">
    ## 创建任务

    `POST /v1/video/generations`

    <div className="kling-api-example-panel">
      ```bash cURL theme={null}
      curl --request POST \
        --url https://www.anyfast.ai/v1/video/generations \
        --header 'Authorization: Bearer YOUR_API_KEY' \
        --header 'Content-Type: application/json' \
        --data '{
          "model": "wan3.0-video",
          "input": {
            "prompt": "墙上的涂鸦人物走出来开始充满活力地说唱，镜头逐渐推近。",
            "media": [
              {
                "type": "first_frame",
                "url": "https://example.com/first-frame.png"
              }
            ]
          },
          "parameters": {
            "resolution": "1080P",
            "ratio": "adaptive",
            "duration": 5,
            "audio": true,
            "seed": 42,
            "watermark": false
          }
        }'
      ```
    </div>

    ## 请求头

    <ParamField header="Authorization" type="string" required>Bearer 鉴权，格式为 `Bearer YOUR_API_KEY`。</ParamField>
    <ParamField header="Content-Type" type="string" default="application/json" required>请求体格式。</ParamField>

    ## 请求体

    <ParamField body="model" type="string" required>使用 `wan3.0-video`，或在 `Direct` 资源组中使用 AnyFast 特有的 `wan3.0-video-nsfw` 变体。</ParamField>
    <ParamField body="input" type="object" required>基础生成输入，必须至少提供 `input.prompt` 或 `input.media` 之一。</ParamField>
    <ParamField body="input.prompt" type="string">描述运动、场景、运镜和声音，超过 20,000 个字符的部分会自动截断。</ParamField>
    <ParamField body="input.media" type="object[]" required>必须提供且只能提供一张 `first_frame` 图片。帧素材不能与 `reference_image`、`reference_video`、`reference_audio`、`file` 或 `link` 混用。</ParamField>
    <ParamField body="input.media[].type" type="string" required>使用 `first_frame`。</ParamField>
    <ParamField body="input.media[].url" type="string" required>公开图片 URL 或 Base64 data URI。</ParamField>
    <ParamField body="parameters" type="object">视频生成控制参数。</ParamField>
    <ParamField body="parameters.resolution" type="string" default="1080P">输出分辨率：`1080P`、`720P` 或 `480P`。</ParamField>
    <ParamField body="parameters.ratio" type="string" default="adaptive">输出宽高比：`adaptive`、`16:9`、`4:3`、`1:1`、`3:4` 或 `9:16`。`adaptive` 可根据源图和意图自动选择。</ParamField>
    <ParamField body="parameters.duration" type="integer" default={5}>输出时长（秒）。使用 `-1` 智能选择时长，或填写 2–30 的整数。</ParamField>
    <ParamField body="parameters.audio" type="boolean" default={true}>生成视频是否包含音轨；设为 `true` 或 `false` 的价格相同。</ParamField>
    <ParamField body="parameters.seed" type="integer">随机种子，取值范围为 `0`–`2147483647`。</ParamField>
    <ParamField body="parameters.watermark" type="boolean" default={false}>是否为生成视频添加水印。</ParamField>

    ## 创建响应

    <div className="kling-api-example-panel">
      ```json 200 theme={null}
      {
        "id": "asyntask_wan30example123",
        "task_id": "asyntask_wan30example123",
        "object": "video",
        "model": "wan3.0-video",
        "status": "queued",
        "progress": 0,
        "created_at": 1787280000
      }
      ```
    </div>

    <ResponseField name="id" type="string">用于查询结果的任务 ID。</ResponseField>
    <ResponseField name="task_id" type="string">任务 ID，与 `id` 相同。</ResponseField>
    <ResponseField name="object" type="string">返回对象类型，固定为 `video`。</ResponseField>
    <ResponseField name="model" type="string">任务使用的 AnyFast 模型 ID。</ResponseField>
    <ResponseField name="status" type="string">初始任务状态，通常为 `queued`。</ResponseField>
    <ResponseField name="progress" type="integer">初始任务进度百分比。</ResponseField>
    <ResponseField name="created_at" type="integer">创建时间，Unix 秒级时间戳。</ResponseField>
  </Tab>

  <Tab title="首尾帧生视频">
    ## 创建任务

    `POST /v1/video/generations`

    <div className="kling-api-example-panel">
      ```bash cURL theme={null}
      curl --request POST \
        --url https://www.anyfast.ai/v1/video/generations \
        --header 'Authorization: Bearer YOUR_API_KEY' \
        --header 'Content-Type: application/json' \
        --data '{
          "model": "wan3.0-video",
          "input": {
            "prompt": "女孩从微笑逐渐变为大笑，镜头缓慢推近，背景光线由冷色转为暖色。",
            "media": [
              {
                "type": "first_frame",
                "url": "https://example.com/first-frame.jpg"
              },
              {
                "type": "last_frame",
                "url": "https://example.com/last-frame.jpg"
              }
            ]
          },
          "parameters": {
            "resolution": "1080P",
            "ratio": "adaptive",
            "duration": 5,
            "audio": true,
            "seed": 42,
            "watermark": false
          }
        }'
      ```
    </div>

    ## 请求头

    <ParamField header="Authorization" type="string" required>Bearer 鉴权，格式为 `Bearer YOUR_API_KEY`。</ParamField>
    <ParamField header="Content-Type" type="string" default="application/json" required>请求体格式。</ParamField>

    ## 请求体

    <ParamField body="model" type="string" required>使用 `wan3.0-video`，或在 `Direct` 资源组中使用 AnyFast 特有的 `wan3.0-video-nsfw` 变体。</ParamField>
    <ParamField body="input" type="object" required>基础生成输入，必须至少提供 `input.prompt` 或 `input.media` 之一。</ParamField>
    <ParamField body="input.prompt" type="string">描述运动和帧间过渡，超过 20,000 个字符的部分会自动截断。</ParamField>
    <ParamField body="input.media" type="object[]" required>提供一张 `first_frame` 和一张 `last_frame`。它们不能与 `reference_image`、`reference_video`、`reference_audio`、`file` 或 `link` 混用。</ParamField>
    <ParamField body="input.media[].type" type="string" required>开场图使用 `first_frame`，结束图使用 `last_frame`；每种类型最多一个。</ParamField>
    <ParamField body="input.media[].url" type="string" required>公开图片 URL 或 Base64 data URI。</ParamField>
    <ParamField body="parameters" type="object">视频生成控制参数。</ParamField>
    <ParamField body="parameters.resolution" type="string" default="1080P">输出分辨率：`1080P`、`720P` 或 `480P`。</ParamField>
    <ParamField body="parameters.ratio" type="string" default="adaptive">输出宽高比：`adaptive`、`16:9`、`4:3`、`1:1`、`3:4` 或 `9:16`。`adaptive` 可根据帧素材和意图自动选择。</ParamField>
    <ParamField body="parameters.duration" type="integer" default={5}>输出时长（秒）。使用 `-1` 智能选择时长，或填写 2–30 的整数。</ParamField>
    <ParamField body="parameters.audio" type="boolean" default={true}>生成视频是否包含音轨；设为 `true` 或 `false` 的价格相同。</ParamField>
    <ParamField body="parameters.seed" type="integer">随机种子，取值范围为 `0`–`2147483647`。</ParamField>
    <ParamField body="parameters.watermark" type="boolean" default={false}>是否为生成视频添加水印。</ParamField>

    ## 创建响应

    <div className="kling-api-example-panel">
      ```json 200 theme={null}
      {
        "id": "asyntask_wan30example123",
        "task_id": "asyntask_wan30example123",
        "object": "video",
        "model": "wan3.0-video",
        "status": "queued",
        "progress": 0,
        "created_at": 1787280000
      }
      ```
    </div>

    <ResponseField name="id" type="string">用于查询结果的任务 ID。</ResponseField>
    <ResponseField name="task_id" type="string">任务 ID，与 `id` 相同。</ResponseField>
    <ResponseField name="object" type="string">返回对象类型，固定为 `video`。</ResponseField>
    <ResponseField name="model" type="string">任务使用的 AnyFast 模型 ID。</ResponseField>
    <ResponseField name="status" type="string">初始任务状态，通常为 `queued`。</ResponseField>
    <ResponseField name="progress" type="integer">初始任务进度百分比。</ResponseField>
    <ResponseField name="created_at" type="integer">创建时间，Unix 秒级时间戳。</ResponseField>
  </Tab>

  <Tab title="多模态参考">
    ## 创建任务

    `POST /v1/video/generations`

    <div className="kling-api-example-panel">
      ```bash cURL theme={null}
      curl --request POST \
        --url https://www.anyfast.ai/v1/video/generations \
        --header 'Authorization: Bearer YOUR_API_KEY' \
        --header 'Content-Type: application/json' \
        --data '{
          "model": "wan3.0-video",
          "input": {
            "prompt": "让 Image 1 执行 Video 1 中的动作，并让场景跟随 Audio 1 的节奏。",
            "media": [
              {
                "type": "reference_image",
                "url": "https://example.com/character.jpg"
              },
              {
                "type": "reference_video",
                "url": "https://example.com/motion.mp4"
              },
              {
                "type": "reference_audio",
                "url": "https://example.com/rhythm.mp3"
              }
            ]
          },
          "parameters": {
            "resolution": "1080P",
            "ratio": "16:9",
            "duration": 10,
            "audio": true,
            "seed": 42,
            "watermark": false
          }
        }'
      ```
    </div>

    ## 请求头

    <ParamField header="Authorization" type="string" required>Bearer 鉴权，格式为 `Bearer YOUR_API_KEY`。</ParamField>
    <ParamField header="Content-Type" type="string" default="application/json" required>请求体格式。</ParamField>

    ## 请求体

    <ParamField body="model" type="string" required>使用 `wan3.0-video`，或在 `Direct` 资源组中使用 AnyFast 特有的 `wan3.0-video-nsfw` 变体。</ParamField>
    <ParamField body="input" type="object" required>基础生成输入，必须至少提供 `input.prompt` 或 `input.media` 之一。</ParamField>
    <ParamField body="input.prompt" type="string">视频指令，超过 20,000 个字符的部分会自动截断。按同类素材的顺序使用 `Image 1`、`Video 1` 和 `Audio 1` 等名称引用素材。</ParamField>
    <ParamField body="input.media" type="object[]" required>参考素材。最多提供 10 张图片、5 个视频和 5 段音频。参考素材不能与 `first_frame` 或 `last_frame` 混用。</ParamField>
    <ParamField body="input.media[].type" type="string" required>使用 `reference_image`、`reference_video` 或 `reference_audio`。</ParamField>
    <ParamField body="input.media[].url" type="string" required>公开媒体 URL；图片也支持 Base64 data URI。</ParamField>
    <ParamField body="parameters" type="object">视频生成控制参数。</ParamField>
    <ParamField body="parameters.resolution" type="string" default="1080P">输出分辨率：`1080P`、`720P` 或 `480P`。</ParamField>
    <ParamField body="parameters.ratio" type="string" default="adaptive">输出宽高比：`adaptive`、`16:9`、`4:3`、`1:1`、`3:4` 或 `9:16`。</ParamField>
    <ParamField body="parameters.duration" type="integer" default={5}>输出时长（秒）。可使用 `-1` 智能选择时长。没有视频输入时填写 2–30；有视频输入时，输入视频总时长与输出时长之和不得超过 30 秒。</ParamField>
    <ParamField body="parameters.audio" type="boolean" default={true}>生成视频是否包含音轨；设为 `true` 或 `false` 的价格相同。</ParamField>
    <ParamField body="parameters.seed" type="integer">随机种子，取值范围为 `0`–`2147483647`。</ParamField>
    <ParamField body="parameters.watermark" type="boolean" default={false}>是否为生成视频添加水印。</ParamField>

    ## 创建响应

    <div className="kling-api-example-panel">
      ```json 200 theme={null}
      {
        "id": "asyntask_wan30example123",
        "task_id": "asyntask_wan30example123",
        "object": "video",
        "model": "wan3.0-video",
        "status": "queued",
        "progress": 0,
        "created_at": 1787280000
      }
      ```
    </div>

    <ResponseField name="id" type="string">用于查询结果的任务 ID。</ResponseField>
    <ResponseField name="task_id" type="string">任务 ID，与 `id` 相同。</ResponseField>
    <ResponseField name="object" type="string">返回对象类型，固定为 `video`。</ResponseField>
    <ResponseField name="model" type="string">任务使用的 AnyFast 模型 ID。</ResponseField>
    <ResponseField name="status" type="string">初始任务状态，通常为 `queued`。</ResponseField>
    <ResponseField name="progress" type="integer">初始任务进度百分比。</ResponseField>
    <ResponseField name="created_at" type="integer">创建时间，Unix 秒级时间戳。</ResponseField>
  </Tab>

  <Tab title="文件或网页参考">
    ## 创建任务

    `POST /v1/video/generations`

    <div className="kling-api-example-panel">
      <CodeGroup>
        ```bash 文件 theme={null}
        curl --request POST \
          --url https://www.anyfast.ai/v1/video/generations \
          --header 'Authorization: Bearer YOUR_API_KEY' \
          --header 'Content-Type: application/json' \
          --data '{
            "model": "wan3.0-video",
            "input": {
              "prompt": "根据提供的演示文稿制作一段简洁的产品发布视频，突出设计细节和三个核心优势。",
              "media": [
                {
                  "type": "file",
                  "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260806/ebapmr/glass.pptx"
                }
              ]
            },
            "parameters": {
              "resolution": "1080P",
              "ratio": "16:9",
              "duration": 10,
              "audio": true,
              "seed": 42,
              "watermark": false
            }
          }'
        ```

        ```bash 网页 theme={null}
        curl --request POST \
          --url https://www.anyfast.ai/v1/video/generations \
          --header 'Authorization: Bearer YOUR_API_KEY' \
          --header 'Content-Type: application/json' \
          --data '{
            "model": "wan3.0-video",
            "input": {
              "prompt": "将该公开网页的主要内容制作成一段简洁的配音视频。",
              "media": [
                {
                  "type": "link",
                  "url": "https://example.com/public-product-overview"
                }
              ]
            },
            "parameters": {
              "resolution": "1080P",
              "ratio": "16:9",
              "duration": 10,
              "audio": true,
              "seed": 42,
              "watermark": false
            }
          }'
        ```
      </CodeGroup>
    </div>

    ## 请求头

    <ParamField header="Authorization" type="string" required>Bearer 鉴权，格式为 `Bearer YOUR_API_KEY`。</ParamField>
    <ParamField header="Content-Type" type="string" default="application/json" required>请求体格式。</ParamField>

    ## 请求体

    <ParamField body="model" type="string" required>使用 `wan3.0-video`，或在 `Direct` 资源组中使用 AnyFast 特有的 `wan3.0-video-nsfw` 变体。</ParamField>
    <ParamField body="input" type="object" required>基础生成输入，必须至少提供 `input.prompt` 或 `input.media` 之一。</ParamField>
    <ParamField body="input.prompt" type="string">视频指令，超过 20,000 个字符的部分会自动截断。</ParamField>
    <ParamField body="input.media" type="object[]" required>最多提供一个文件或一个网页链接。`file` 与 `link` 互斥，且二者都不能与 `first_frame` 或 `last_frame` 混用。</ParamField>
    <ParamField body="input.media[].type" type="string" required>文档使用 `file`，公开网页使用 `link`。</ParamField>
    <ParamField body="input.media[].url" type="string" required>公开 HTTP 或 HTTPS URL；网页必须无需登录即可访问。</ParamField>
    <ParamField body="parameters" type="object">视频生成控制参数。</ParamField>
    <ParamField body="parameters.resolution" type="string" default="1080P">输出分辨率：`1080P`、`720P` 或 `480P`。</ParamField>
    <ParamField body="parameters.ratio" type="string" default="adaptive">输出宽高比：`adaptive`、`16:9`、`4:3`、`1:1`、`3:4` 或 `9:16`。</ParamField>
    <ParamField body="parameters.duration" type="integer" default={5}>输出时长（秒）。使用 `-1` 智能选择时长，或填写 2–30 的整数。</ParamField>
    <ParamField body="parameters.audio" type="boolean" default={true}>生成视频是否包含音轨；设为 `true` 或 `false` 的价格相同。</ParamField>
    <ParamField body="parameters.seed" type="integer">随机种子，取值范围为 `0`–`2147483647`。</ParamField>
    <ParamField body="parameters.watermark" type="boolean" default={false}>是否为生成视频添加水印。</ParamField>

    ## 创建响应

    <div className="kling-api-example-panel">
      ```json 200 theme={null}
      {
        "id": "asyntask_wan30example123",
        "task_id": "asyntask_wan30example123",
        "object": "video",
        "model": "wan3.0-video",
        "status": "queued",
        "progress": 0,
        "created_at": 1787280000
      }
      ```
    </div>

    <ResponseField name="id" type="string">用于查询结果的任务 ID。</ResponseField>
    <ResponseField name="task_id" type="string">任务 ID，与 `id` 相同。</ResponseField>
    <ResponseField name="object" type="string">返回对象类型，固定为 `video`。</ResponseField>
    <ResponseField name="model" type="string">任务使用的 AnyFast 模型 ID。</ResponseField>
    <ResponseField name="status" type="string">初始任务状态，通常为 `queued`。</ResponseField>
    <ResponseField name="progress" type="integer">初始任务进度百分比。</ResponseField>
    <ResponseField name="created_at" type="integer">创建时间，Unix 秒级时间戳。</ResponseField>
  </Tab>

  <Tab title="查询任务">
    ## 按 ID 查询任务

    `GET /v1/video/generations/{id}`

    <div className="kling-api-example-panel">
      ```bash cURL theme={null}
      curl --request GET \
        --url https://www.anyfast.ai/v1/video/generations/asyntask_wan30example123 \
        --header 'Authorization: Bearer YOUR_API_KEY'
      ```
    </div>

    ## 请求头

    <ParamField header="Authorization" type="string" required>Bearer 鉴权，格式为 `Bearer YOUR_API_KEY`。</ParamField>

    ## 路径参数

    <ParamField path="id" type="string" required>创建请求返回的任务 ID。</ParamField>

    <Note>阿里云官方说明生成通常需要 1–5 分钟，并建议约每 15 秒轮询一次。该上游典型值不是 AnyFast 的服务等级承诺，实际处理时间可能不同。任务创建后可查询 24 小时，成功结果 URL 的有效期同样为 24 小时。</Note>

    ## 查询响应

    <div className="kling-api-example-panel">
      ```json 200 theme={null}
      {
        "code": "success",
        "message": "",
        "data": {
          "task_id": "asyntask_wan30example123",
          "action": "generate",
          "status": "SUCCESS",
          "fail_reason": "https://example.com/generated-video.mp4",
          "result_url": "https://example.com/generated-video.mp4",
          "submit_time": 1787280000,
          "start_time": 1787280005,
          "finish_time": 1787280125,
          "progress": "100%",
          "request_id": "request_wan30example123",
          "data": {
            "output": {
              "end_time": "2026-08-21 08:02:05.000",
              "orig_prompt": "一只小猫在月光下的屋顶奔跑，远处霓虹灯闪烁。",
              "scheduled_time": "2026-08-21 08:00:05.000",
              "submit_time": "2026-08-21 08:00:00.000",
              "task_id": "upstream_task_wan30example123",
              "task_status": "SUCCEEDED",
              "video_url": "https://example.com/generated-video.mp4"
            },
            "request_id": "upstream_request_wan30example123",
            "usage": {
              "SR": 1080,
              "duration": 8,
              "fps": 30,
              "input_video_duration": 0.0,
              "output_video_duration": 8.0,
              "ratio": "16:9",
              "video_count": 1
            }
          }
        }
      }
      ```
    </div>

    <ResponseField name="code" type="string">响应状态码，`success` 表示查询请求已成功处理。</ResponseField>
    <ResponseField name="message" type="string">响应消息。查询成功时通常为空字符串。</ResponseField>
    <ResponseField name="data" type="object">任务状态与结果数据。</ResponseField>
    <ResponseField name="data.task_id" type="string">AnyFast 任务 ID。</ResponseField>
    <ResponseField name="data.action" type="string">任务动作。Wan3.0 创建任务返回 `generate`。</ResponseField>
    <ResponseField name="data.status" type="string">任务状态：`NOT_START`、`QUEUED`、`IN_PROGRESS`、`SUCCESS` 或 `FAILURE`。请使用此字段判断任务是否失败。</ResponseField>
    <ResponseField name="data.fail_reason" type="string">兼容字段。部分成功响应会像上例一样在此重复 `result_url`；非空值不代表任务失败。请根据 `status` 判断结果，并从 `result_url` 读取生成地址。`FAILURE` 状态下此字段可能包含失败详情。</ResponseField>
    <ResponseField name="data.result_url" type="string | null">`status` 为 `SUCCESS` 时返回生成视频的临时 URL；任务完成前可能省略此字段。</ResponseField>
    <ResponseField name="data.submit_time" type="integer">任务提交时间，Unix 秒级时间戳。</ResponseField>
    <ResponseField name="data.start_time" type="integer">任务开始时间，Unix 秒级时间戳；任务仍在排队时为 `0`。</ResponseField>
    <ResponseField name="data.finish_time" type="integer">任务完成时间，Unix 秒级时间戳；到达终态前为 `0`。</ResponseField>
    <ResponseField name="data.progress" type="string">任务进度百分比字符串，例如 `100%`。</ResponseField>
    <ResponseField name="data.request_id" type="string">AnyFast 请求追踪 ID。</ResponseField>
    <ResponseField name="data.data" type="object">原始上游响应数据。</ResponseField>
    <ResponseField name="data.data.output" type="object">原始上游任务输出。</ResponseField>
    <ResponseField name="data.data.output.end_time" type="string">上游任务完成时间，仅在成功完成后出现。</ResponseField>
    <ResponseField name="data.data.output.orig_prompt" type="string">上游服务收到的提示词，仅在成功完成后出现。</ResponseField>
    <ResponseField name="data.data.output.scheduled_time" type="string">上游任务调度时间，开始处理后出现；排队阶段可能省略。</ResponseField>
    <ResponseField name="data.data.output.submit_time" type="string">上游任务提交时间。</ResponseField>
    <ResponseField name="data.data.output.task_id" type="string">上游任务 ID。</ResponseField>
    <ResponseField name="data.data.output.task_status" type="string">上游任务状态。</ResponseField>
    <ResponseField name="data.data.output.video_url" type="string">原始上游输出中的生成视频 URL，仅在成功完成后出现。</ResponseField>
    <ResponseField name="data.data.request_id" type="string">上游请求追踪 ID。</ResponseField>
    <ResponseField name="data.data.usage" type="object">上游视频用量详情，仅在成功完成后出现；排队或处理阶段会省略。</ResponseField>
    <ResponseField name="data.data.usage.SR" type="integer">上游输出分辨率值。</ResponseField>
    <ResponseField name="data.data.usage.duration" type="integer">生成时长（秒）。</ResponseField>
    <ResponseField name="data.data.usage.fps" type="integer">生成视频帧率。</ResponseField>
    <ResponseField name="data.data.usage.input_video_duration" type="number">输入视频总时长（秒）。</ResponseField>
    <ResponseField name="data.data.usage.output_video_duration" type="number">输出视频时长（秒）。</ResponseField>
    <ResponseField name="data.data.usage.ratio" type="string">生成视频宽高比。</ResponseField>
    <ResponseField name="data.data.usage.video_count" type="integer">生成视频数量。</ResponseField>
  </Tab>
</Tabs>

## 媒体限制

### 图片

* 用途：`first_frame`、`last_frame` 和 `reference_image`。
* 格式：JPEG、JPG、不含透明通道的 PNG、BMP 或 WEBP。
* 每边 240–8,000 px，宽高比不得超过 8:1，单张图片不得超过 20 MB。
* 支持公开 HTTP 或 HTTPS URL 和 Base64 data URI。首帧最多 1 张、尾帧最多 1 张、参考图最多 10 张。

### 视频

* 用途：`reference_video`；最多 5 段，总时长不超过 15 秒。
* 格式：MP4 或 MOV。单段 1–15 秒，每边 240–4,096 px，宽高比不得超过 8:1，单个文件不得超过 100 MB。
* 视频必须使用公开 HTTP 或 HTTPS URL。

### 音频

* 用途：`reference_audio`；最多 5 段，总时长不超过 15 秒。
* 格式：WAV 或 MP3。单段 1–15 秒，单个文件不得超过 15 MB。
* 音频必须使用公开 HTTP 或 HTTPS URL。

### 文件和网页

* `file` 支持 DOCX、DOC、XLSX、XLS、PPTX、PPT、PDF、TXT、KEY、PAGES、NUMBERS 和 MD，文件不得超过 100 MB。
* PDF、DOCX、DOC、PPTX、PPT、KEY 和 PAGES 最多支持 50 页。
* `link` 支持无需登录即可访问的公开 HTTP 或 HTTPS 网页。
* 最多提供一个 `file` 或一个 `link`，两者互斥。

<Warning>
  `reference_image`、`reference_video`、`reference_audio`、`file` 和 `link` 不能与 `first_frame` 或 `last_frame` 出现在同一个请求中。
</Warning>

资料来源：[阿里云 Wan3.0 视频生成 API 参考](https://www.alibabacloud.com/help/zh/model-studio/wan3-video-generation-api-reference)。
