Query Task Status
- Query the current status and result of an asynchronous task
- Task status flow:
pending→processing→completed/failed - Optionally pass
sync_upstream=trueto proactively refresh the latest status for tasks still in progress - After task completion, result links are valid for 24 hours; please save them promptly
results Field Format
After a task completes (status=completed), results is an array whose structure varies by model. Before parsing results, check the model field in the response to determine the structure type.
Common Format (Most Models)
Grouped by task output type (type):
All url links are valid for 24 hours. Please save them promptly.
Special Formats (By model)
The results[i] structure for the following models does not follow the common format above. Callers must handle them separately based on model.
Profile Creation (No Media URL Returned)
Voice Cloning
Speech Transcription (No Media URL Returned)
Video with Seed Value
seed field is always present: it is the corresponding integer when the generation process returns a seed; if no seed is returned for this generation, it is null. Handle it as “field always present, value may be null”.Reference Video Fast Variant Degradation Notice (degraded_reason)
PBR Material (Single Task Returns Multiple Semantically Labeled Results)
Music Generation with Lyrics Text
Document Conversion (Result Is a ZIP Archive URL, Not a Direct Media Link)
Parsing Recommendations
- Read
modelfirst, then parseresults: Different models under the sametypemay have completely different structures - Mind the expiration for URL results: All
urllinks are valid for 24 hours; your application should download and store them immediately upon receipt - Profile-type tasks return
voice_id/character_id/profile_idas long-lived resource identifiers that can be used directly in subsequent task parameters
Authorizations
All endpoints require Bearer Token authentication
Add the following to your request headers:
Authorization: Bearer YOUR_API_KEY
Path Parameters
Task ID, returned by the task submission endpoint
"task-unified-1757165031-uyujaw3d"
Query Parameters
Whether to proactively refresh the task status before returning. Only takes effect for tasks that are still in progress and have an associated remote task; otherwise, the current task status is returned directly.
true
Response
Query successful
Task ID
"task-unified-1757165031-uyujaw3d"
Specific task type
video.generation.task, image.generation.task, audio.generation.task, llm.generation.task "video.generation.task"
Task output type
video, image, audio, llm "video"
Actual model name used
"lipsync-2"
Task status
Options:
pending, processing, completed, failed "pending"
Task progress percentage
0 <= x <= 1000
Task creation timestamp (Unix seconds)
1757165031
Task result list; only populated when status=completed.
Structure varies by task output type (type):
General notes:
- Result URLs are valid for 24 hours; please save them promptly
type=llmresults are conversation responses and do not produce URLs- Some tasks produce non-media artifacts (voice profile / character profile creation, etc.);
resultscontains id-type fields instead ofurl
Image result (type=image). Most image models only return url; some models (Patina family) also include content_type; PHOTA profile creation tasks return {result_type, profile_id} (non-image artifact)
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Error information; only populated when status=failed
Billing information