Clip Generation API (Reka Clip)
For chat over text, images and short videos, use the OpenAI-compatible Chat Completions API.
Usage
There are 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
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 videos
- Must contain at least one URL
- Supports YouTube, Twitch, direct MP4 links
prompt (string, optional): Description of the clip to generate
- Defaults to
Create an engaging short video highlighting the best moments
generation_config (object, optional):
rendering_config (object, optional):
- Resolution and HD processing: The API tries to deliver the requested resolution. If it delivers a lower one, you are not charged the HD fee.
caption_style (object, optional):
- Validation: The API ignores unsupported keys and invalid or out-of-range values.
Request example
Bash
Python
Response example (job accepted)
A newly submitted job starts with status set to queued.
Save the id. You need it to check generation status.
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)
The status field shows the job’s current stage, processing in this example.
Job lifecycle
A job moves through these states:
Once the status is completed, the response includes the generated clips:
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
The status field shows the job’s current stage, preprocessing in this example. See Job Lifecycle for the full progression.
Error response example
If a generation fails, the job enters a terminal failed state and includes an error_message describing the cause.
Resources
Code examples in Python, Node.js and C# are on Reka AI’s Github.
For an example of Reka Clip in n8n, see the n8n template.
To try this API without code, use Reka Clip. Paste a YouTube or Twitch link and it generates clips.
