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": 123,
  "message": "<string>",
  "request_id": "<string>",
  "data": {
    "task_id": "<string>",
    "task_status": "<string>",
    "task_info": {
      "parent_video": {
        "id": "<string>",
        "url": "<string>",
        "duration": "<string>"
      }
    },
    "task_result": {
      "videos": [
        {
          "id": "<string>",
          "url": "<string>",
          "duration": "<string>"
        }
      ]
    },
    "created_at": 123,
    "updated_at": 123
  }
}
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

  • Task status or task progress fields returned by the wrapper
  • Output metadata or asset URLs when the task finishes
  • Provider-specific failure messages 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 the status reaches success or failure.
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

Successful Response

code
integer
required

Return code

message
string
required

Text description of the request result

request_id
string
required

Unique identifier for this request

data
object
required

Object containing specific response data