Get Grok Video
GET
/v1/videos/{task_id}Poll a public UnifyLLM task ID and check status and errors before downloading the completed video.
Polling and terminal states
- Poll every 5–10 seconds while queued or in_progress. Never submit another creation request to check progress.
- A timeout or network error does not prove creation failed. Do not automatically repeat a potentially paid POST when its outcome is unknown.
- Check error even when status=completed. moderation_blocked can mean that no playable video is available.
| Status | Action |
|---|---|
| queued | Task queued; continue polling |
| in_progress | Task running; continue polling |
| completed | Stop polling; inspect error before downloading |
| failed | Stop polling; inspect error.code and error.message |
Download the result
The query response does not guarantee an upstream video URL. Download /v1/videos/{task_id}/content with the exact public task id returned by creation. Use your UnifyLLM API key for creation, queries and downloads; no supplier key is required.
Path Parameters
task_id:requiredstringExact public id returned by creation, including its task_ prefix. Never substitute a provider-internal ID.
Example
task_exampleResponse
200A successful request returns a JSON response. The complete example is shown in the code panel.