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:Step 1: Generate Upload Link
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 theurlreceived from Step 1 - No response body is returned
- Look for the
locationheader 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
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
Full Workflow Summary
1
Generate Upload Link
Get
url and uploadId from the upload-links endpoint2
Start Resumable Session
Get
location from response headers using the url from Step 13
Upload Video File
Upload your video file to the
location from Step 24
Create Clip Project
Create a new clip project using the
uploadId from Step 1Related Endpoints
POST /api/clip-projects
Refer to the full API reference for creating a clip project.
Get Clips
Retrieve clips from your created projects