Skip to content
Shotreels
Generate image Pricing Projects
English
English한국어
Sign in
What it doesKeysMake a videoThe request bodyEndpointsThe video objectErrorsWebhooksMCP for Claude and ChatGPTLimits and pricesHow long files stay

Shotreels for developers

Make narrated short videos from your own code or from an AI assistant. Send a script, get an MP4 back. The API, the webhooks and the MCP server come with every plan (Plus, Pro and Studio).

1. What it does

You send a script. Each line becomes one scene with a subtitle, a spoken voice and a picture, either made by AI or taken from image addresses you give. We render the video on our servers and you download the MP4. A video is up to 60 seconds.

  • REST API. Create, check, list and cancel videos with plain HTTP.
  • Webhooks. We call your address when a video is done, so you do not have to poll.
  • MCP. Claude, ChatGPT and other assistants can make videos for you through the same account.

Videos made in the Shotreels app itself are rendered in your browser and cost nothing. Only videos made through the API or MCP are rendered on our servers and use credits (see Limits and prices).

2. Keys

Every request needs an API key. Make one in the app under Settings, API and MCP. The key starts with sr_ and is shown once, so copy it then. You can have 3 keys on Plus, 10 on Pro and 20 on Studio, and you can revoke one at any time.

Send it in the Authorization header. Keep it on your server and never put it in a web page or a mobile app.

export SHOTREELS_KEY=sr_your_key_here
curl https://shotreels.app/api/v1/me -H "Authorization: Bearer $SHOTREELS_KEY"

GET /me answers with your plan, your credits, your limits and what you have used this month. Requests with a missing or wrong key get 401; an account without a plan gets 403 plan_required. Each key may make 60 requests a minute; over that you get 429 rate_limited with a Retry-After header.

3. Make a video

1. Ask what it would cost. The estimate does not charge anything and does not make anything.

curl https://shotreels.app/api/v1/videos/estimate -H "Authorization: Bearer $SHOTREELS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "script": "Coffee tastes better when you slow down.\nGrind fresh. Pour slowly.\nThen sit and enjoy the first sip.",
    "language": "en",
    "aspect": "9:16",
    "pictures": { "source": "ai", "style": "cinematic", "quality": "draft" }
  }'

The answer has the estimated length in seconds and the credits for each part (voice, plan, pictures, render, total).

2. Create it. The same body creates the video. The credits are taken now and given back in full if the video fails. If you cancel it, only the credits for work that has not started come back (see Limits and prices). You get 202 and the video with status queued.

curl https://shotreels.app/api/v1/videos -H "Authorization: Bearer $SHOTREELS_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-1042" \
  -d '{ "script": "Coffee tastes better when you slow down.\nGrind fresh. Pour slowly." }'

Idempotency-Key is optional. Sending the same key and the same body again returns the first video instead of making a second one, which makes a retry after a network error safe.

3. Wait for it. Register a webhook, or ask for the video every few seconds until its status is succeeded, failed or canceled.

curl https://shotreels.app/api/v1/videos/VIDEO_ID -H "Authorization: Bearer $SHOTREELS_KEY"

When it has succeeded, result.url is a download link for the MP4. It works for 24 hours; ask for the video again to get a fresh one.

4. The request body

The same body is used by POST /videos/estimate and POST /videos.

FieldMeaning
scriptRequired. Up to 3000 characters. Each non-empty line is one scene. A single long line is split at sentence ends. 1 to 20 scenes, and a line of at most 600 characters.
title, subtitleOptional text for the title band, up to 60 characters each.
languageOptional. ko, en, es, fr, ja, zh, de, it or pt. We detect it from the script when you leave it out.
voiceOptional. A voice id from GET /voices, or "none" for a silent video.
aspect9:16 (default), 1:1 or 16:9.
resolution1080p (default) or 720p.
subtitlestrue (default) or false.
pictures{ "source": "ai", "style": "photographic", "quality": "draft" } (default) makes one picture per scene with AI. { "source": "urls", "urls": ["https://..."] } uses your own pictures in order, and reuses them when there are fewer than scenes.

Picture addresses must be public https addresses of JPEG, PNG or WebP files up to 15 MB, at most 8192 pixels on a side and 16.7 million pixels in all. Addresses that point to private networks are refused with url_not_allowed. GET /options lists the styles, qualities, sizes and credit costs, and GET /voices lists the voices.

5. Endpoints

Base address: https://shotreels.app/api/v1. Every endpoint except openapi.json needs the key. The machine-readable description is at /api/v1/openapi.json.

