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

# Kling 3.0 — 4K 图生视频

> 使用快手 Kling 3.0 将参考图片动画化为 4K 视频。可选合成音频。

|           |                            |
| --------- | -------------------------- |
| **模型 ID** | `kuaishou/kling-v3-4k-i2v` |
| **系列**    | `kling-v3-novita`          |
| **任务**    | `image-to-video`           |
| **模态**    | 视频                         |
| **上游**    | Kuaishou Kling 3.0 (4K)    |

<Note>
  `sound: true` 会将每秒计费费率从 **$0.399/s**
      （无音频）切换为 **$0.599/s**（含音频）。默认值为 `false`。
</Note>

## Endpoint

```http theme={null}
POST https://vibetoken.cn/v1/videos/generations
```

异步 — 返回 `{id, status: "pending"}`；轮询
`GET /v1/videos/generations/{id}` 直到 `success` 或 `failed`。

## Parameters

<ParamField body="prompt" type="string" required>
  描述运动 / 场景变化的文本提示词。最多 2500 个字符。
</ParamField>

<ParamField body="image_urls" type="string[]" required>
  恰好一个源图片 URL（HTTPS，PNG / JPEG）。
</ParamField>

<ParamField body="end_image" type="string">
  可选的公开 HTTPS URL，用于固定输出的最后一帧。
</ParamField>

<ParamField body="duration" type="integer" default="5">
  生成片段的时长（秒）。范围 `[3, 15]`。影响计费。
</ParamField>

<ParamField body="sound" type="boolean" default="false">
  是否合成音轨。会将每秒费率从
  $0.399/s 切换为 $0.599/s。
</ParamField>

<ParamField body="cfg_scale" type="number" default="0.5">
  无分类器引导（classifier-free guidance）强度。范围 `[0, 1]`。
</ParamField>

<ParamField body="negative_prompt" type="string">
  引导模型远离的内容。最多 2500 个字符。
</ParamField>

## Example

```bash theme={null}
curl https://vibetoken.cn/v1/videos/generations \
  -H "Authorization: Bearer $VIBETOKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kuaishou/kling-v3-4k-i2v",
    "prompt": "the subject turns toward the camera and smiles",
    "image_urls": ["https://example.com/portrait.jpg"],
    "duration": 5,
    "sound": true
  }'
```

```json theme={null}
{ "id": "kling_002…", "status": "pending", "model": "kuaishou/kling-v3-4k-i2v" }
```

轮询直到终态：

```bash theme={null}
curl https://vibetoken.cn/v1/videos/generations/kling_002… \
  -H "Authorization: Bearer $VIBETOKEN_API_KEY"
```

```json theme={null}
{
  "id": "kling_002…",
  "status": "success",
  "data": [{ "url": "https://…mp4" }]
}
```

## Reference
