Clip Generation API (Reka Clip)
Usage
We offer two ways to generate clips from your videos:
- Option 1: 2‑step workflow
- Submit a job with
POST /v1/clips - Poll job status with
GET /v1/clips/{id}until completed
- Submit a job with
- Option 2: Single streaming request
- Submit a job to
POST /v1/clipswithstream=trueto receive real‑time progress updates (SSE)
- Submit a job to
Option 1: Submit and poll
1️⃣ Submit a generation job:
Endpoint
POST /v1/clips
Headers
Content-Type: application/jsonX-Api-Key: YOUR_API_KEY
Request body
video_urls(array[string], required): URLs of input videosprompt(string, required): Description of the clip to generategeneration_config(object, optional):template(“moments” | “compilation”, default: “moments”)num_generations(integer, default: 1)min_duration_seconds(integer, optional)max_duration_seconds(integer, optional)
rendering_config(object, optional):subtitles(boolean, default: true)aspect_ratio(string, default: “9:16”)
Request example
Bash
Python
Response example (job accepted)
When a job is successfully submitted, the initial status will be queued.
Make sure to save the id — you’ll use it to check generation status.
2️⃣ Check generation status
GET /v1/clips/{id}
Returns job metadata and, when status is completed, an output array with generated clips.
Request example
Bash
Python
Response example (processing)
Note: The status field indicates the current stage of the generation job, which happens to be processing in the above example.
Job lifecycle
A job will transition through the following states:
Once the status is completed, the response will include generated clip outputs, as shown below.
Response example (completed)
Option 2: Streaming in one request
Set stream: true to receive Server-Sent Events (SSE) with progress updates until completion.
Request example
Bash
Python
Streaming event example
Note: The status field indicates the current stage of the generation job, which in the above case is preprocessing. See Job Lifecycle for more details on status progression.
Error response example
If a generation fails, the job enters a terminal failed state and includes an error_message describing the cause.
Resources:
For some code examples in Python, node.js, and C#, check out Reka AI’s Github.
To see an example of integrating Reka Clip with n8n, refer to our custom-built n8n template.
To try this API through a no-code interface, check out Reka Clip, where you can submit a Youtube or Twitch link and generate clips instantly.