Grok Task Query
Query Grok video task progress, results, and error information using `GET /v1/videos/{task_id}`.
https://zx1.deepwl.net/v1/videos/{task_id}curl https://zx1.deepwl.net/v1/videos/video_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"{
"id": "video_abc123",
"object": "video",
"model": "grok-video-3",
"status": "processing",
"progress": 42,
"created_at": 1735689600,
"completed_at": 0,
"expires_at": 1735776000,
"seconds": "6",
"size": "720P",
"remixed_from_video_id": "",
"error": {
"message": "",
"code": ""
},
"video_url": ""
}OpenAI-format query entry point. If the task was submitted via POST /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.
Request Headers
Authorizationstring必填Authentication header. Uses a Bearer token, e.g. Bearer YOUR_API_KEY.
Query Parameters
task_idstring必填Video task ID.
Request Examples
Response Examples
Response Fields
idstringTask ID.
statusstringTask status. Common values include processing, failed, and completed.
progressintegerProgress percentage.
completed_atintegerCompletion timestamp.
expires_atintegerResult expiration timestamp.
secondsstringOutput duration.
sizestringOutput resolution tier.
video_urlstringVideo URL. When completed, this field will be read first, or output.url will be read for compatibility.
errorobjectFailure reason object.
Polling Recommendations
The implementation will obtain the result URL in the following order:
output.urlvideo_urlurldetail.url
If directly downloading the returned video URL fails, fall back to:
GET /v1/videos/{task_id}/content