Query: Task Results (Official Format)
Overview
- Method:
GET - Path:
/kling/v1/videos/{action}/{task_id} - Content-Type:
application/json - Tags: Video Models (Video) / Kuaishou Keling AI
Authentication
- Header:
Authorization: Bearer <token>
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | Optional values: text2video / image2video / lip-sync / video-extend / effects |
| task_id | string | Yes | Task ID |
Response Structure
| Field | Type | Description |
|---|---|---|
| code | integer | Status code |
| data.task_id | string | Task ID |
| data.created_at | integer | Task creation timestamp (ms) |
| data.updated_at | integer | Task update timestamp (ms) |
| data.task_result.images | array | Result image list |
| data.task_status | string | Task status |
| data.task_status_msg | string | Task status description |
| message | string | Message |
| request_id | string | Request ID |
Example Request
bash
curl -X GET "https://api.gpt.ge/kling/v1/videos/text2video/Cji7cGctxFMAAAAAAEU5sQ" \
-H "Authorization: Bearer sk-xxxx"Example Response (200)
json
{
"code": 0,
"data": {
"task_id": "CjNQtmctxFMAAAAAAGZ1Vw",
"created_at": 1731233182965,
"updated_at": 1731233195037,
"task_result": {
"images": [{"url":"https://cdn.klingai.com/...", "index":0}]
},
"task_status": "succeed",
"task_status_msg": ""
},
"message": "SUCCEED",
"request_id": "Cji7cGctxFMAAAAAAGj3vA"
}