Back to home

AIClipMaker.io REST API reference

The AIClipMaker.io REST API: sign requests with an API key, upload a video, shortlist its best moments, re-pick, keep the clips you choose, get transcripts.

Last updated: 2026-12-02

The REST API runs the same steps as the website and the MCP server, with the same prices, limits and refunds: upload, shortlist, re-pick, keep. All calls go to https://aiclipmaker.io over HTTPS and speak JSON in both directions.

Authentication

Create a key at Settings → API keys and send it on every call:

Authorization: Bearer sk_…

A key can do anything your account can, spending credits included. Never ship one in browser code or commit it to a repo, and if one leaks, revoke it on that page. Calls without a valid key get 401.

Response shape

Replies share one envelope. On success code is 0 and the payload sits in data; any other code arrives with a message explaining the problem.

{ "code": 0, "message": "ok", "data": { … } }

1. Upload the video

Upload the file itself, MP4 or MOV, up to 10 minutes and 100 MB. There is no link import. Three calls, in parts:

  1. POST /api/clips/upload/start: send {"fileName","contentType","size"}, and the reply gives you sourceId, token, partSize and partCount.
  2. POST /api/clips/upload/part: send {"token","partNumber"} and you get back a signed url and the headers to send. PUT the raw bytes of that part to the url within 15 minutes; the file goes straight to storage. Parts are numbered from 1, all partSize bytes but the last. Keep the ETag response header of every PUT.
  3. POST /api/clips/upload/complete: send {"sourceId","token","parts":[{"partNumber","etag"}]}. The server measures the stored file, runs an automated safety check on frames sampled across it and answers with the source: id, fileName, seconds, width and height. A file the check refuses, or cannot check, is deleted.

GET /api/clips/sources lists your uploads. Uploads are deleted 7 days after upload.

2. Shortlist it

curl -s https://aiclipmaker.io/api/clips/jobs \
  -H "Authorization: Bearer $AICLIPMAKER_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: talk-2026-12-02" \
  -d '{"mode":"shortlist","sourceId":"…","rights":true,"focus":"the pricing questions"}'
FieldMeaning
modeshortlist.
sourceIdRequired. From step 1.
rightsRequired, true: you confirm you own the video or have the rights to clip it.
focusOptional, up to 200 characters. Steers the picks; screened by the content check before charging.
localeen or zh: the language of titles and reasons.

It costs 7 credits per minute of video, rounded up, minimum 10 minutes, charged when it starts. Repeat a call with the same Idempotency-Key and you get the original job back, charged once.

3. Poll until done

curl -s https://aiclipmaker.io/api/clips/jobs/$JOB_ID \
  -H "Authorization: Bearer $AICLIPMAKER_KEY"

phase moves through audio (long files only), transcribe and pick, and ends at done or failed. Poll every 20 to 30 seconds. When it is done, clips[] holds up to 10 candidates, each with start, end, title, hook (the opening line), why (the reason) and score (0–100). Nothing is rendered yet.

Call GET /api/clips/jobs for your recent jobs; DELETE /api/clips/jobs/$JOB_ID removes a finished one together with its files.

4. Re-pick (optional)

curl -s https://aiclipmaker.io/api/clips/jobs \
  -H "Authorization: Bearer $AICLIPMAKER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode":"repick","shortlistId":"…","focus":"only the funny moments"}'

A re-pick reads the same transcript with a new steer and returns a fresh set of candidates. 1 is included per shortlist; after that each costs 16 credits.

5. Keep the clips you want

curl -s https://aiclipmaker.io/api/clips/jobs \
  -H "Authorization: Bearer $AICLIPMAKER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode":"vertical","shortlistId":"…","range":{"start":754,"end":812,"title":"Why we left"},"crop":"left"}'
FieldMeaning
modeThe style: plain (30 credits), vertical (49) or captioned (189).
shortlistIdRequired. The finished shortlist the range comes from.
rangeRequired. start and end in seconds, 15 to 90 s long; title optional.
cropvertical and captioned only: left, center or right third of the frame. No face tracking.

Each kept clip is its own job. Poll it the same way; when phase is done, clips[0].output is the MP4 URL. A clip that fails to render is refunded automatically.

6. Transcripts

curl -s -o talk.srt -H "Authorization: Bearer $AICLIPMAKER_KEY" \
  "https://aiclipmaker.io/api/clips/jobs/$JOB_ID/subtitles?format=srt"

format is txt, srt or vtt (a file), or json (word timings in the envelope).

Errors and limits

StatusMeaning
400A field is missing or wrong; message names it.
401Missing, unknown or revoked API key.
402Not enough credits. Nothing was charged.
403pro_required: the batch queue needs the Director's Cut plan.
404No such source or job on your account.
422The steer or the file did not pass our content screening.
429Rate limit hit, or your running-job slots are full. Retry shortly.

Running-job slots: one on the free tier, three once you have bought any plan or pack.

MCP instead of HTTP

Claude, ChatGPT, Cursor and VS Code can run the same steps through the MCP server. Your API key is accepted there as well.