EndpointWhat it does
GET /meYour plan, credits, limits and use this month.
GET /optionsAspects, resolutions, languages, picture styles and what each costs.
GET /voices?language=enThe voices, with tier and credits per 100 characters.
POST /videos/estimateLength and credits for a request. Charges nothing.
POST /videosMake a video. Returns 202.
GET /videosYour videos, newest first. limit (1 to 100) and cursor.
GET /videos/:idOne video: status, progress, error and result.
POST /videos/:id/cancelCancel a video that is still queued or generating. A queued video gets every credit back; a generating one only the credits for parts that have not started.
GET /webhooks, POST /webhooks, DELETE /webhooks/:idManage webhook addresses.
# list the newest 5 videos
curl "https://shotreels.app/api/v1/videos?limit=5" -H "Authorization: Bearer $SHOTREELS_KEY"

# cancel
curl -X POST https://shotreels.app/api/v1/videos/VIDEO_ID/cancel -H "Authorization: Bearer $SHOTREELS_KEY"

# add a webhook address
curl https://shotreels.app/api/v1/webhooks -H "Authorization: Bearer $SHOTREELS_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://example.com/hooks/shotreels", "events": ["video.succeeded", "video.failed"] }'

Once a video is rendering it can no longer be canceled (409 too_late).

6. The video object

{
  "id": "6f1c2a9e-5d3b-4c1e-9a77-2b8e4d0f1a33",
  "status": "succeeded",
  "stage": "done",
  "progress": 1,
  "created_at": "2026-11-01T09:30:00.000Z",
  "finished_at": "2026-11-01T09:32:10.000Z",
  "estimate": { "seconds": 14.2, "credits": { "voice": 3, "plan": 1, "pictures": 3, "render": 1, "total": 8 } },
  "credits": 8,
  "seconds": 13.8,
  "width": 1080,
  "height": 1920,
  "result": {
    "url": "https://shotreels.app/...",
    "expires_at": "2026-11-02T09:32:10.000Z",
    "seconds": 13.8,
    "width": 1080,
    "height": 1920,
    "bytes": 4120331
  }
}
  • status is queued, generating, rendering, succeeded, failed or canceled. The last three are final.
  • progress goes from 0 to 1. stage names the step (making_pictures, making_voices, building, render_pending and so on).
  • credits is what is held for this video now. A failed video holds none. A canceled video holds what was spent on work that had already started.
  • error appears on a failed video as { "code": "...", "message": "..." }. result is null until the video has succeeded.

7. Errors

Errors have the shape { "error": "code", "message": "A sentence you can show." }, plus extra fields for some codes.

StatusCodeMeaning
400bad_requestA field is missing or wrong. field names it.
400too_longThe video would be over 60 seconds.
400url_not_allowedA picture or webhook address is not a public https address.
400unsafe_contentThe text or a picture prompt was refused by the safety check.
401missing_key, invalid_keyNo key, or the key is wrong or revoked.
402not_enough_creditsNot enough credits. short says how many are missing.
403plan_requiredThe account has no plan (Plus, Pro or Studio).
404not_foundNo such video, or it belongs to another account.
409finished, too_late, idempotency_key_reusedThe video cannot be canceled any more, or the key was used for a different request.
429quota_exceededThe month's video limit is used up.
429too_many_in_progressToo many videos at once.
429attempt_limitToo many videos were started this month, canceled and failed ones included.
429rate_limitedToo many requests a minute, or too many new videos started in a short time. Retry-After says when to try again.
503unavailable, busyThe service cannot take the request right now. Try again soon.

A video that fails later has its own error.code: url_failed (a picture address could not be fetched; url_index says which), plan_failed, picture_failed, voice_failed, unsafe_content, too_long or internal. Its credits are returned.

8. Webhooks

A webhook is an https address of yours that we call when a video ends. Add one in Settings, API and MCP or with POST /webhooks. The signing secret (whsec_...) is shown once. You can have 2 addresses on Plus, 5 on Pro and 10 on Studio, and the Settings page has a button that sends a test event.

Events: video.succeeded, video.failed and video.canceled (and ping for the test). Each request is a POST with this body:

{
  "id": "evt_1",
  "type": "video.succeeded",
  "created": 1793525530,
  "data": { "video": { "id": "6f1c2a9e-...", "status": "succeeded", "result": { "url": "https://..." } } }
}

data.video is the same video object as above. The headers are Shotreels-Event, Shotreels-Delivery (the id of this delivery) and Shotreels-Signature.

Check the signature

