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

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# Kling 4.0 API

> Kling 4.0 API on Venice: text to video, image to video and reference to video, up to 4K and 30s clips, from $0.1963 per second. Generates audio.



## Kling 4.0 API

Kling 4.0 is a text to video, image to video and reference to video model by Kling AI, available on the Venice API as `kling-v4-text-to-video`. The provider of this model may retain prompt data (though it is anonymized by Venice). For sensitive content, use a private model.

Kling 4.0 is Kling AI's fourth-generation video model. This text-to-video variant generates 3- to 30-second clips at 720p, 1080p, or 4K with native audio, optional HDR at 1080p and 4K, and multi-shot prompts.

### Kling 4.0 API pricing

| Model ID | Variant | Privacy | Price |
| - | - | - | - |
| `kling-v4-text-to-video` | Text to video | Anonymized | from \$0.1963 / sec |
| `kling-v4-image-to-video` | Image to video | Anonymized | from \$0.1963 / sec |
| `kling-v4-reference-to-video` | Reference to video | Anonymized | from \$0.1963 / sec |

Clip prices for `kling-v4-text-to-video` with audio:

| Duration | 720p | 1080p | 4K |
| - | - | - | - |
| Per second | \$0.1963 | \$0.2938 | \$0.6863 |
| 3s | \$0.59 | \$0.88 | \$2.06 |
| 5s | \$0.98 | \$1.47 | \$3.43 |
| 10s | \$1.96 | \$2.94 | \$6.86 |
| 30s | \$5.89 | \$8.81 | \$20.59 |

Any length from 3 to 30 seconds, priced per second.

### Kling 4.0 specifications

| Spec | Value |
| - | - |
| Provider | Kling AI |
| Released | Oct 24, 2026 |
| Privacy | Anonymized |
| Status | Stable |
| Modes | text to video, image to video and reference to video |
| Resolutions | 720p, 1080p, 4K |
| Durations | 3–30s, any whole second |
| Aspect ratios | 16:9, 9:16, 1:1, 21:9 |
| Audio | Always generated |

### How to use the Kling 4.0 API

Send requests to `POST https://api.venice.ai/api/v1/video/queue` with `"model": "kling-v4-text-to-video"` and your API key.

```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 (JSON with the status until then)
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

# If the queue response has a download_url, retrieve only reports the
# status: download the MP4 from that URL once it is COMPLETED.
```

### Related models

* [Flux 3 Max API](https://docs.venice.ai/models/flux-3-max.md): from \$0.1276 / sec
* [MiniMax H3 Chili API](https://docs.venice.ai/models/minimax-h3-chili.md): from \$0.0347 / sec
* [MiniMax H3 Hyper API](https://docs.venice.ai/models/minimax-h3-hyper.md): from \$0.0305 / sec
* [MiniMax H3 Max Recast API](https://docs.venice.ai/models/minimax-h3-max-recast.md): priced by source


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