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

# Kling 4.0 API

> Venice 上的 Kling 4.0 API：文生视频、图生视频和参考生视频，最高 1080p，片段最长 30s，每秒 $0.1963 起。可生成音频。

> [accordion] 纯文本规格说明
>
> ## Kling 4.0 API
>
> Kling 4.0 是由 Kling AI 推出的文生视频、图生视频和参考生视频模型，可通过 Venice API 以 `kling-v4-text-to-video` 调用。请求经过匿名化处理，服务提供商永远不会看到您的身份。
>
> ### Kling 4.0 API 价格
>
> | 模型 ID | 变体 | 隐私 | 价格 |
> | - | - | - | - |
> | `kling-v4-text-to-video` | 文生视频 | Anonymized | \$0.1963 / 秒 起 |
> | `kling-v4-image-to-video` | 图生视频 | Anonymized | \$0.1963 / 秒 起 |
> | `kling-v4-reference-to-video` | 参考生视频 | Anonymized | \$0.1963 / 秒 起 |
>
> `kling-v4-text-to-video` 的片段价格（含音频）：
>
> | 时长 | 720p | 1080p |
> | - | - | - |
> | 3s | \$0.59 | \$0.88 |
> | 4s | \$0.79 | \$1.18 |
> | 5s | \$0.98 | \$1.47 |
> | 6s | \$1.18 | \$1.76 |
> | 7s | \$1.37 | \$2.06 |
> | 8s | \$1.57 | \$2.35 |
> | 9s | \$1.77 | \$2.64 |
> | 10s | \$1.96 | \$2.94 |
> | 11s | \$2.16 | \$3.23 |
> | 12s | \$2.36 | \$3.53 |
> | 13s | \$2.55 | \$3.82 |
> | 14s | \$2.75 | \$4.11 |
> | 15s | \$2.94 | \$4.41 |
> | 16s | \$3.14 | \$4.70 |
> | 17s | \$3.34 | \$4.99 |
> | 18s | \$3.53 | \$5.29 |
> | 19s | \$3.73 | \$5.58 |
> | 20s | \$3.93 | \$5.88 |
> | 21s | \$4.12 | \$6.17 |
> | 22s | \$4.32 | \$6.46 |
> | 23s | \$4.51 | \$6.76 |
> | 24s | \$4.71 | \$7.05 |
> | 25s | \$4.91 | \$7.34 |
> | 26s | \$5.10 | \$7.64 |
> | 27s | \$5.30 | \$7.93 |
> | 28s | \$5.50 | \$8.23 |
> | 29s | \$5.69 | \$8.52 |
> | 30s | \$5.89 | \$8.81 |
>
> ### Kling 4.0 规格
>
> | 规格 | 值 |
> | - | - |
> | 提供商 | Kling AI |
> | 发布日期 | 2026年10月24日 |
> | 隐私 | Anonymized |
> | 状态 | 稳定 |
> | 模式 | 文生视频、图生视频和参考生视频 |
> | 分辨率 | 720p, 1080p |
> | 时长 | 3s, 4s, 5s, 6s, 7s, 8s, 9s, 10s, 11s, 12s, 13s, 14s, 15s, 16s, 17s, 18s, 19s, 20s, 21s, 22s, 23s, 24s, 25s, 26s, 27s, 28s, 29s, 30s |
> | 宽高比 | 16:9, 9:16, 1:1, 21:9 |
> | 音频 | 始终生成 |
>
> ### 如何使用 Kling 4.0 API
>
> 使用 `"model": "kling-v4-text-to-video"` 和您的 API 密钥向 `POST https://api.venice.ai/api/v1/video/queue` 发送请求。
>
> ```bash theme={"system"}
> # 1. Queue the job (returns a queue_id)
> curl https://api.venice.ai/api/v1/video/queue \
>   -H "Authorization: Bearer $VENICE_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "model": "kling-v4-text-to-video",
>     "prompt": "Slow aerial drone shot over a misty mountain valley at golden hour",
>     "duration": "5s",
>     "resolution": "720p",
>     "aspect_ratio": "16:9"
>   }'
>
> # 2. Poll until the MP4 is ready
> curl https://api.venice.ai/api/v1/video/retrieve \
>   -H "Authorization: Bearer $VENICE_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{ "model": "kling-v4-text-to-video", "queue_id": "<queue_id>" }' --output video.mp4
> ```
>
> ### 相关模型
>
> * [Flux 3 Max API](https://docs.venice.ai/zh/models/flux-3-max.md): \$0.0638 / 秒 起
> * [MiniMax H3 Max Recast API](https://docs.venice.ai/zh/models/minimax-h3-max-recast.md): 按源视频定价
> * [Grok Imagine 1.5 Lite API](https://docs.venice.ai/zh/models/grok-imagine-1-5-lite.md): \$0.024 / 秒 起
> * [Wan 3.0 Prime Pro API](https://docs.venice.ai/zh/models/wan-3-0-prime-pro.md): \$0.3312 / 秒 起


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.