mingyan
Sora - Query Task
Query the status and results of Sora video generation tasks
Sora Query Video Task
Use the task ID to query the status and results of Sora video generation tasks.
Authentication
Get KeyAll requests require a Bearer token in the request header:
cURL
Authorization: Bearer {{key}}
Base URL
https://zcbservice.aizfw.cn/kyyReactApiServerbaseUrl is the shared prefix for all public APIs. The api field in the current page frontmatter shows the full endpoint. Use this baseUrl as the common prefix when reading or composing request paths.Path Parameters
idstringrequiredUnique identifier for the video generation task, returned from the create task interface
Response Parameters
idstringUnique identifier for the video generation task
objectstringObject type, always
video.generationcreatedintegerTask creation timestamp
modelstringModel name used
statusstringTask status:
queued- Queuedprocessing- Processingcompleted- Completedfailed- Failed
video_urlstringGenerated video URL, returned when status is
completedactualDurationnumberActual video output duration in seconds, returned when status is
completederrorstringError message, returned when status is
failedStatus Flow
queued
Task created and added to queue, waiting for processing
processing
Task is being processed, Sora model is generating the video
completed
Task completed, video generated successfully, result available via
video_urlPolling Recommendations
Polling Strategy:
- Recommended polling interval: 30-60 seconds (video generation takes longer)
- Avoid overly frequent requests to prevent rate limiting
- Stop polling when status is
completedorfailed
Video URL Information
Important:
- Generated video URLs expire after 1 day
- Please download and save videos to your storage system promptly
- URLs will be inaccessible after expiration
- Video files are typically in MP4 format
Generation Time Estimates
10 Second Video
Estimated generation time: 2-5 minutes
15 Second Video
Estimated generation time: 3-8 minutes
25 Second Video
Estimated generation time: 5-15 minutes (sora-2-pro only)

