Kling 4.0 Text to Video overview
Kling 4.0 Text to Video specs
- Model ID
klingai/video-v4-text-to-video- Developer
- Kling AI
- Input
- Text
- Output
- Video
- Endpoint
POST https://api.aimlapi.com/v2/video/generations
What is Kling 4.0 Text to Video API?
Kling 4.0 text-to-video generates 3–30 second videos at 720p or 1080p from a prompt or a multi-shot storyboard, with stable motion and complex camera moves. It is part of Kling AI's new-generation Kling 4.0 video model family and is available on AI/ML API through the video generation endpoint.
Technical specifications
- Supported inputs: text prompt or multi-shot prompts
- Model ID: klingai/video-v4-text-to-video
- Release date: October 15, 2026
Where to use Kling 4.0 Text to Video
Short-form and social video
Generate clips for social, ads and product demos directly from a prompt.
Multi-shot storytelling
Describe several shots with their own durations and get one continuous video of up to 30 seconds.
Previsualization and storyboards
Prototype camera moves and scene composition before committing to production.
Use cases
Kling 4.0 Text to Video generates 3–30 second clips from a single prompt, suited to social posts, ads and product demos.
Multi-shot prompts let you script several shots with individual durations and get one continuous video, which fits storyboard-style storytelling.
Stable motion and complex camera moves make it a fit for cinematic scenes and previsualization.
720p output keeps iteration costs low, while 1080p is available for final renders.
Kling 4.0 Text to Video API pricing
| Usage | Price | Unit |
|---|---|---|
| Video generation | $0.157 | per second |
The final price depends on request parameters such as resolution or duration.
Prices from the AI/ML API price list, checked on Nov 4, 2026.
Kling 4.0 Text to Video vs other video models: prices
AI/ML API rates for 5 models, per second.
| Model | Per second |
|---|---|
| $0.157 | |
| $0.157 | |
| $0.157 | |
| $0.16 | |
| $0.188 |
How to use the Kling 4.0 Text to Video API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v2/video/generations' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "klingai/video-v4-text-to-video"
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "klingai/video-v4-text-to-video"
}
response = requests.post("https://api.aimlapi.com/v2/video/generations", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v2/video/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "klingai/video-v4-text-to-video"
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());The request returns a generation id. Poll GET https://api.aimlapi.com/v2/video/generations?generation_id=<id> until the status is completed.
Related articles
Kling 4.0 Text to Video FAQ
What is Kling 4.0 Text to Video?
Kling 4.0 Text to Video is Kling AI's new-generation text-to-video model. It generates 3–30 second videos at 720p or 1080p from a single prompt or a multi-shot storyboard, with stable motion and complex camera moves.
What inputs and outputs does Kling 4.0 Text to Video support?
Kling 4.0 Text to Video takes a text prompt (or a list of per-shot prompts) as input and returns a video.
How long can Kling 4.0 Text to Video clips be?
Clips can be 3 to 30 seconds long. With multi-shot prompts, the video length is the sum of the shot durations. Output resolution is 720p or 1080p.
How much does Kling 4.0 Text to Video cost?
Kling 4.0 Text to Video costs $0.157 per second on AI/ML API, billed as you go with no subscription.
What other Kling 4.0 modes are available?
Kling 4.0 is also available on AI/ML API as Image to Video, Reference to Video and Video Editing, all through the same video generation endpoint.
How do I call Kling 4.0 Text to Video via API?
Submit a POST request to https://api.aimlapi.com/v2/video/generations with the model ID klingai/video-v4-text-to-video and a prompt, then poll the same endpoint with the returned generation_id until the status is completed.
What is the Kling 4.0 Text to Video model ID?
Use klingai/video-v4-text-to-video as the model parameter. Requests go to https://api.aimlapi.com/v2/video/generations with your AI/ML API key.

