Kling 2.1 Master
Kling 2.1 Master delivers high-quality image-to-video and text-to-video generation with strong prompt adherence through PiAPI.
Kling API 2.1 Master Pricing
Pay-as-you-go access through PiAPI.
Kling 2.1 Master - 5s5s
$0.96
- Master quality, 5 second output.
Kling 2.1 Master - 10s10s
$1.92
- Master quality, 10 second output.
Get started
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.1-master",
"duration": 5,
"aspect_ratio": "16:9",
"prompt": "A cat sleeping peacefully on a floating wooden platform"
}
}'
# → { "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-v2-1-master \ version=2.1-master \ duration=5 \ aspect_ratio=16:9 \ prompt="A cat sleeping peacefully on a floating wooden platform" ✓ Task completed! https://img.theapi.app/ephemeral/…
