Kling AI & Kling API / remarkable image and video generation at your fingertips!
PiAPI's Kling AI & API supports Kling's 1.0, 1.5, 1.6, 2.0, 2.1 Video Model (by Kuaishou), allows users to try and integrate the exceptional video generation (from text, from images, or from videos) & virtual try on capabilities into your platform!
Our Pricing Plans
Test generation quality above, then choose the Kling version, quality mode, and duration that fit your workflow.
Video generation by version
Kling 3.0
$0.10-$0.20/s /generation
- Standard to Pro with native audio
Kling 3.0 Omni
$0.10-$0.15/s /generation
- 720p Standard to 1080p Pro
Kling 2.6
$0.20-$0.66 /generation
- Per 5s video
- Standard to Pro with native audio
Kling 2.5
$0.20-$0.33 /generation
- Per 5s video
- Standard to Pro
Kling 2.1 Master
$0.96 /generation
- Per 5s video
- Master tier
Kling 1.6
$0.26-$0.46 /generation
- Per 5s video
- Standard to Pro
Capability models
Kling 2.6 Motion Control
$0.065-$0.26/s /generation
- Per second, 2.6 Standard to 3.0 Pro
Kling O1
$0.39-$1.04 /generation
- 5s 720p Standard to 10s 1080p Pro
Kling AI Avatar
$0.052-$0.26/s /generation
- Per second, Standard to Pro
Kling Effects
$0.20-$0.30/gen /generation
- Per generation, all effect templates
Kling Lip Sync
$0.10/5s /generation
- Per 5 seconds of dubbed video
Kling Sound
$0.07/gen /generation
- Per sound generation
Kling Virtual Try-On
$0.07/img /generation
- Per generated image
Kling 2.5 Turbo Pro
$0.28/5s /generation
- 10s $0.56
- Replicate-routed turbo tier
Bring your own account
Host-Your-Account
$10/seat/month /generation
- Connect your own Kling accounts!
- Access to all our Kling API features
- Hosting multiple accounts supported
- Load Balancer for multi-accounts
Build with Kling video generation
Capabilities from the production model page.
Image-to-Video Supported!
Kling AI 1.6, 2.0, & 2.1 are the most powerful AI model suite that transforms your imagination into dynamic videos based on the original image, while adhering to textual prompts controls.
Professional Camera Movement
State of the art 3D spatio-temporal attention modules are capable of various camera movements to generate immersive and engaging video content with complex cinematic relations.
Video Continuation
Our API allows for multiple video extensions based on original videos. Each extension adds 4.5 seconds of additional content while being finely controlled by the users textual prompts.
Kling AI Virtual Try on
Powered by Kling AI Image generator, the virtual try on API supports single and multiple garments as inputs; you can upload a picture of the model to wear the garments as well!
Accurate Physics Simulation
By leveraging Kuaishou proprietary model architecture and extensive training dataset, Kling can accurately simulate real world physics, producing videos aligned within realistic constraints.
Asynchronous API Calls
Our API is designed to be called asynchronously with callback function, so that users can submit tasks and be notified upon their completion, avoiding program interruptions.
Powerful Conceptual Illustration
Through superb semantic understanding and the privately-trained Diffusion Transformer model, Kling can translate user imagination into specific visuals, generating scenes which would be difficult to recreate in the real world.
Cinematic Experience in Every Frame
Using our in-house three dimensional Variational Autoencoder, it is capable of creating 1080p resolution videos with stunning visual quality, covering from large, majestic landscapes to finely detailed close-ups.
Adjustable Aspect Ratios
Whether you are using our API for systematic content creation for social media, entertainment, or other goals, our technology can generate various aspect ratios meeting a broad spectrum of video usage scenarios.
Get started with the Kling API
Create your API key
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Top up credits
Add credits on the billing page when you are ready to scale beyond the free tier.
Call the API
POST your first task following the API docs, then poll the task until the result is ready.
Iterate in the playground
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "kling",
"task_type": "video_generation",
"input": {
"version": "2.6",
"mode": "std",
"duration": 5,
"aspect_ratio": "16:9",
"prompt": "A quiet morning scene"
}
}'
# → { "task_id": "9d5a…", "status": "pending" }curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'
# poll until status = completed
{
"data": {
"status": "completed",
"output": {
"video_url": "https://img.theapi.app/ephemeral/…"
}
}
}$ npm install -g piapi-cli $ piapi run kling-api \ version=2.6 \ mode=std \ duration=5 \ aspect_ratio=16:9 \ prompt="A quiet morning scene" ✓ Task completed! https://img.theapi.app/ephemeral/…
Kling API FAQ
What is Kling?
is the state of the art video generation AI model developed by Kuaishou, which is one of the world's largest video-based social network with a user base over 400 million users. This model allows users to create high quality, realistic videos from user-input text prompts, static images, or existing videos.
What is the Kling API?
PiAPI's Kling API gives developers worldwide direct access to Kling's video models through one REST endpoint — text-to-video, image-to-video, and video-to-video. No waitlist, no enterprise contract, and no minimum spend: grab a key and start calling in minutes.
What type of videos can I make with Kling API?
Our Kling API can help users generate cinematic videos all types. Our API also enables the creation of video extensions from original videos. Each extension introduces an additional 4.5 seconds of content, precisely controlled by user text prompts!
What are the current limitations with regarding to the Kling Model?
Sometimes the generated resolution is not as high as users would hope for (i.e. 1080p), but with time and as inference infrastructure become more robust from Kuaishou, it will most likely solved with more computing power.
Can I use videos generated from the Kling API for commercial purposes?
Yes. Videos generated through the Kling API can be used for commercial purposes such as content creation, marketing, advertising, and product demos.
More questions? See the API docs.
Latest Kling guides
Practical setup, model comparisons, and production tips—six highlights on mobile, with more in the blog.





















