AIClipMaker.net API reference: REST endpoints
AIClipMaker.net REST API: authenticate with an API key, analyze uploaded videos into a drafted highlight reel board, edit it, and render 16:9 or 9:16.
Last updated: 2026-12-02
The API runs the same steps as the studio and the MCP server, at the same prices, limits and refunds: upload your videos, analyze them into a drafted board, adjust the board, render one reel. Every call goes to https://aiclipmaker.net over HTTPS with JSON bodies and replies.
Authentication
Create a key at Settings → API keys and send it with every call:
Authorization: Bearer sk_…
A key can do everything your account can, including spending credits. Keep it out of browser code and repositories, and revoke it on that page if it leaks. A call without a valid key gets 401.
Reply envelope
Every reply uses one envelope. On success code is 0 and the payload is in data; any other code comes with a message that explains the problem.
{ "code": 0, "message": "ok", "data": { … } }
POST calls that start paid work (/api/reels/projects, /api/reels/renders, /api/reels/batch) accept an Idempotency-Key header: repeat the call with the same key and you get the original result back, charged once.
1. Upload your videos
A project takes up to 10 videos, MP4 or MOV, each up to 10 minutes and 100 MB. Upload the files themselves; there is no link import. Each file goes up in parts:
POST /api/clips/upload/startwith{"fileName","contentType","size"}. The reply holdssourceId,token,partSizeandpartCount.POST /api/clips/upload/partwith{"token","partNumber"}for each part, numbered from 1. The reply holds a signedurland theheadersto send.PUTthat part's raw bytes (every part ispartSizebytes except the last) to theurlwithin 15 minutes, and keep theETagresponse header.POST /api/clips/upload/completewith{"sourceId","token","parts":[{"partNumber","etag"}]}. The server measures the stored file and runs an automated image-safety check on still frames from across it, then replies withid,fileName,kind,seconds,widthandheight. A file the check refuses, or cannot judge, is deleted and costs nothing.
POST /api/clips/upload/abort with {"sourceId","token"} gives up an upload. GET /api/clips/sources lists your checked uploads. Uploaded files are removed 7 days after they arrive.
2. Preview sheets
The analysis reads preview sheets, not the video itself. The studio makes them in your browser: one frame every 2 seconds, 16 frames per sheet in a 4×4 grid, each sheet a 1024×576 JPEG of at most 600 KiB, plus one loudness value from 0 to 1 for each second of the file. They are uploaded by presigned PUT (upload purpose sheet) and registered with:
POST /api/reels/sheets
{"sourceId":"…","keys":["…sheet keys, in order…"],"loudness":[0.12,0.4,…]}
The reply is {frames, sheets}. Each sheet passes the same image check before any AI model sees it; if one is refused, the sheets and the upload are deleted and nothing is charged.
Presigned sheet uploads come from a signed-in session, so the simplest API flow is: add the files once in the studio, which uploads, checks and prepares them, then call the API. GET /api/reels/projects shows every upload with a prepared flag; only prepared uploads can be analyzed. A client of your own must produce sheets in exactly this format.
3. Analyze
curl -s https://aiclipmaker.net/api/reels/projects \
-H "Authorization: Bearer $AICLIPMAKER_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: final-2026-12-03" \
-d '{"sourceIds":["…","…"],"rights":true,"title":"Spring final","target":30,"order":"buildup"}'
| Field | Meaning |
|---|---|
sourceIds | Required. 1 to 10 prepared uploads, in the order they happened. |
rights | Required, true: you filmed this footage or have permission to use it, including from the people in it. |
title | Optional project title, screened by the text check before use. |
target | Reel length to draft: 15, 30, 60 or 90 seconds. |
order | chronological, best (strongest moment first) or buildup (saves the strongest for last). |
locale | Optional hint for the spoken language, such as en or zh. |
It costs 20 credits per minute of footage, each file rounded up to a whole minute, with a minimum of 5 minutes, charged when it starts. An analysis that fails or finds no usable moments is refunded.
Poll GET /api/reels/projects/$PROJECT_ID every 15 to 30 seconds. phase goes from analyzing (with progress from 0 to 1) to ready or failed. When it is ready, board[] holds the drafted moments in order and bench[] the other strong ones. Each moment has sourceId, start, end, score (0–1), label and, for 9:16, crop.
GET /api/reels/projects returns your studio state: plan entitlements, season-queue access, balance, uploads (with prepared), projects and renders. DELETE /api/reels/projects/$PROJECT_ID hides a finished project.
4. Edit the board (free)
PUT /api/reels/projects/$PROJECT_IDwith{"board":[{"sourceId","start","end","crop"}]}saves your edited board: reorder, trim, swap in bench moments or add moments you marked yourself. A reel holds up to 12 moments and 90 seconds;cropisleft,centerorright.POST /api/reels/projects/$PROJECT_ID/draftwith{"target","order"}drafts the board again at another length or order and replaces it.
Neither call costs credits.
5. Music (optional)
Upload your own track (MP3, M4A or WAV, up to 20 MB) by presigned PUT with purpose music from a signed-in session, then:
POST /api/reels/music
{"key":"…","rights":true}
rights: true confirms you own the track or hold a licence for it. The reply is {"musicId": "…"}.
6. Render
curl -s https://aiclipmaker.net/api/reels/renders \
-H "Authorization: Bearer $AICLIPMAKER_KEY" \
-H "Content-Type: application/json" \
-d '{"projectId":"…","aspect":"vertical","audio":"source","title":"Spring final","endCard":"Season 2026"}'
| Field | Meaning |
|---|---|
projectId | Required. A ready project; its saved board is rendered. |
aspect | landscape (16:9, 1280×720, 85 credits) or vertical (9:16, 720×1280, 110 credits). |
audio | source (each moment's own sound), music or both (music lowered under voices). |
musicId | Required when audio uses music. |
title | Optional title card text; endCard optional end card text. Both are screened by the text check. |
Poll GET /api/reels/renders/$RENDER_ID. phase moves through cutting, joining, finishing and checking; status ends at success or failed. When it succeeds, output is the MP4 URL. Every reel passes the output check before it is shown; a render that fails or is refused is refunded in full. GET /api/reels/renders?projectId=… lists a project's renders, and DELETE /api/reels/renders/$RENDER_ID removes one with its file.
7. Season queue (Season Reel plan)
POST /api/reels/batch
{"rights":true,"target":30,"order":"best","aspect":"vertical","audio":"source",
"items":[{"sourceIds":["…","…"],"title":"Game 1"},{"sourceIds":["…"],"title":"Game 2"}]}
Up to 20 events, each analyzed and then rendered with the same settings (musicId and endCard are optional). Each event is charged and refunded on its own. The reply is {batchId, items}, where each item holds either project or an error and status. Without an active Season Reel plan the call answers 403 with pro_required.
Errors and limits
| Status | Meaning |
|---|---|
400 | The body is missing a field or has a wrong one; message says which. |
401 | Missing, unknown or revoked API key. |
402 | Not enough credits. Nothing was charged. |
403 | pro_required: the season queue needs the Season Reel plan. |
404 | No such upload, project or render on your account. |
422 | A file, a sheet or your text did not pass the safety check. |
429 | Too many calls, or every running-job slot is busy. Retry after a short pause. |
Running-job slots: one on the free grant, three once you have bought any plan or pack.
MCP instead of HTTP
Prefer an assistant? The MCP server gives Claude, ChatGPT, Cursor and VS Code the same steps. Your API key works there too.