Skip to main content

Overview

This guide outlines the step-by-step process to upload a video file to Google Cloud Storage (GCS) using the Opus API and subsequently create a clip project. This includes generating an upload link, initiating a resumable upload session, uploading a video, and creating a clip project using that uploaded file.

Authentication

All API requests require an API key:
Replace <API_KEY> with your valid API token.

Endpoint

Headers

Request Body

Response Example

cURL Example


Step 2: Initiate Resumable Upload Session

Endpoint

Headers

Request Body

(empty)
  • Replace <url_from_previous_step> with the url received from Step 1
  • No response body is returned
  • Look for the location header in the response which contains the resumable upload URL

Example Response Headers

cURL Example


Step 3: Upload Video File

Endpoint

Headers

Upload File

Use the --upload-file option with your actual video file (e.g., test.mp4).

cURL Example

Replace <location> with the location URL from Step 2 response headers.

Step 4: Create Clip Project

Endpoint

Headers

Response Headers

Request Body

cURL Example

forceStrategy (optional, advanced) pins curation to an explicit strategy instead of letting OpusClip auto-select one. Talk to our support team to learn how to use it.
  • Replace <uploadId> with the ID returned in Step 1
For detailed explanations of the project-creation request body, refer to Create a New Project, which documents the POST /api/clip-projects API.

Full Workflow Summary

1

Generate Upload Link

Get url and uploadId from the upload-links endpoint
2

Start Resumable Session

Get location from response headers using the url from Step 1
3

Upload Video File

Upload your video file to the location from Step 2
4

Create Clip Project

Create a new clip project using the uploadId from Step 1

POST /api/clip-projects

Refer to the full API reference for creating a clip project.

Get Clips

Retrieve clips from your created projects