# Download a completed video

Retrieve output after the task reaches completed.

`GET /v1/videos/{video_id}/content`

<a id="authentication"></a>

## Authentication

Use Authorization: Bearer YOUR_API_KEY. The selected model must be enabled for that key’s group. JSON requests use Content-Type: application/json.

<a id="parameters"></a>

## Parameters



| Field | Type | Required | Description |
| --- | --- | --- | --- |
| video_id | path string | Required | Completed task ID, using the same site key. |

<a id="request"></a>

## Request example



```
curl --fail-with-body --silent --show-error \
  "https://api.ohgrok.com/v1/videos/$VIDEO_ID/content" \
  -H "Authorization: Bearer $OHGROK_API_KEY" \
  -o result.mp4
```

<a id="response"></a>

## Response structure

The endpoint returns media content on success rather than the task JSON. Check status and Content-Type before treating the saved file as video. A failed download alone does not justify generating another video.

<a id="errors"></a>

## Error handling

Read the HTTP status together with the returned error message. Check your key and group for authentication or model-access failures. Inspect balance and upstream limits for quota/rate errors; retain task IDs on timeouts.

- [Troubleshoot a request](/docs/errors/)

