Get video content
Download generated video content as raw bytes.
GET /api/v1/videos/{jobId}/content
Returns the selected completed artifact using the upstream or stored video MIME type, such as video/mp4. The response is not a JSON envelope.
Back to Videos endpoint listRequest parameters
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | header | yes | Bearer API key with tasks scope. |
jobId | path | yes | Video generation job ID, at least 1 character. |
index | query | no | Artifact index to download, >= 0. Defaults to 0. |
Request examples
curl "https://api.globalrouter.com/api/v1/videos/job_123/content?index=0" \ -H "Authorization: Bearer $GR_API_KEY" \ --output video.mp4
Response fields
| Field | Type | Required | Description |
|---|---|---|---|
body | binary | yes | Raw video bytes. |
Content-Type | header | yes | Artifact MIME type, for example video/mp4. |
Response example
Binary video bytes with Content-Type: video/mp4
Errors
| HTTP | Code | Description |
|---|---|---|
| 404 | VIDEO_CONTENT_NOT_AVAILABLE | The job does not have a readable artifact at the requested index. |