Skip to main content

Developers

ReelForge API

Create short videos from your own code, follow their progress and get notified when they’re ready — through a simple REST API that speaks JSON.

Business planVersion 1REST + JSON

Overview

The ReelForge API lets you create videos programmatically and manage the videos on your account. It’s included on the Business plan, and existing Mogul subscribers keep it. Requests and responses use JSON, and every request needs an API key.

Base URL
https://api.reelforgeai.io/api/v1
  • Create videos

    Start a video from a niche or your own topic.

  • Track progress

    Poll a video’s status or get a webhook when it’s done.

  • Manage your library

    List, fetch and delete the videos on your account.

  • Get notified

    Receive webhooks for finished videos and published posts.

Video creation is asynchronous: POST /videos/generate returns a video ID right away, and the video moves from processing to complete or error. Most videos are ready in a few minutes. IDs are UUIDs.

Authentication

Send your API key with every request, either in the X-API-Key header or as a bearer token in the Authorization header. Keys start with rf_.

Create an API key

  1. In the app, open API & webhooks.
  2. Select Create key, give it a name and choose when it expires: never, in 30 days, in 90 days or in 1 year.
  3. Copy the key and store it somewhere safe. It’s shown only once.

Business includes up to 10 active keys, as does Mogul for existing subscribers. A revoked or expired key stops working right away — requests made with it return 401.

Shell
# Option 1: X-API-Key header
curl https://api.reelforgeai.io/api/v1/account \
  -H "X-API-Key: $REELFORGE_API_KEY"

# Option 2: Bearer token
curl https://api.reelforgeai.io/api/v1/account \
  -H "Authorization: Bearer $REELFORGE_API_KEY"

Keep keys on your server

An API key can create and delete videos on your account. Don’t put it in browser or mobile app code, and don’t commit it to source control.

Rate limits

The per-minute limit is counted per API key, and every video you create counts toward your plan’s monthly allowance.

  • Business
    API keys
    Up to 10
    Requests per minute
    100
    Videos per month
    150
  • Mogul (no longer sold)
    API keys
    Up to 10
    Requests per minute
    100
    Videos per month
    150
  • Responses include RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers for the per-minute limit.
  • Going over returns 429 Too Many Requests with a retry_after value in seconds.
  • Traffic from a single IP address is also capped at 1,000 requests per 15 minutes across the whole API.
  • Videos that fail aren’t counted against your allowance. Top-up packs add to it, and allowances reset every month on your billing date (on the 1st, UTC, without a paid subscription).

Videos

Create a video

POST/videos/generate

Starts a new video and returns 202 Accepted with its ID. Send either a niche or a custom_topic; everything else is optional.

  • niche
    Type
    string
    Default
    —
    One of the niches listed below. Required unless you send custom_topic.
  • custom_topic
    Type
    string
    Default
    —
    Your own topic for the video. Required unless you send niche.
  • voice
    Type
    string
    Default
    adam
    A voice listed below (not case-sensitive), or the voice ID of a ready voice clone on your account.
  • style
    Type
    string
    Default
    cinematic
    A visual style listed below. Unrecognized values render as cinematic.
  • duration
    Type
    integer
    Default
    30
    Target length in seconds, from 15 to 90.
  • language
    Type
    string
    Default
    en
    Narration language code. See the supported languages below.
  • include_music
    Type
    boolean
    Default
    true
    Set to false to leave out background music. Ignored on Engine 2.0, which always adds music.
  • include_captions
    Type
    boolean
    Default
    true
    Set to false to leave out on-screen captions. Ignored on Engine 2.0, which always adds captions.
  • render_mode
    Type
    string
    Default
    premium
    premium or fast. Fast skips some finishing effects to finish sooner. When fast rendering isn’t available, the video renders in premium.
  • webhook_url
    Type
    string
    Default
    —
    An HTTPS URL on a public host. We send a POST to it when the video finishes or fails — see Webhooks.

