Query Kling video tasks
Query up to 20 Kling tasks by gateway task IDs or external business IDs.
Query Kling video tasks
curl -X GET "https://router.chbcloud.com/kling/tasks" \ -H "Authorization: Bearer <YOUR_API_KEY>"
Successful response.
{
"code": 0,
"data": [
{}
],
"message": "string",
"request_id": "string"
}Provide either task_ids or external_task_ids as a comma-separated list, not both. Poll about every 15 seconds, stop after succeeded or failed, and download successful video URLs before they expire.
Use the InnoPaaS AppKey as a Bearer token. Create or manage keys in Console. API key guide
Authorization
AuthorizationQuery Parameters
task_idsComma-separated gateway task IDs, up to 20. Mutually exclusive with external_task_ids.
external_task_idsComma-separated external business IDs, up to 20. Mutually exclusive with task_ids.
Response
application/jsonSuccessful response.
codeGateway result code.
dataTask snapshots with status, outputs, external IDs, and billing details.
messageResult message.
request_idRequest ID.
{
"code": 0,
"data": [
{}
],
"message": "string",
"request_id": "string"
}