Task Management
Query Task Status
GET /v1/tasks/ — Query the status, progress, and final result of an asynchronous task
GET
Query Task Status
The core query endpoint for asynchronous tasks. After submitting a task (Documentation Index
Fetch the complete documentation index at: https://docs.qingbo.dev/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/tasks) and receiving a task_id, poll this endpoint until status: completed to retrieve the final result.
Example Request
Example Responses (By Stage)
Response Fields
Unique task ID (returned at submission)
Task status:
queued— Submitted, waiting to be processedprocessing— In progress; theprogressfield indicates progress (0–100)completed— Done;resultcontains the generated outputfailed— Failed;errorcontains the error detailscancelled— Cancelled (onlyqueuedtasks can be cancelled)
Action type, identical to the value submitted (generate / edit / image2video, etc.)
Model ID used (group_name)
Progress as an integer 0–100.
0 for queued / failed / cancelled, 100 for completedCreation time (Unix millisecond timestamp)
Completion time (Unix millisecond timestamp). Only present in completed / failed / cancelled states
Error details. Only present in the failed state:
message— Error descriptioncode— Error code (commonlytask_failed)
Generation result. Only present in the completed state. Depending on the task’s media type, the key is
images / videos / audios (an array). Each item contains:url—string[]array (always an array, even with a single element)expires_at— Unix timestamp; link expiration (default 3 days)
Convenience action links so clients don’t have to assemble URLs:
get— Current query endpointcancel— Cancel-task endpoint
Polling Recommendations
- Polling interval: every 2–5 seconds
- Maximum wait time: 5-minute timeout recommended (videos may take longer)
- Display
progressto show real-time progress to users - Prefer Webhooks: set
callback_urlat submission to receive a push on completion and skip polling
Error Codes
| Status | Error | Description |
|---|---|---|
| 404 | task_not_found | task_id does not exist or doesn’t belong to the current user |
| 401 | Authentication failed | Invalid API key |
Related Documentation
- Submit Task —
POST /v1/tasks - Cancel Task —
POST /v1/tasks/{task_id}/cancel - Synchronous Wait —
POST /v1/tasks/sync - Task System Guide
Query Task Status