Download Grok Video
GET
/v1/videos/{task_id}/contentDownload video bytes from a completed Grok task using the public task ID and your UnifyLLM API key.
Before downloading
- Query the task first. Confirm status=completed and check that error is absent.
- Use the original public task_id and your UnifyLLM Bearer API key. This endpoint returns video bytes, not JSON.
- Save the file promptly. Upstream media is not stored permanently.
Client integration
- A plain video element cannot attach an Authorization: Bearer header. Use an authenticated backend or fetch download before playback.
- Never place a production API key in public webpage code, download URLs or query parameters.
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 video bytes (video/mp4). Save them to a file rather than parsing JSON. Download examples appear in the code panel.