Skip to main content
GET
/
kling
/
v1
/
images
/
omni-image
/
{task_id}
cURL
TASK_ID="<task_id>"

curl "https://api.cometapi.com/kling/v1/images/omni-image/$TASK_ID" \
  -H "Authorization: Bearer $COMETAPI_KEY"
{
  "code": 0,
  "message": "SUCCEED",
  "request_id": "<request_id>",
  "data": {
    "task_id": "<task_id>",
    "task_info": {},
    "created_at": 1782450245512,
    "updated_at": 1782450286078,
    "task_result": {
      "images": [
        {
          "url": "https://your-image-host/generated.png"
        }
      ]
    },
    "task_status": "succeed",
    "final_unit_deduction": "8"
  }
}
Use this endpoint after you create a Kling Omni image task. Pass the data.task_id returned by the create request and poll until data.task_status is succeed or failed.
The CometAPI public query route is GET /kling/v1/images/omni-image/{task_id}. Do not use GET /v1/images/omni-image; that route is not a CometAPI public query endpoint for Kling Omni Image tasks.

Polling behavior

  • Use the same CometAPI account that created the task
  • Poll every 20-30 seconds until task_status is succeed or failed
  • Read generated image URLs from data.task_result.images when the task succeeds
  • Store finished images in your own storage if you need durable access
Tasks from another account, expired records, or unknown IDs return task_not_exist.

Result fields

Successful query responses return generated images under data.task_result.images. Each item can include:
FieldDescription
indexPosition of the generated image in the task result.
urlGenerated image URL.
watermark_urlWatermarked image URL when watermark output is requested.
Generated asset URLs can expire or be cleared by the provider service. Store the finished images in your own storage layer when your workflow needs long retention.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your CometAPI API key.

Path Parameters

task_id
string
required

Task ID returned by POST /kling/v1/images/omni-image.

Response

Task status or result.

code
integer
required

Response code. 0 means the task was found and the status payload was returned.

message
string
required

Response message.

data
object
required
request_id
string

Request identifier returned by CometAPI when present.