Query: Task Results (General)
Description: Query asynchronous task results by fetching the current task status and result using
task_id.
Overview
- Method:
GET - Path:
/task/{task_id} - Content-Type:
application/json - Tags: Video Models (Video) / Kuaishou Keling AI
Authentication
- Header:
Authorization: Bearer <token>
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| task_id | string | Yes | Task ID, obtained by executing an asynchronous task before querying the result |
Response Structure
| Field | Type | Description |
|---|---|---|
| code | integer | Status code |
| data.status | string | Task status |
| data.resp_data | string | Result data returned as a JSON string |
| data.video_url | string | Video URL |
| data.image_urls | null | Image URLs (empty for this response) |
| data.binary_data_base64 | array[string] | Binary data Base64 list |
| status | integer | API return code |
| message | string | Message |
| request_id | string | Unique request ID |
| time_elapsed | string | Time elapsed |
Example Request
bash
curl -X GET "https://api.gpt.ge/task/314052875571396" \
-H "Authorization: Bearer sk-xxxx"Example Response (200)
json
{
"status": "Success",
"file_id": "314053136425242",
"task_id": "314052875571396",
"base_resp": {
"status_msg": "success",
"status_code": 0
},
"video_width": 768,
"video_height": 1152
}