reelfolio
Render API

Render showreels with one API call.

Create an API key, send your images, and get back a finished MP4. Use it from a script, your backend, or an AI agent. No editor needed.

53 KB Markdown
0:00 / 0:00

Wanted

Prerequisites

Before you start

  • You need a paid plan (Starter or Pro). API rendering is off on the free plan.
  • Create a key on the API Keys page. You see the full key once, so copy it right away.
  • Pass images as public URLs the renderer can fetch (your CDN, S3, or R2), or upload local files first via POST /api/v1/uploads. Videos aren't supported yet.
0:00 / 0:00
Auth

Authenticate

Send your key in the x-api-key header on every request. Keep it secret. Anyone with the key can render on your account.

x-api-key: rlf_your_key_here

Save it as an environment variable so the examples below pick it up. Never commit it to git.

Terminal (macOS / Linux)
export REELFOLIO_API_KEY="rlf_your_key"
.env file
REELFOLIO_API_KEY=rlf_your_key
Two steps

Quickstart

Start a render, then poll until it is done.

1. Start a render

Terminal
curl -X POST https://reelfolio.io/api/v1/render \
  -H "x-api-key: $REELFOLIO_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "id": "CometTemplate",
    "scale": 1,
    "inputProps": {
      "images": [
        "https://picsum.photos/seed/a/1280/800",
        "https://picsum.photos/seed/b/1280/800"
      ]
    }
  }'

You get back:

Response
{
  "renderId": "abcd1234",
  "status": "rendering",
  "statusUrl": "https://reelfolio.io/api/v1/render/abcd1234"
}

2. Poll for the result

Call statusUrl every 2 seconds until the status is done.

Terminal
curl "https://reelfolio.io/api/v1/render/RENDER_ID" \
  -H "x-api-key: $REELFOLIO_API_KEY"
Responses
// still rendering
{ "status": "rendering", "progress": 0.42 }

// finished
{ "status": "done", "url": "https://cdn.../video.mp4", "size": 5242880 }

// failed
{ "status": "error", "error": "..." }
Reference

Endpoints

POST /api/v1/render

Start a render. Body: id, inputProps.images (required), inputProps.settings (optional, merged over the template defaults), and scale (optional). Returns renderId and statusUrl.

GET /api/v1/render/<renderId>

Check progress. Returns a status of rendering, done (with url and size), or error.

POST /api/v1/uploads

Upload a local image (raw bytes with its content-type); returns { id, url } to put in inputProps.images. Only needed for images that aren't already online, and for a project's pictures.

GET, POST /api/v1/projects

List your projects, or make one. See Projects.

GET, PATCH, DELETE /api/v1/projects/<id>

Read a project, rename it, or move it to the trash.

POST /api/v1/projects/<id>/render

Render a project as last saved. Answers like POST /api/v1/render.

Node

Full example

Render and wait for the URL in one script. Works in Node 18+ (built-in fetch).

render.mjs
const API = "https://reelfolio.io/api/v1";
const KEY = process.env.REELFOLIO_API_KEY;

// 1. Start the render (settings are optional, they fall back to defaults)
const start = await fetch(API + "/render", {
  method: "POST",
  headers: { "x-api-key": KEY, "content-type": "application/json" },
  body: JSON.stringify({
    id: "CometTemplate",
    scale: 1,
    inputProps: {
      images: [
        "https://picsum.photos/seed/a/1280/800",
        "https://picsum.photos/seed/b/1280/800",
      ],
      settings: { text: "My Work" }, // override only what you want
    },
  }),
}).then((r) => r.json());

if (start.error) throw new Error(start.error);

// 2. Poll every 2s until done
let result;
while (true) {
  await new Promise((r) => setTimeout(r, 2000));
  result = await fetch(start.statusUrl, {
    headers: { "x-api-key": KEY },
  }).then((r) => r.json());
  if (result.status === "done" || result.status === "error") break;
  console.log("progress:", Math.round((result.progress ?? 0) * 100) + "%");
}

if (result.status === "error") throw new Error(result.error);
console.log("Video:", result.url);
Shortcut

Copy a render from the app

You don't have to write the JSON by hand. Build a video in the editor, then copy its exact POST /api/v1/render body and drop it into a script.

Copy JSON button in the editor's Settings header
In the editor, click Copy JSON in the Settings header (top right).
Copy JSON in a saved showreel's Reuse dialog
Or from a saved showreel: open Reuse and choose Copy JSON.
Templates

Template reference

270 templates. Showreels tell a story from start to finish; loops run seamlessly with no start or end. Open one for its id, its settings and a complete request body you can send as is.

