slomo API

Send a video, get back smooth AI slow motion. The API does what the editor does: pick a speed, optionally trim, and download an MP4. It's included in the Studio plan, and clips use the same credits as the editor.

Base URLhttps://slomo.com/api/v1

Quick start

Create a clip from a video URL:

Request
curl https://slomo.com/api/v1/clips \
  -H "Authorization: Bearer $SLOMO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source_url": "https://example.com/skate.mp4", "factor": 4}'

You get a clip back with "status": "queued". Check on it until it has finished (or use a webhook):

Request
curl https://slomo.com/api/v1/clips/CLIP_ID -H "Authorization: Bearer $SLOMO_API_KEY"
Response
{
  "id": "0b8f6c1e-...",
  "object": "clip",
  "status": "succeeded",
  "factor": 4,
  "trim_start": null,
  "trim_end": null,
  "slow_start": null,
  "slow_end": null,
  "audio": false,
  "error": null,
  "credits_charged": 3,
  "input": { "width": 1920, "height": 1080, "fps": 30, "duration": 8.2 },
  "output_frames": 981,
  "watermark": false,
  "download_url": "https://...",
  "created_at": "2026-11-10T22:01:48.000Z",
  "completed_at": "2026-11-10T22:02:31.000Z",
  "expires_at": "2026-12-10T22:02:31.000Z"
}

download_url works for one hour. Fetch the clip again for a fresh link. Most clips finish in about a minute.

Authentication

Send your key in the Authorization header: Bearer slomo_live_…. Keys are created and revoked on the API page and are shown once. Keep them on your server; never put one in a web page or mobile app.

Create a clip

POST /clips. Send either source_url or upload.

source_urlA public https link to the video (MP4, MOV, WebM or MKV). We download it once.
uploadUse this instead to send the file yourself: {"filename", "content_type", "size_bytes"}. See uploading a file.
factorHow much slower: 2, 4, 8 or 16. Default 4.
trim_start, trim_endOptional. Only slow down this part of the video, in seconds. The selection can be up to 180 seconds.
slow_start, slow_endOptional speed ramp. Slow down only this part, in seconds; the rest of the clip plays at normal speed and eases in and out of the slow part. Must be inside the trimmed part.
audioOptional, default false. Set true to keep the video's sound, slowed to match the picture at its original pitch. With a speed ramp, the normal-speed parts keep their normal sound.
webhook_urlOptional. A public https URL we call when the clip finishes.

Add an Idempotency-Key header (any unique string) so that retrying a request after a network error returns the same clip instead of creating, and charging for, a second one.

Uploading a file

If the video isn't at a public URL, upload it in three steps.

Three requests
# 1. Create the clip and get an upload URL
curl https://slomo.com/api/v1/clips \
  -H "Authorization: Bearer $SLOMO_API_KEY" -H "Content-Type: application/json" \
  -d '{"upload": {"filename": "skate.mp4", "content_type": "video/mp4", "size_bytes": 18234567}, "factor": 8}'

# 2. PUT the file to upload.url, with the same content type and exact size
curl -X PUT "UPLOAD_URL" -H "Content-Type: video/mp4" --data-binary @skate.mp4

# 3. Start processing
curl -X POST https://slomo.com/api/v1/clips/CLIP_ID/start -H "Authorization: Bearer $SLOMO_API_KEY"

The upload URL works for 30 minutes.

Other endpoints

GET/clips/{id}One clip.
GET/clipsYour API clips, newest first. limit (1–100, default 20) and starting_after (a clip id) page through them.
DELETE/clips/{id}Delete a finished clip's files now instead of waiting for it to expire.
GET/accountYour credit balance and limits.

Clip status is one of awaiting_upload, queued, processing, succeeded, failed or deleted.

Webhooks

If you set webhook_url, we POST to it when the clip succeeds or fails:

What we send
{
  "type": "clip.succeeded",        // or "clip.failed"
  "created": 1794348151,
  "data": { "clip": { "id": "0b8f6c1e-...", "status": "succeeded", "download_url": "https://...", ... } }
}

Check that it came from us. Each request has x-slomo-timestamp and x-slomo-signature headers; the signature is sha256= followed by the HMAC-SHA256 of `${timestamp}.${rawBody}` using the webhook signing secret shown when you created the key.

Checking the signature, in Node.js
import { createHmac, timingSafeEqual } from "node:crypto";

function isFromSlomo(rawBody, headers, secret) {
  const ts = headers["x-slomo-timestamp"];
  const expected = "sha256=" + createHmac("sha256", secret).update(ts + "." + rawBody).digest("hex");
  const given = headers["x-slomo-signature"] ?? "";
  const fresh = Math.abs(Date.now() / 1000 - Number(ts)) < 300;
  return fresh && given.length === expected.length && timingSafeEqual(Buffer.from(given), Buffer.from(expected));
}

Reply with any 2xx status within 10 seconds. We try up to three times. Webhooks are a convenience, not a guarantee: if you must not miss a result, also check GET /clips/{id}.

Credits and limits

1 credit ≈ 1,000 output frames at 1080p, scaled by resolution (4K costs about 4x). A 10-second 30fps clip at 8x in 1080p is about 3 credits. You're charged for the frames actually produced, and nothing if a clip fails.

We measure the video before any processing starts. If you don't have enough credits the clip fails with a message saying how many it needs, and you aren't charged. Top up any time with pay-as-you-go credits on the billing page.

OutputUp to 4K (2160p) MP4, H.264 with AAC sound if you ask for it, no watermark.
LengthUp to 180 seconds per clip (after trimming). A long clip at a high speed in 4K can be more than can be made in time: it then fails with an error saying what to shorten, and uses no credits.
InputUp to 240fps (clips above 60fps play back at 60fps or less, built from real frames first) and 4 GB.
At once3 clips queued or processing at a time.
Kept for30 days, then deleted.

Errors

Errors use normal HTTP status codes and this shape:

Error response
{ "error": { "code": "insufficient_credits", "message": "You have no credits left. ..." } }
400 invalid_requestSomething in the request is wrong; the message says what.
401 unauthorized / invalid_api_keyMissing, wrong or revoked key.
402 insufficient_creditsNo credits left.
403 plan_requiredThe account isn't on the Studio plan.
403 clip_too_long / factor_not_in_planOver your plan's limits.
409 clip_in_progressYou tried to delete a clip that's still processing.
429 too_many_active_clipsWait for a clip to finish, then retry.
503 worker_unavailableTemporary. You weren't charged; retry shortly.

A clip can also end with "status": "failed" and a readable error, for example when the video is longer than the limit or can't be read.