> ## 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 O1

> 通過 Omni 端點進行多模態參考生成和影片編輯。僅保留原聲或靜音，不支援原生音訊生成、4K 或影片角色 Element。

通過 Omni 端點進行多模態參考生成和影片編輯。僅保留原聲或靜音，不支援原生音訊生成、4K 或影片角色 Element。

## 模型規格

| 專案        | 說明                                                             |
| --------- | -------------------------------------------------------------- |
| ID        | `kling-o1`                                                     |
| 介面        | [Omni 生成與編輯](/zh-hant/api-reference/endpoint/kling-omni-video) |
| 普通生成解析度   | 720p / 1080p                                                   |
| 普通生成時長（秒） | 3-10                                                           |

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

## 請求示例

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

```bash theme={null}
curl --request POST "https://api.mixroute.ai/kling/omni-video/kling-o1" \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "contents": [
    {
      "type": "prompt",
      "text": "Change the red mug in @video_1 to blue. Preserve the original motion and background."
    },
    {
      "type": "base_video",
      "url": "https://example.com/source.mp4",
      "id": "video_1"
    }
  ],
  "settings": {
    "resolution": "720p",
    "duration": 5,
    "audio": "off"
  }
}'
```

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