Output

Quality & scale

The scale field sets the output resolution. Default is 1 (1080p).

scaleResolutionNotes
0.45480pFast preview quality
0.67720pGood for quick exports
11080pOptimized for social media
24KBest for detailed visuals
All templates

Common settings

These work on every template (defaults vary per template, see the example on each template's page).

SettingTypeDefaultWhat it does
aspectRatioenum16:9Output canvas shape. Use "custom" with customWidth/customHeight for an exact size.One of: 16:9, 9:16, 1:1, 4:5, 21:9, 4:3, 5:4, 3:2, 2:3, custom
backgroundTypeenumimageThe background is one of three modes (pick one). Only that mode’s settings apply: "color" uses backgroundColor; "image" uses backgroundLibraryCategory + backgroundLibraryImage; "gradient" uses backgroundGradientStart/End (+ Noise).One of: color, image, gradient
backgroundColorcolor#0a0a0aHex color used when backgroundType is "color".
backgroundLibraryCategoryenummacosWhere the image comes from when backgroundType is "image": a built-in wallpaper set ("macos", "raycast", "sunset", "mesh"), "custom" for your own image, or "same" to blur the first media in the reel.One of: same, macos, raycast, sunset, mesh, custom
backgroundLibraryImagestring""The background image URL when backgroundType is "image": one from the library (see the gallery below), or with "custom" any public HTTPS image URL of your own.
blurAmountnumber0Background blur in pixels.
backgroundOpacitynumber1Background opacity, 0 to 1.
borderRadiusnumber0Corner radius on each media item, in pixels.
backgroundGradientStartcolor#0a0a0aGradient start color when backgroundType is "gradient".
backgroundGradientEndcolor#1a1a1aGradient end color when backgroundType is "gradient".
backgroundGradientNoisestringfalseFilm grain over the gradient or mesh background. Boolean (on/off) or a 0–100 strength percent.
customWidthnumber1920Canvas width in pixels when aspectRatio is "custom".
customHeightnumber1080Canvas height in pixels when aspectRatio is "custom".
cropAspectRatioenum16:9Crop slot shape for templates with mediaFit "crop". Under mediaFit "natural" nothing is cut: every piece keeps the ratio it was uploaded with, and the layout is spaced for the shape most of the reel is.One of: 16:9, 9:16, 1:1, 4:5, 21:9, 4:3, 5:4, 3:2, 2:3, custom, natural
Background library

Set backgroundType to image and pass any of these as backgroundLibraryImage. Open one to grab its URL.

Big Sur Day
Big Sur Night
Monterey Dark
Monterey Light
Ventura Dark
Ventura Light
Sonoma Dark
Sonoma Light
Sequoia Dark
Sequoia Light
Tahoe Dark
Tahoe Light
Timeline

Videos with several clips

Set id to TimelineTemplate to play up to six templates back to back as one video, joined by transitions (cut, fade, wipe, scale, zoom through, camera move, morph), with text over the whole video and one soundtrack. Each clip takes a template id, its settings and an optional trim. A clip without images shows all of them.

This is one of four tested recipes, about 11 seconds for 14 pictures. The rest, every transition and its options, text and music are in /docs/llms.txt. In the editor, Copy JSON copies your whole timeline the same way.

Brand burst
{
  "id": "TimelineTemplate",
  "inputProps": {
    "images": ["https://your-cdn.com/01.jpg", "https://your-cdn.com/02.jpg", "https://your-cdn.com/03.jpg", "https://your-cdn.com/04.jpg", "https://your-cdn.com/05.jpg", "https://your-cdn.com/06.jpg", "https://your-cdn.com/07.jpg", "https://your-cdn.com/08.jpg", "https://your-cdn.com/09.jpg", "https://your-cdn.com/10.jpg", "https://your-cdn.com/11.jpg", "https://your-cdn.com/12.jpg", "https://your-cdn.com/13.jpg", "https://your-cdn.com/14.jpg"],
    "settings": {
      "aspectRatio": "4:5",
      "texts": [
        { "text": "Volt", "size": 6, "color": "#efeae0", "anchorH": "left", "anchorV": "top", "align": "left", "offsetX": 6, "offsetY": 6, "enter": "mask-up", "behind": true },
        { "text": "a synth brand identity", "size": 2.2, "bold": false, "color": "#ff4a1c", "anchorH": "left", "anchorV": "top", "align": "left", "offsetX": 6, "offsetY": 14, "enter": "mask-up", "behind": true }
      ],
      "clips": [
        {
          "templateId": "LoopGalleryFanTemplate",
          "trim": { "start": 0, "end": 0.36 },
          "settings": { "scale": 150, "backgroundColor": "#232220" }
        },
        {
          "templateId": "LoopGalleryRingCarouselTemplate",
          "trim": { "start": 0.1, "end": 0.47 },
          "settings": { "scale": 170, "backgroundColor": "#232220" },
          "transition": "scale",
          "transitionOptions": { "seconds": 1.1, "ease": [0.87, 0, 0.13, 1] }
        },
        {
          "templateId": "LoopGallerySpiralTemplate",
          "trim": { "start": 0.2, "end": 0.57 },
          "settings": { "backgroundColor": "#232220" },
          "transition": "scale",
          "transitionOptions": { "seconds": 1.1, "ease": [0.87, 0, 0.13, 1] }
        },
        {
          "templateId": "LoopGalleryStackGridTemplate",
          "trim": { "start": 0, "end": 0.4 },
          "settings": { "backgroundColor": "#232220" },
          "transition": "scale",
          "transitionOptions": { "seconds": 1.1, "ease": [0.87, 0, 0.13, 1] }
        }
      ]
    }
  }
}
Projects

Projects

Design a video in the editor once, then render it from your code as often as you like. The project renders as last saved, at its saved quality, exactly as the editor exports it, and you poll its statusUrl as for any render. The project itself never changes.

In the editor, open the project menu and choose Use in API to copy this request for the open project.

Terminal
curl -X POST https://reelfolio.io/api/v1/projects/PROJECT_ID/render \
  -H "x-api-key: $REELFOLIO_API_KEY"

Send inputProps to render it with other pictures or settings. images replaces the pictures in every clip at once, and each clip keeps about the same length. settings sets each named setting in every clip whose template has it.

Other pictures
{
  "inputProps": {
    "images": ["https://your-cdn.com/1.jpg", "https://your-cdn.com/2.jpg"],
    "settings": { "aspectRatio": "9:16" }
  }
}

Make a project

POST /api/v1/projects makes one to finish in the editor, from a render request, a copy of one of your projects (fromProject) or a ready-made project (starter: brand-burst, app-screens, photo-series, web-pages). It answers with its editorUrl and shows in the project menu. A project keeps only your own files, so name its pictures by the id or url that POST /api/v1/uploads returns.

New project
{
  "name": "Acme reel",
  "id": "CometTemplate",
  "inputProps": { "images": ["UPLOAD_ID_1", "UPLOAD_ID_2"] }
}
Copy a project
{
  "fromProject": "PROJECT_ID",
  "name": "Acme reel",
  "inputProps": { "images": ["UPLOAD_ID_1", "UPLOAD_ID_2"] }
}
From a ready-made project
{
  "starter": "brand-burst",
  "inputProps": { "images": ["UPLOAD_ID_1", "UPLOAD_ID_2"] }
}

An account holds up to 200 projects, counting the trash. A deleted project can be restored from the editor for 30 days. A project's content changes only in the editor, so a script can't overwrite work in progress.

Agents

Render with AI

Copy the reference as Markdown and paste it into ChatGPT, Claude, Cursor, or your editor's AI. It has the endpoints, auth, the common settings, every template, timelines and tested recipes, so the AI can build the calls for you. You can also fetch it at /docs/llms.txt. It is generated live, so it is always up to date.

It is deliberately small. A render needs only a template id and images, so the AI gets every id with a line on what it looks like, and fetches /docs/templates/<id>/llms.txt for the settings of the one it picks. If yours cannot fetch a URL, hand it /docs/llms-full.txt instead, which inlines every template and setting.

53 KB

Then ask in plain language, for example:

Make an 11 second video of my brand identity work for Instagram, like the Brand burst recipe. Name: Volt. Pictures:
https://example.com/1.jpg, https://example.com/2.jpg, https://example.com/3.jpg
0:00 / 0:00
Status codes

Errors

Errors return an HTTP status and { "error": "message" }.

StatusMeaning
400Invalid body, unknown template id, or a video URL. Code ON_DEVICE: the project has files kept only in one browser; open it in the editor there to upload them.
401Missing, invalid, or expired API key.
403Plan does not include API rendering, storage limit reached, or 200 projects already.
404Render or project not found (wrong id, someone else’s, or in the trash).
409The project was saved by a newer version of Reelfolio. Retry in a few minutes.
413Uploaded image is too large (max 64 MB).
429Over a fair-use ceiling: 5 renders in progress, 100 render starts, 300 uploads or 200 new projects in 24 hours. Wait for the Retry-After header, then retry.
Need a hand

Stuck on a render or a setting? Create a key and try the Quickstart, or reach out.