
Kling 3.0 API
activeState-of-the-art AI video generation with 4K quality support. Text-to-video and image-to-video capabilities.
Quick Start
Send a request to the Kling 3.0 API:
curl -X POST https://apiin.one/api/v1/videos/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-3",
"prompt": "A golden retriever running through a field of sunflowers at sunset, cinematic quality",
"mode": "std",
"duration": 5,
"aspect_ratio": "16:9",
"sound": true
}'API Endpoint
/api/v1/videos/generationsHeaders
| Header | Tür | Gerekli | Açıklama |
|---|---|---|---|
Authorization | string | Gerekli | Bearer YOUR_API_KEY |
Content-Type | string | Gerekli | application/json |
Body Parameters
| Parametre | Tür | Gerekli | Açıklama |
|---|---|---|---|
model | string | Gerekli | Model identifier: "kling-3" |
prompt | string | Gerekli | Text description of the video (max 2500 chars). Not required if multi_shots is true. |
mode | string | İsteğe Bağlı | Quality mode: "std" (standard) or "pro" (professional) (Varsayılan: std) |
duration | number | İsteğe Bağlı | Video duration in seconds (3–15) (Varsayılan: 5) |
aspect_ratio | string | İsteğe Bağlı | Output aspect ratio: 1:1, 9:16, 16:9 (Varsayılan: 16:9) |
sound | boolean | İsteğe Bağlı | Enable sound/audio generation in the video (Varsayılan: true) |
image | string | İsteğe Bağlı | Image URL for image-to-video mode |
multi_shots | boolean | İsteğe Bağlı | Enable multi-shot mode for multi-scene videos (Varsayılan: false) |
multi_prompt | array | İsteğe Bağlı | Array of {prompt, duration} objects for multi-shot mode |
kling_elements | array | İsteğe Bağlı | Kling-specific creative elements |
Example Request
{
"model": "kling-3",
"prompt": "A golden retriever running through a field of sunflowers at sunset, cinematic quality",
"mode": "std",
"duration": 5,
"aspect_ratio": "16:9",
"sound": true
}Example Response
Successful task creation response.
{
"code": 200,
"message": "success",
"data": {
"task_id": "n75xxxx_kling3",
"status": "IN_PROGRESS"
}
}Check Task Status
For asynchronous tasks, poll the status endpoint to check when your task is complete:
/api/v1/tasks/{task_id}curl https://apiin.one/api/v1/tasks/task_abc123 \
-H "Authorization: Bearer aio_your_key"Use Cases
- ✓Create marketing and social media video content from text prompts
- ✓Animate product photos into dynamic video ads
- ✓Build AI video generation features into your SaaS product
- ✓Generate cinematic video clips for filmmaking and creative projects
API Tester
Test the Kling 3.0 API directly from your browser:
Error Codes
{
"error": {
"code": 400,
"message": "Invalid parameters",
"type": "invalid_request"
}
}Frequently Asked Questions
How much does the Kling 3.0 API cost?
Pricing depends on mode (std/pro), duration (3–15s), and sound. For example: std 5s no-audio costs ~200 credits, pro 5s with audio costs ~400 credits. The pricing formula is: std no-audio 40/s, std with-audio 60/s, pro no-audio 54/s, pro with-audio 80/s.
What is the difference between Pro and Standard mode?
Pro mode produces higher quality videos with better motion and detail. Standard mode is faster and costs fewer credits. Specify via the "mode" parameter (std or pro).
Can I generate videos from images?
Yes. Provide image URLs in the request and the model auto-detects image-to-video mode. You don't need to set the task type manually.
What video durations are supported?
Kling 3.0 supports 3–15 second video generation. Set the "duration" parameter accordingly. Default is 5 seconds.
What is multi-shot mode?
Multi-shot mode lets you create videos with multiple scenes, each with its own prompt and duration. Set multi_shots to true and provide a multi_prompt array.
Why Use Kling 3.0 Through API in One?
Ready to use Kling 3.0?
Get Your API Key →