Task Management
Get Video Task Status
Query video generation task status and results
GET
- Query async video generation task execution status and results
- Real-time status updates and progress tracking
- Get generated videos when task completes
- Multi-language support (zh/en/ko/ja)
Authorizations
All endpoints require Bearer Token authenticationGet your API Key:Visit the API Key Management Page to get your API KeyAdd it to the request header:
Path Parameters
Task ID returned by the video generation API
Response
Unique task identifier
Object type, always
generation.taskTask status
queued- Queued for processingin_progress- Processingcompleted- Successfully completedfailed- Failed
Task progress percentage (0-100)
Video generation model used
Task creation time (Unix timestamp)
Task completion time (Unix timestamp, only returned when completed)
Video URL expiration time (Unix timestamp, only returned on completion)
Task result (only returned on success)
Error information (only returned on failure)
Task Status Reference
| Status | Description | Is Final | Recommended Action |
|---|---|---|---|
queued | Task submitted, waiting in queue | ❌ | Wait 5-10 seconds, then query again |
in_progress | Task is processing | ❌ | Wait 10-15 seconds, then query again |
completed | Task completed successfully | ✅ | Get video from result.data[0].url |
failed | Task processing failed | ✅ | Check error info |
Polling Strategy
Python Polling Example
Resource Expiration
Error Codes
| HTTP Code | Error Type | Description |
|---|---|---|
| 400 | invalid_request | Invalid request parameters |
| 401 | unauthorized | Authentication failed, check API Key |
| 402 | insufficient_quota | Insufficient balance |
| 404 | task_not_found | Task not found |
| 422 | content_policy_violation | Content policy violation |
| 429 | rate_limit_exceeded | Rate limit exceeded |
| 500 | internal_error | Internal server error |
Performance Tips
Video generation takes longer, recommendations:
- Use Webhook Callbacks: If supported, configure callback URL to avoid frequent polling
- Set Reasonable Polling Interval: Recommended 10 seconds, too frequent wastes request quota
- Set Timeout: Long videos may take 5-10 minutes, set reasonable timeout
- Download Promptly: Videos expire after 24 hours, save to your storage immediately