aslocalized example text.in use endpointKling 3.0 Video Generation API (endpoint).endpointtask and.
Overview
Kling 3.0 Turbo (can 3.0 Turbo)Kling 3.0 height:,, output, supported Text-to-Video and first frame video generation, and can use Prompt.
4K, last frame,Kling 3.0; Reference image / Reference video / Video Editing / subjectKling 3.0 Omni.
endpointPath, Request / field Kling (endpoint).complete,Base URL and API Key can, localized example text.
| localized example text | Description |
|---|---|
| Resolution | 720p (default)/ 1080p |
| Duration | 3-15 seconds, default 5 seconds |
| localized example text | 16:9 (default)/ 9:16 / 1:1 |
| localized example text | output |
| localized example text | supported Prompt, up to 6 |
| localized example text | output Duration |
Base URL: https://mm-internal-cn.leonecloud.com/kling
Authentication
with endpoint in Request in API Key:```
Authorization: Bearer {YOUR_API_KEY}
> API Key can, Not required AccessKey / SecretKey JWT.
---
## and| localized example text| localized example text|
|----|--------|
| asset| http(s) URL, supported base64|
| watermark | watermark:`options.watermark_info` can, with`watermark_url` |
| query results | return`billing` field, localized example text|
| localized example text| Callback Request,「Callback Notification」 |
---
## Quick Start
**Text-to-Video**
```bashcurl -X POST "https://mm-internal-cn.leonecloud.com/kling/text-to-video/kling-3.0-turbo" \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"prompt": "in,,,",
"settings": { "resolution": "720p", "duration": 5, "aspect_ratio": "16:9" }
}'
**video**
```bashcurl -X POST "https://mm-internal-cn.leonecloud.com/kling/text-to-video/kling-3.0-turbo" \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"prompt": "1, 3,; 2, 4, in; 3, 3,;",
"settings": { "resolution": "720p", "duration": 10 }
}'
**first frame video generation**
```bashcurl -X POST "https://mm-internal-cn.leonecloud.com/kling/image-to-video/kling-3.0-turbo" \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{ "type": "prompt", "text": "," },
{ "type": "first_frame", "url": "https://example.com/start.jpg" }
],
"settings": { "resolution": "720p", "duration": 5 }
}'
**Query Task**
```bashcurl -X GET "https://mm-internal-cn.leonecloud.com/kling/tasks?task_ids=task_20261119185417_tivjbqzg" \
-H "Authorization: Bearer your_api_key_here"
---
## Endpoints
| Method | Path (Base URL)| localized example text|
|--------|------|------|
| POST | `/text-to-video/kling-3.0-turbo` | Text-to-Video |
| POST | `/image-to-video/kling-3.0-turbo` | first frame Video|
| GET | `/tasks` | Query Task (Task ID or Task ID, supported )|
---
### 1. Text-to-Video
**POST** `/text-to-video/kling-3.0-turbo`
#### Request Parameters
| Parameter | Type | Required | Description |
|------|------|------|------|
| prompt | string | Yes | Prompt, exceeds 2500 characters|
| settings | object | No | output,|
| options | object | No |:Callback URL, Task ID|
**PromptFormat**
localized example text`n, m,;` Format, and:
-`n`:, up to 6
-`m`:Duration (seconds), at least 1, and etc. Duration
-: Prompt, maximum 512 characters
---### 2. first frame video generation**POST** `/image-to-video/kling-3.0-turbo`
#### Request Parameters
| Parameter | Type | Required | Description |
|------|------|------|------|
| contents | array | Yes | asset,|
| settings | object | No | output,|
| options | object | No | localized example text|
#### contents
| type | field | Description |
|------|------|------|
| `prompt` | `text` | Prompt, exceeds 2500 characters|
| `first_frame` | `url` | first frame image, Required|
first frame,`aspect_ratio` localized example text.last frame[Kling 3.0](/docs/kling-3-0).
**asset Requirements**
| Type | Requirements |
|------|------|
| Image | jpg / jpeg / png, exceeds 50MB, width and height at least 300px, Aspect ratio 1:2.5 ~ 2.5:1 |
---
### settings
| Parameter | Type | Required | default | Description |
|------|------|------|------|------|
| resolution | string | No | `720p` | `720p` / `1080p` |
| duration | int | No | `5` | 3-15, seconds|
| aspect_ratio | string | No | `16:9` | `16:9` / `9:16` / `1:1`.first frame video generation when first frame|
> first field will, will.
### options
| Parameter | Type | Required | Description |
|------|------|------|------|
| callback_url | string | No | taskcomplete after Callback URL, http(s), exceeds 512 characters|
| external_task_id | string | No | Task ID,, exceeds 128 characters.can use query|
### field
field in supported, in`settings` localized example text.with, If omitted and as.
| Parameter | Type | Required | Description |
|------|------|------|------|
| negative_prompt | string | No | Prompt,, exceeds 2500 characters|
| enhance_prompt | bool | No | Prompt, defaultModel|
> Model supported field will, will.
### Response Example
```json{
"code": 0,
"message": "SUCCEED",
"request_id": "trace_20261119185416_7nhd8sa77zoo",
"data": {
"id": "task_20261119185417_tivjbqzg",
"status": "submitted",
"create_time": 1795085657121,
"update_time": 1795085657121,
"external_id": "my-order-001"
}
}
---
### 3. Query Task
**GET** `/tasks`
#### Request Parameters (URL query)
| Parameter | Required | Description |
|------|------|------|
| task_ids | localized example text| Create Taskreturn`data.id`, localized example text`,` localized example text|
| external_task_ids | localized example text| create when`external_task_id`, localized example text`,` localized example text|
Parameter, up to 50 task.task.
#### Response Parameters
| Parameter | Type | Description |
|------|------|------|
| data[].id | string | Task ID |
| data[].status | string | `submitted` /`processing` in /`succeeded` Success / `failed` Failure |
| data[].message | string | Failure(onlyFailure when )|
| data[].create_time | int | Created Time, Unix seconds|
| data[].update_time | int | Updated Time, Unix seconds|
| data[].external_id | string | Task ID ( with )|
| data[].outputs[] | array | generated result (onlySuccesswhen )|
| data[].outputs[].type | string | localized example text`video` |
| data[].outputs[].url | string | videolocalized example text|
| data[].outputs[].duration | string | videoDuration, seconds|
#### Response Example
```json{
"code": 0,
"message": "SUCCEED",
"request_id": "trace_20261119185903_0vogwknig0un",
"data": [
{
"id": "task_20261119185417_tivjbqzg",
"status": "succeeded",
"create_time": 1795085657000,
"update_time": 1795085829000,
"external_id": "my-order-001",
"outputs": [
{ "type": "video", "url": "https://fc-gw-sh.oss-accelerate.aliyuncs.com/downloads/20261119/xxx.mp4", "duration": "5" }
]
}
]
}
---
## Callback Notification
Create Taskwhen`options.callback_url`, taskSuccessor Failure after will POST Request.
**Headers**Content-Type: application/json
X-Funcloud-Event: task.completed
X-Funcloud-Timestamp: 2026-11-19T18:57:09+08:00
X-Funcloud-Signature: {localized example text}
**Body**:task, field and query endpoint`data[]`, with`code` / `data` localized example text.
```json{
"id": "task_20261119185417_tivjbqzg",
"status": "succeeded",
"create_time": 1795085657000,
"update_time": 1795085829000,
"external_id": "my-order-001",
"outputs": [
{ "type": "video", "url": "https://fc-gw-sh.oss-accelerate.aliyuncs.com/downloads/20261119/xxx.mp4", "duration": "5" }
]
}
return HTTP 2xx as; not when in 5 seconds, 10 seconds after, 3.
---
## Error Codes
ErrorHTTP Status Code, as`{ "code": <localized example text>, "message": "...", "request_id": "..." }`:
| HTTP Status Code | code | Description |
|------|------|------|
| 400 | 1201 | Parameter,`message` |
| 401 | 1000 | API Key invalid or missing |
| 403 | 1103 | no ( IP in )|
| 404 | 1203 | Task not found, or Model not|
| 429 | 1101 | Insufficient balance |
| 429 | 1302 | Requestlocalized example text|
| 500 | 5000 | Internal server error |
| 503 | 5001 |, after|
taskFailure (query results `status=failed`)Failure, will.
---
## Best Practices
- **Pollinglocalized example text**:First 30 seconds3 seconds, after 10 seconds.recommended
-**when**:720p 5 secondsvideoUsually 2 ~ 4 minutes
- **Model**:and Turbo; 4K, last frame or[Kling 3.0](/docs/kling-3-0)
- **localized example text**:Duration and must etc.`duration`, -**etc.**:localized example text`external_task_id`, ID will (400/1201), when after can query task booking