OHGROK / Integration guide
Download a completed video
Retrieve output after the task reaches completed.
On this page
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.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| video_id | path string | Required | Completed task ID, using the same site key. |
Request example
cURL
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 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.
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.