The parameters are consistent. When integrating, you only need to replace the request domain and API key with ours.Asynchronous Task Callback Protocol#
For asynchronous tasks (image generation / video generation), if a callback_url is set when creating a task, the server will proactively send a notification whenever the task status changes.{
"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#
Possible enum values for task_status:Notes#
When a task fails, task_status_msg will display the reason for the failure (e.g., triggered the platform's content moderation policy).
Example image URL: https://h1.inkwai.com/bs2/upload-ylab-stunt/1fa0ac67d8ce6cd55b50d68b967b3a59.png
Modified at 2026-03-08 05:42:17