Niches

  • motivation
  • finance
  • horror
  • facts
  • history
  • science
  • philosophy
  • psychology
  • health
  • technology
  • nature
  • mystery
  • life-tips
  • mindfulness
  • productivity

Voices

  • adam
  • bella
  • antoni
  • rachel
  • arnold
  • domi

Styles

  • cinematic
  • realistic
  • artistic
  • dark
  • vibrant
  • anime
  • neon
  • vintage
Supported languages (29)
  • enEnglish
  • esSpanish
  • frFrench
  • deGerman
  • itItalian
  • ptPortuguese
  • plPolish
  • hiHindi
  • arArabic
  • zhChinese
  • jaJapanese
  • koKorean
  • nlDutch
  • trTurkish
  • svSwedish
  • idIndonesian
  • filFilipino
  • msMalay
  • roRomanian
  • ukUkrainian
  • elGreek
  • csCzech
  • daDanish
  • fiFinnish
  • bgBulgarian
  • hrCroatian
  • skSlovak
  • taTamil
  • ruRussian

Example request

Shell
curl -X POST https://api.reelforgeai.io/api/v1/videos/generate \
  -H "X-API-Key: $REELFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "niche": "science",
    "voice": "rachel",
    "style": "cinematic",
    "duration": 45,
    "webhook_url": "https://example.com/hooks/reelforge"
  }'

Response

JSON
{
  "success": true,
  "message": "Video generation started.",
  "data": {
    "video_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "status": "processing",
    "estimated_time": "2-5 minutes",
    "status_url": "https://.../api/v1/videos/7c9e6679-7425-40de-944b-e07fc1f90ae7/status",
    "webhook_url": "https://example.com/hooks/reelforge"
  }
}

List videos

GET/videos

Returns the videos on your account, newest first.

  • page
    Default
    1
    Page number.
  • limit
    Default
    20
    Results per page, up to 100.
  • status
    Default
    All
    Only return videos with this status: processing, complete or error.

Response

