Grok Task Query
OpenAI Format
Grok Task Query
Query Grok video task progress, results, and error information using GET /v1/videos/{task_id}.
GET
Grok Task Query
Grok Task Query
OpenAI-format query entry point. If the task was submitted viaPOST /v1/video/create, please use Query Task.
After a Grok series task is submitted, poll the status via GET /v1/videos/{task_id}.
- The API path is
GET /v1/videos/{task_id}. - After the task is completed, the result URL can usually be read from
video_urloroutput.url. - If directly downloading
video_urlfails, fall back toGET /v1/videos/{task_id}/content.
Method and Path
Request Example
Response Example
Authentication
Path Parameters
Video task ID.
Response
Task ID.
Task status. Common values include
processing, failed, and completed.Progress percentage.
Completion timestamp.
Result expiration timestamp.
Output duration.
Output resolution tier.
Video URL. When completed, this field will be read first, or
output.url will be read for compatibility.Failure reason object.
Polling Recommendations
The implementation will obtain the result URL in the following order:output.urlvideo_urlurldetail.url