Clip Generation API (Reka Clip)
With the Reka Clip Vision API, you can automatically transform long videos into engaging short clips using AI-powered highlight detection.
To try this API through a no-code interface, check out Reka Clip, where you can submit a video link and generate clips instantly.
To see an example of integrating Reka Clip with n8n, refer to the sample workflow available on GitHub here
Usage
We offer two ways to generate reels from your videos:
- Option 1: 2‑step workflow
- Submit a job with
POST /v1/creator/reels - Poll job status with
GET /v1/creator/reels/{id}until completed
- Submit a job with
- Option 2: Single streaming request
- Submit a job to
POST /v1/creator/reelswithstream=trueto receive real‑time progress updates (SSE)
- Submit a job to
Option 1: Submit and poll
1️⃣ Submit a generation job:
Endpoint
POST /v1/creator/reels
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 reel 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/creator/reels/{id}
Returns job metadata and, when status is completed, an output array with generated reels.
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:
queued → starting → downloading → indexing → preprocessing → processing → completed
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.