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

# Kling V2.6 Pro 文生视频

Kling v2.6 Pro 文本转视频工具可根据文本提示词生成高质量动态视频，支持音视频同步生成。

<Tip>
  这是一个**异步**API，只会返回异步任务的 task\_id。您应该使用该 task\_id 请求 [查询任务结果 API](/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="sound" type="boolean" default={true}>
  是否在生成视频时同时生成音频。
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  生成视频的正向提示词文本；不可超过 2500 个字符。
</ParamField>

<ParamField body="duration" type="integer" default={5}>
  生成媒体的持续时间（秒）

  可选值：`5`, `10`
</ParamField>

<ParamField body="cfg_scale" type="number" default={0.5}>
  控制视频生成的灵活性，数值越高，模型生成内容对提示词的贴合度越高。

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

<ParamField body="aspect_ratio" type="string" default="1:1">
  生成视频的宽高比

  可选值：`16:9`, `9:16`, `1:1`
</ParamField>

<ParamField body="negative_prompt" type="string">
  反向提示词；长度不超过 2500 字符。
</ParamField>

## 响应

<ResponseField name="task_id" type="string" required={true}>
  异步任务的 task\_id。您应该使用该 task\_id 请求 [查询任务结果 API](/models/reference-get-async-task-result) 以获取生成结果
</ResponseField>
