The OpusClip API allows users to transform long-form videos into short, viral clips using advanced AI.

Below is a quick guide to get started with the OpusClip API.

Steps to Get Started

1

Step 1: Get API Key

Get your API Key from the dashboard and include it in your request.

3

Step 3: Create a New Project

Use the Create a New Project endpoint.

Provide the videoUrl and API_KEY, then run the following command to create a new project with minimal preferences:

You can customize the project creation request by providing additional preferences:

Switch to the advanced usage tab above to see an example with all preferences.

4

Step 4: Get Clips

Use the Get Clips endpoint. Provide the Project ID returned from the project creation response.

curl --request GET \
--url 'https://api.opus.pro/api/exportable-clips?q=findByProjectId&projectId={projectId}' \
--header 'Authorization: Bearer <API_KEY>'
5

Step 5: Share the Project

Use the Share a Project endpoint to share the project you just created with others.

curl --request POST \
--url https://api.opus.pro/api/clip-projects/<PROJECT_ID>/update-visibility \
--header 'Authorization: <API_KEY>' \
    --header 'Content-Type: application/json' \
    --data '{
        "visibility": "PUBLIC"
    }'

Using the Playground

You can use the 👉 Playground to generate code snippets easily for the endpoints mentioned above.

Was this page helpful?