Get a task
Query generation status and image results by task ID.
/kling/tasks/{task_id}Retrieve generation status and images using the task ID returned on creation.
Authorization
bearerAuth Use a platform API key in the format Authorization: Bearer your-api-key.
In: header
Path Parameters
The task ID from data.id in the creation response. Query with the same account used to create it.
1 <= lengthResponse 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.