Kling 4.0
Neural Network
Kling 4.0 video model: generate and edit 3–30s videos up to 1080p from text, keyframes, and references.
Specifications
- Input
- text, images, video
- Output
- video
- Video duration
- 3–30 s
- Resolution
- 720p, 1080p
- Aspect ratio
- 16:9, 9:16, 1:1, 21:9
Video generation
(duration 8 sec., 720p)
Video generation
(duration 8 sec., 1080p)
async function generateVideo() {
const BASE_URL = 'https://openai.bothub.chat/v1';
const API_KEY = '<your bothub access token>';
// Step 1: create the generation request
const createRes = await fetch(`${BASE_URL}/videos/generations`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
model: 'kling-v4.0',
prompt: 'Timelapse of a blooming flower in a sunny garden',
notify: false,
settings: {
duration_seconds: 6,
aspect_ratio: '16:9',
},
}),
});
const { id } = await createRes.json();
// Step 2: poll the status until the video is ready
let video;
while (true) {
await new Promise((r) => setTimeout(r, 10000));
const statusRes = await fetch(`${BASE_URL}/videos/${id}?include_usage=true`, {
headers: { Authorization: `Bearer ${API_KEY}` },
});
video = await statusRes.json();
if (video.status === 'completed' || video.status === 'failed') break;
}
if (video.status === 'completed') {
console.log('Video URL:', video.unsignedUrls[0]);
} else {
console.error('Generation error:', video.error);
}
}generateVideo();
How it works Kling 4.0?
Kling 4.0 is a video model that creates clips from 3 to 30 seconds long with resolutions up to 1080p based on text descriptions, keyframes, reference images, or reference videos. It also features an editing mode: the model can refine existing material, not just build scenes from scratch. Via BotHub, it works from Russia without a VPN or foreign card, with payment in rubles for tokens and caps that do not expire. All neural networks are in one window, making it easy to compare Kling 4.0 with other video models on the same task, and a unified API allows switching models without rewriting integrations; contracts, invoices, and limits are available for companies. Use cases: promos and product cards for stores and marketplaces, storyboards and previz for agencies, vertical clips for creator channels, product demos for product teams, and refining existing videos instead of reshooting.Frequently asked questions about Kling 4.0
You can use generated results for commercial purposes. You own all rights to the content you create. The only restriction: make sure your prompt does not include copyrighted third-party material. You are responsible for respecting the rights to any input data.
kling-v4.0 is a generative video model: it creates clips from text descriptions, animates static images, and processes existing videos. Via BotHub, it is available from Russia without a VPN or foreign card, with pay-as-you-go billing using tokens that do not expire.
Specific resolution, duration, and file format depend on the selected generation mode and are set when starting the task. We do not provide universal figures to avoid overpromising: refer to the parameters shown by BotHub before submitting the request.
No, this is a generative video model, not a text assistant: it does not build chains of thought or explain its reasoning. You describe the scene, set the necessary parameters, and receive the finished clip.
Function calling and structured JSON output are not provided for kling-v4.0: it is a video model, not a language model with tools. If your product needs function calling, choose a text model in BotHub — all are available via a unified OpenAI-compatible API.
Yes, you can input images and video: there are modes for generation from images and processing existing clips. Text is also accepted — video is created from scratch based on it. Audio cannot be input: this capability is not available in our data.
The model is stated as English-speaking, so it is better to provide scene descriptions in English — otherwise, the result may be unpredictable. However, BotHub itself works in Russian: the interface, support, and payment in rubles with Russian cards.