Skip to main content
GET
/
kling
/
v1
/
{action}
/
{action2}
/
{task_id}
Individual queries
curl --request GET \
  --url https://api.cometapi.com/kling/v1/{action}/{action2}/{task_id} \
  --header 'Authorization: Bearer <token>'
{
  "code": 0,
  "message": "SUCCEED",
  "request_id": "9ab376fc-9059-487f-9e2a-c9c89f1a344f",
  "data": {
    "task_id": "878106242831892487",
    "task_info": {},
    "created_at": 1777385361501,
    "updated_at": 1777385363321,
    "task_result": {},
    "task_status": "processing"
  }
}

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

Use this endpoint family after you create a Kling task. It is the common polling step for Kling async media jobs.

What to check first

  • code, message, and request_id for the query acknowledgement
  • data.task_status for the task state, such as submitted, processing, succeed, or failed
  • data.task_result.videos[0].url when the task succeeds
  • data.task_status_msg or other returned detail fields when a task stops early

Polling pattern

1

Create the task from the matching endpoint

Start with the Kling creation page for your workflow, such as Text to Video or Image to Video.
2

Poll until the task is terminal

Keep querying with the returned task id until data.task_status reaches succeed or failed.
3

Continue to the next workflow step

Use the finished output directly, or move into the next provider-specific action page if your workflow supports chained operations.
For the full parameter reference, see the official Kling documentation.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your CometAPI key.

Path Parameters

action
string
required

Resource type. One of: images, videos, audio.

action2
string
required

Sub-action matching the resource type. For images: generations, kolors-virtual-try-on. For videos: text2video, image2video, lip-sync, effects, multi-image2video, multi-elements. For audio: text-to-audio, video-to-audio.

task_id
string
required

Task ID

Response

200 - application/json

Current Kling task state.

code
integer
required

Kling response code. 0 indicates the query was accepted.

message
string
required

Kling response message.

request_id
string
required

Identifier for this query request.

data
object
required