JSON
{
  "success": true,
  "data": {
    "videos": [
      {
        "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
        "title": "Why octopuses have three hearts",
        "niche": "science",
        "status": "complete",
        "video_url": "https://...",
        "thumbnail_url": "https://...",
        "duration": 45,
        "created_at": "2026-10-21T14:03:12.000Z"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 20,
      "total": 1,
      "total_pages": 1
    }
  }
}

Get a video

GET/videos/{id}

Returns one video, including its script, voice and style. error is set only when the video failed.

JSON
{
  "success": true,
  "data": {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "title": "Why octopuses have three hearts",
    "niche": "science",
    "status": "complete",
    "video_url": "https://...",
    "thumbnail_url": "https://...",
    "script": { ... },
    "voice": "rachel",
    "style": "cinematic",
    "duration": 45,
    "error": null,
    "created_at": "2026-10-21T14:03:12.000Z"
  }
}

Check a video’s status

GET/videos/{id}/status

A lightweight endpoint for polling. video_url and thumbnail_url appear once the status is complete; error appears when it’s error. Checking every 10–15 seconds is plenty.

JSON
// Finished
{
  "success": true,
  "data": {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "status": "complete",
    "created_at": "2026-10-21T14:03:12.000Z",
    "video_url": "https://...",
    "thumbnail_url": "https://..."
  }
}

// Failed
{
  "success": true,
  "data": {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "status": "error",
    "created_at": "2026-10-21T14:03:12.000Z",
    "error": "We hit a snag rendering this video. Please try again ..."
  }
}

Delete a video

DELETE/videos/{id}

Permanently deletes a video from your library and cancels any scheduled posts that use it.

JSON
{
  "success": true,
  "message": "Video deleted successfully."
}

Account

Get account details

GET/account

Returns your account, plan and this month’s video usage.

JSON
{
  "success": true,
  "data": {
    "account": {
      "id": "3b241101-e2bb-4255-8caf-4136c566a962",
      "email": "you@example.com",
      "name": "Your name",
      "plan": "empire",
      "effective_tier": "empire",
      "created_at": "2026-03-02T09:15:00.000Z"
    },
    "usage": {
      "videos_this_month": 42,
      "videos_limit": 150,
      "videos_remaining": 108,
      "total_videos": 318
    },
    "rate_limits": {
      "requests_per_minute": 100,
      "videos_per_day": 20
    }
  }
}

rate_limits.videos_per_day is informational. The limits that apply to video creation are the per-minute request limit and your monthly allowance.

Webhooks

There are two ways to be notified instead of polling.

Per-video webhook

Add webhook_url when you create a video and we’ll send one POST request to it when that video finishes or fails, with the event video.complete or video.error. The video_id matches the ID returned by POST /videos/generate.

video.complete
{
  "event": "video.complete",
  "data": {
    "video_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "status": "complete",
    "video_url": "https://...",
    "thumbnail_url": "https://...",
    "title": "Why octopuses have three hearts"
  }
}
video.error
{
  "event": "video.error",
  "data": {
    "video_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "status": "error",
    "error": "..."
  }
}
  • Headers
    Content-Type: application/json, User-Agent: ReelForge-Webhook/1.0
  • Timeout
    10 seconds per attempt
  • Retries
    Up to 3 attempts in total, 1 second and then 2 seconds apart
  • Success
    Any 2xx response
  • URL
    HTTPS only, on a public host

Per-video webhooks aren’t signed

Treat a delivery as a signal and confirm the result with GET /videos/{id}/status before you act on it.

Account webhooks (signed)

To receive signed events for everything on your account — including videos made in the app and scheduled posts — add an endpoint under API & webhooks and choose its events. The signing secret is shown once, when you add the endpoint.

  • video.completed
    A video finishes rendering.
  • video.failed
    A video fails to render.
  • video.scored_high
    A finished video’s script score (the viralScore field) is 80 or higher. Not sent for Engine 2.0 videos.
  • post.published
    A scheduled post is confirmed live on a platform.
  • post.failed
    A scheduled post fails to publish.

Every delivery has the same envelope. The X-Reelforge-Signature header is sha256= followed by the HMAC-SHA256 of the raw request body, using your endpoint’s signing secret as the key.

Example delivery
POST /your/endpoint
Content-Type: application/json
User-Agent: ReelForge-Webhooks/1.0
X-Reelforge-Event: video.completed
X-Reelforge-Signature: sha256=5d41402abc4b2a76b9719d911017c592...

{
  "version": 1,
  "event": "video.completed",
  "timestamp": "2026-10-21T14:06:40.000Z",
  "data": {
    "videoId": "...",
    "title": "Why octopuses have three hearts",
    "niche": "science",
    "duration": 45,
    "videoUrl": "https://...",
    "thumbnailUrl": "https://...",
    "viralScore": 82,
    "hookScore": 85,
    "pacingScore": 78,
    "engagementScore": 80,
    "createdAt": "2026-10-21T14:03:12.000Z"
  }
}
Verify a signature in Node.js
import crypto from "node:crypto";

// rawBody: the request body exactly as received, before JSON parsing.
// secret: the signing secret shown once when you added the endpoint.
export function isValidSignature(rawBody, signatureHeader, secret) {
  const expected =
    "sha256=" + crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
  const a = Buffer.from(expected);
  const b = Buffer.from(signatureHeader || "");
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}
  • Each event is sent once, with a 15-second timeout. Return any 2xx status to acknowledge it.
  • An endpoint is turned off automatically after 10 failed deliveries in a row. Turn it back on in the app.
  • You can add up to 5 endpoints. Each needs an HTTPS URL, and Send test delivers a sample video.completed event.
  • The score fields (viralScore, hookScore, pacingScore, engagementScore) come from ReelForge’s automated script check. They describe the script, not a prediction of views. In an Engine 2.0 video’s video.completed event they are null.
  • To match a notification to a video you created through the API, use the per-video webhook — its video_id is the ID the API returned.

Errors

Errors use standard HTTP status codes and return JSON with an error name and a readable message.

JSON
{
  "error": "Bad Request",
  "message": "Either niche or custom_topic is required."
}
  • 400
    Error
    Bad Request
    A parameter is missing or invalid — for example no niche or custom_topic, an unknown niche or voice, a duration outside 15–90, an unsupported language, an unsafe webhook_url, or a video ID that isn’t a UUID.
  • 401
    Error
    Unauthorized
    The API key is missing, invalid, revoked or expired.
  • 403
    Error
    Forbidden
    The account’s plan doesn’t include API access (the response includes upgrade_url), or the voice clone isn’t on your account.
  • 403
    Error
    Limit Exceeded
    This month’s video allowance is used up. The response includes usage.used and usage.limit.
  • 404
    Error
    Not Found
    The video doesn’t exist or belongs to another account.
  • 429
    Error
    Too Many Requests
    Too many requests. Wait retry_after seconds before trying again.
  • 500
    Error
    Internal Server Error
    Something went wrong on our side. Try again shortly.

Code examples

Each example creates a video and checks on it until it’s ready. Set REELFORGE_API_KEY in your environment first.

cURL

Shell
# Start a video
curl -X POST https://api.reelforgeai.io/api/v1/videos/generate \
  -H "X-API-Key: $REELFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"niche": "history", "duration": 60}'

# Check on it (use the video_id from the response above)
curl https://api.reelforgeai.io/api/v1/videos/7c9e6679-7425-40de-944b-e07fc1f90ae7/status \
  -H "X-API-Key: $REELFORGE_API_KEY"

JavaScript (Node.js)

JavaScript
// Node.js 18+ (built-in fetch)
const API_KEY = process.env.REELFORGE_API_KEY;
const BASE_URL = "https://api.reelforgeai.io/api/v1";
const headers = { "X-API-Key": API_KEY, "Content-Type": "application/json" };

async function createVideo() {
  const res = await fetch(`${BASE_URL}/videos/generate`, {
    method: "POST",
    headers,
    body: JSON.stringify({
      custom_topic: "Three habits that make mornings easier",
      voice: "rachel",
      style: "realistic",
      duration: 60,
    }),
  });
  const body = await res.json();
  if (!res.ok) throw new Error(`${body.error}: ${body.message}`);
  return body.data.video_id;
}

async function waitForVideo(videoId) {
  for (;;) {
    const res = await fetch(`${BASE_URL}/videos/${videoId}/status`, { headers });
    const body = await res.json();
    if (!res.ok) throw new Error(`${body.error}: ${body.message}`);
    if (body.data.status === "complete") return body.data.video_url;
    if (body.data.status === "error") throw new Error(body.data.error);
    await new Promise((r) => setTimeout(r, 15000)); // check every 15 seconds
  }
}

createVideo()
  .then(waitForVideo)
  .then((url) => console.log("Video ready:", url))
  .catch((err) => console.error(err));

Python

Python
import os
import time

import requests

API_KEY = os.environ["REELFORGE_API_KEY"]
BASE_URL = "https://api.reelforgeai.io/api/v1"
HEADERS = {"X-API-Key": API_KEY}

# Start a video
res = requests.post(
    f"{BASE_URL}/videos/generate",
    headers=HEADERS,
    json={"niche": "motivation", "duration": 45},
)
res.raise_for_status()
video_id = res.json()["data"]["video_id"]
print("Video ID:", video_id)

# Check every 15 seconds until it finishes
while True:
    res = requests.get(f"{BASE_URL}/videos/{video_id}/status", headers=HEADERS)
    res.raise_for_status()
    data = res.json()["data"]
    if data["status"] == "complete":
        print("Video URL:", data["video_url"])
        break
    if data["status"] == "error":
        print("Failed:", data["error"])
        break
    time.sleep(15)

API access is included on Business

Business is $99/mo with up to 10 API keys and 150 videos a month.

Compare plans

7-day money-back · Cancel any time · Failed reels don’t count

Questions about the API? Email support@reelforgeai.io