Skip to main content
After creating a custom element, use this endpoint to poll the task status until it reaches succeed or failed. On success, the response contains the element details including its element_id.

Quick example

curl https://www.anyfast.ai/kling/v1/general/advanced-custom-elements/863121016086724692 \
  -H "Authorization: Bearer YOUR_API_KEY"

Response fields

FieldDescription
data.task_idTask ID
data.task_statussubmitted / succeed / failed
data.task_result.elements[]List of created elements
elements[].element_idElement ID (used for delete)
elements[].element_nameElement name
elements[].element_descriptionElement description
elements[].element_typeAlways image_refer
elements[].element_image_listCDN URLs of uploaded images
elements[].statussucceed / failed
elements[].tag_listTags with id and name
data.created_atCreation timestamp (ms)
data.updated_atUpdate timestamp (ms)

API Reference

View the interactive API playground for Kling Element Query.