Kling 2.5 Turbo Pro
Fast high-quality video generation with start/end frame control
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/generateTask/kling-2-5-turbo-pro | Create generation task |
| GET | /api/v1/statusTask/kling-2-5-turbo-pro | Query task status |
Authentication
All requests require an API Key in the header:
Request Body
Parameters
Parameter
Required
Default
Description
request_typestring—
asyncasync (polling) or callback (webhook)
callback_urlstring✱
—
Callback URL, required when request_type=callback
providerstring—
autoRouting strategy: auto, value, or official
inputobject✓
—
Model input parameters
Mode Options:
text-to-video— Generate video from textimage-to-video— Generate video from image (supports 1-2 images for end frame control)
Example
Text-to-Video
Image-to-Video (with End Frame Control)
Response
POST /api/v1/generateTask/kling-2-5-turbo-pro
Returns taskId on success for subsequent status queries.
Success:
Error:
GET /api/v1/statusTask/kling-2-5-turbo-pro
Query task execution status and results via taskId.
Success:
Failed:
Status Response Fields
| Field | Type | Description |
|---|---|---|
taskId | string | Unique task identifier |
state | string | pending processing success failed |
resultJson | string | JSON containing resultUrls array (on success) |
failCode | string | Error code (on failure) |
failMsg | string | Error message (on failure) |
createTime | integer | Task creation timestamp (ms) |
completeTime | integer | Task completion timestamp (ms) |
costTime | integer | Processing duration (ms) |
Error Codes
| Code | Description |
|---|---|
| 400 | Invalid parameters or request error |
| 401 | Invalid or missing API Key |
| 429 | Rate limit exceeded |
| Fail Code | Description |
|---|---|
CONTENT_VIOLATION | Content violates safety guidelines |
INVALID_IMAGE_URL | Cannot access provided image URL |
Rate Limits
| Limit | Value |
|---|---|
| Requests | 10000 / minute |
| Concurrent tasks | 1000 |
Exceeding limits returns 429 error. Wait and retry.
Tips
- Generation time:
- 5-second video: ~30-45 seconds
- 10-second video: ~45-60 seconds
- Submit task, wait 30 seconds, then poll every 5 seconds
- Turbo advantage: Faster generation and better value compared to standard version, ideal for batch generation.
- Callback mode: Recommend using
callbackmode to avoid frequent polling. - Video expiration: Result URLs are valid for 15 days. Download promptly.
- Content moderation: Prompts must comply with content safety guidelines.
- End frame control:
image-to-videomode supports 2 images:- 1st image: Video start frame
- 2nd image: Video end frame
- Enables precise start/end control, ideal for transition animations
- Negative prompt: Use
negative_promptto avoid blur, jitter, and other unwanted effects. - CFG Scale:
- 0.3-0.5: More creative freedom
- 0.6-0.8: Moderate adherence to prompt
- 0.9-1.0: Strict adherence, may lose flexibility
- Image formats:
image_urlssupports JPG, PNG, WebP, max 10MB per image.