Skip to content

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

ParameterTypeRequiredDescription
task_idstringYesTask ID, obtained by executing an asynchronous task before querying the result

Response Structure

FieldTypeDescription
codeintegerStatus code
data.statusstringTask status
data.resp_datastringResult data returned as a JSON string
data.video_urlstringVideo URL
data.image_urlsnullImage URLs (empty for this response)
data.binary_data_base64array[string]Binary data Base64 list
statusintegerAPI return code
messagestringMessage
request_idstringUnique request ID
time_elapsedstringTime 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
}