AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Image generationKling Image

Get a task

Query generation status and image results by task ID.

GET/kling/tasks/{task_id}

Retrieve generation status and images using the task ID returned on creation.

Authorization

bearerAuth
AuthorizationBearer <token>

Use a platform API key in the format Authorization: Bearer your-api-key.

In: header

Path Parameters

task_id*string

The task ID from data.id in the creation response. Query with the same account used to create it.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

Set task_id to data.id from the creation response. Keep querying while the status is submitted or processing. For succeeded, read data[].outputs[].url; for failed, check message. Images may be removed after 30 days, so save them promptly.

For task_not_exist, check that task_id comes from data.id in the creation response and that creation and retrieval use the same account.