Skip to main content

Get Video Content

Download the generated video content for a completed task. If the task is not complete, the endpoint returns an error. On success, the response body is a binary video stream.

Try It

GET/v1/videos/{task_id}/contenthttps://api-platform.ope.ai

Endpoints

EndpointAuthPurpose
GET /v1/videos/{task_id}/contentAuthorization: Bearer <api-key>Download video content with an API key
GET /api/videos/{task_id}/contenttoken: <jwt>Frontend-token proxy download

Use the token header for a normal frontend JWT. Admin JWTs may use Authorization: Bearer <jwt>.

Authentication

Use Bearer token authentication.

  • Header: Authorization: Bearer <api-key>
  • Example: Authorization: Bearer sk-xxxxxx

Path Parameters

ParameterTypeRequiredDescription
task_idstringYesVideo task ID

Request Examples

curl -L "https://api-platform.ope.ai/v1/videos/{task_id}/content" \
-H "Authorization: Bearer $OPEAI_API_KEY" \
-o output.mp4

Response Example

Content-Type: video/mp4 or another video format

The response body is a binary video stream and can be saved directly as a file. The platform sets cache headers for repeated reads of completed task content.

HTTP/1.1 200 OK
Content-Type: video/mp4
Content-Length: 15728640

[Binary video data]