Asynchronous task callback protocol#
For asynchronous tasks (image generation/video generation), if callback_url is set when the task is created, the server will actively send a notification when the task status changes.The parameters are consistent; during integration, you only need to change the request domain name and API key to ours.{
"task_id": "string",
"task_status": "string",
"task_status_msg": "string",
"created_at": 1722769557708,
"updated_at": 1722769557708,
"task_result": {
"images": [
{
"index": 0,
"url": "string"
}
],
"videos": [
{
"id": "string",
"url": "string",
"duration": "string"
}
]
}
}
Task Status Description#
task_status Possible enumeration values:Precautions#
When a task fails, task_status_msg will display the reason for the failure (such as triggering the platform's content risk control).
Example image URL: https://h1.inkwai.com/bs2/upload-ylab-stunt/1fa0ac67d8ce6cd55b50d68b967b3a59.png
Modified at 2026-02-08 11:01:30