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

# Kling 2.6

> 支援文生影片、首尾幀圖生和動作控制；普通生成的原生音訊與首尾幀模式要求 1080p，圖生支援音色引用。

支援文生影片、首尾幀圖生和動作控制；普通生成的原生音訊與首尾幀模式要求 1080p，圖生支援音色引用。

## 模型規格

| 專案        | 說明                                                                                                                                                                                        |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ID        | `kling-2.6`                                                                                                                                                                               |
| 介面        | [文生影片](/zh-hant/api-reference/endpoint/kling-text-to-video) / [圖生影片](/zh-hant/api-reference/endpoint/kling-image-to-video) / [動作控制](/zh-hant/api-reference/endpoint/kling-motion-control) |
| 普通生成解析度   | 720p / 1080p                                                                                                                                                                              |
| 普通生成時長（秒） | 5 / 10                                                                                                                                                                                    |

以上時長不用於動作控制；有媒體輸入時還須遵守對應介面的組合限制。模型寫在路徑中，請求體保留原生層級，不用 metadata。

## 請求示例

先設定環境變數 `MIXROUTE_API_KEY`。將 `example.com` 媒體地址替換為無需登入即可訪問的真實素材。

```bash theme={null}
curl --request POST "https://api.mixroute.ai/kling/text-to-video/kling-2.6" \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "prompt": "A person gently taps a ceramic mug on a white tabletop. A clear ceramic tapping sound.",
  "settings": {
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "audio": "native"
  }
}'
```

儲存提交返回的 `data.id`，通過 [查詢 Kling 任務](/zh-hant/api-reference/endpoint/kling-tasks) 讀取狀態與 `outputs`。通用選項與基礎計費見 [Kling 概覽](/zh-hant/api-reference/endpoint/kling)。