The signature header looks like t=1793525530,v1=3f9c.... v1 is the hex HMAC-SHA256 of the text t + "." + body, keyed with your signing secret. Compute it over the raw body, before any JSON parsing, and reject requests whose t is more than 5 minutes old.

import { createHmac, timingSafeEqual } from 'node:crypto';

export function verify(rawBody, header, secret, toleranceSeconds = 300) {
  const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false;
  const expected = createHmac('sha256', secret).update(t + '.' + rawBody).digest('hex');
  const got = Buffer.from(parts.v1 ?? '', 'hex');
  const want = Buffer.from(expected, 'hex');
  return got.length === want.length && timingSafeEqual(got, want);
}
import hashlib, hmac, time

def verify(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    t = int(parts.get("t", "0"))
    if not t or abs(time.time() - t) > tolerance:
        return False
    expected = hmac.new(secret.encode(), str(t).encode() + b"." + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts.get("v1", ""))

Retries

Answer with any 2xx status to confirm. Anything else, or no answer, is tried again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours, then we stop. The same event can arrive more than once, so use Shotreels-Delivery or the video id to ignore a repeat. Settings shows the latest deliveries and their status codes. If you stop getting events, you can always read the video with GET /videos/:id.

9. MCP for Claude and ChatGPT

The MCP server lets an assistant make videos from a chat. Address:

https://shotreels.app/mcp

It uses Streamable HTTP. Videos made through MCP come out of the same account, limits and credits as the API.

Claude. Open Settings, then Connectors, and add a custom connector. Paste the address above and sign in to Shotreels when asked. Then ask, for example, "Make a 20 second video about slow coffee in English."

ChatGPT. Turn on developer mode in Settings, then Connectors, and add a connector with the same address. Sign in to Shotreels when asked.

Other tools, or your own agent. If the client cannot sign in, give it an API key instead and send Authorization: Bearer sr_... with every request.

Tools: create_video, estimate_video, get_video, list_videos, cancel_video, list_voices and get_account. They take the same fields as the REST API and answer with the same objects. Ask the assistant to show the estimate before it creates a video if you want to see the credits first.

10. Limits and prices

API, webhooks and MCP are included with Plus ($9 a month), Pro ($24 a month) and Studio ($99 a month). Prices are in US dollars. See Pricing for the plans and credit packs. Credits from a pack alone do not turn the API on.

PlusProStudio
Videos rendered on our servers per month503001500
Videos in progress at once2510
API keys31020
Webhook addresses2510
Requests per minute per key606060
Longest video60 seconds60 seconds60 seconds

The month is a calendar month in UTC. Failed and canceled videos do not count toward the monthly videos. Settings shows how many you have used and when the count starts again.

Starting videos is limited too, because each start can cost us work even when you cancel. Per month you can start 150 videos on Plus, 900 on Pro and 4500 on Studio (three times the monthly videos), counting canceled and failed ones; over that you get 429 attempt_limit. New videos can be started 10 a minute and 200 a day per account; over that you get 429 rate_limited with Retry-After.

Credits per video

PartCredits
Rendering1 for every started 30 seconds of video (up to 30: 1, up to 60: 2)
Voice1 for every started 100 characters of a line, 2 with a premium voice. None with "voice": "none".
Picture prompts1 for the whole video, when the pictures are made by AI
Pictures made by AI1 per scene at draft, 4 per scene at final. None with your own pictures.

Every credit is taken when you create the video. If the video fails, all of them are returned. If you cancel it while it is still queued, all of them are returned too. Once it is generating, the steps already running or finished are not returned, because we have paid for that work: planning the pictures (plan), making the pictures (pictures) and speaking the lines (voice). A step counts as started when it begins. The rendering credits are always returned on a cancel. If the finished video is shorter than the estimate, the unused rendering credits are returned.

11. How long files stay

The finished MP4 and the files made for it are kept for 7 days, then deleted. Download it before that. The download link in result.url works for 24 hours; ask for the video again for a new link. The pictures you send by address are deleted when the video is done. Deleting your account deletes everything. See the Privacy Policy and the Terms.

To post a finished video to social accounts, hand its result.url to Plumcue, our scheduling app. The link needs no key, so its API or MCP can fetch the MP4 from it (Plumcue takes videos up to 3 minutes and 100 MB).

PentarabShotreelsPricingDevelopersTerms of ServicePrivacy PolicyAcceptable Use PolicyRefund & cancellationsupport@shotreels.app
Script to videoFaceless ShortsStory videosAI voiceover

Shotreels is sold by Dodo Payments Inc, 8 The Green, STE A, Dover, Delaware 19901, USA, the merchant of record. Dodo Payments handles payment, tax and refunds.