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

# 万相 Wan 2.7 文生视频

万相 Wan 2.7 文生视频模型，基于文本提示词生成流畅视频。支持音频驱动或自动配音，支持720P和1080P分辨率，时长2\~15秒，按秒计费。输出默认包含音频。

<Tip>
  这是一个**异步**API，只会返回异步任务的 task\_id。您应该使用该 task\_id 请求 [查询任务结果 API](/docs/models/reference-get-async-task-result) 来检索生成结果。
</Tip>

## 请求头

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

<ParamField header="Authorization" type="string" required={true}>
  Bearer 身份验证格式: Bearer \{\{API 密钥}}。
</ParamField>

## 请求体

<ParamField body="seed" type="integer">
  随机数种子，用于提升生成结果的可复现性。取值范围\[0, 2147483647]。

  取值范围：\[0, 2147483647]
</ParamField>

<ParamField body="size" type="string" default="1920*1080">
  输出视频分辨率（宽*高），影响费用。720P档位：1280*720（16:9）、720*1280（9:16）、960*960（1:1）、1088*832（4:3）、832*1088（3:4）。1080P档位：1920*1080（16:9）、1080*1920（9:16）、1440*1440（1:1）、1632*1248（4:3）、1248\*1632（3:4）。

  可选值：`1280*720`, `720*1280`, `960*960`, `1088*832`, `832*1088`, `1920*1080`, `1080*1920`, `1440*1440`, `1632*1248`, `1248*1632`
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  文本提示词，用于描述生成视频中期望包含的元素和视觉特点。支持中英文，最多1500个字符，超过部分自动截断。

  长度限制：0 - 1500
</ParamField>

<ParamField body="duration" type="integer" default={5}>
  生成视频时长，单位为秒，按秒计费。取值范围\[2, 15]的整数。

  取值范围：\[2, 15]
</ParamField>

<ParamField body="audio_url" type="string">
  音频文件URL，模型将使用该音频驱动视频生成（如口型同步、动作卡点等）。未传入时模型自动生成匹配的背景音乐或音效。格式支持wav、mp3，时长3\~30秒，文件不超过15MB。若音频超过视频时长则截取，不足则超出部分无声。
</ParamField>

<ParamField body="watermark" type="boolean" default={false}>
  是否添加水印标识，水印位于视频右下角。
</ParamField>

<ParamField body="prompt_extend" type="boolean" default={true}>
  是否开启prompt智能改写。开启后使用大模型对输入prompt进行智能改写，对较短的prompt生成效果提升明显，但会增加耗时。
</ParamField>

<ParamField body="negative_prompt" type="string">
  反向提示词，用于描述不希望在视频画面中出现的内容。支持中英文，最多500个字符。

  长度限制：0 - 500
</ParamField>

## 响应信息

<ResponseField name="task_id" type="string" required={false}>
  使用 task\_id 请求 [查询任务结果 API](/docs/models/reference-get-async-task-result) 来检索生成的输出。
</ResponseField>
