Start here
Video Bricks takes footage in, measures every second of it, and edits it into finished videos. This page takes you from nothing to a real index of a recording and a video made from it in about five minutes, with a test key that is never charged.
You need a terminal with curl and jq. Every block below runs as it is in bash or zsh, one after another in the same window. The reference lists every call.
1. Sign up
Sign up with your email and a password of your own:
export API=https://api.videobricks.app/v1
export EMAIL=you@example.com
export PASSWORD='a long and private phrase'
curl -s "$API/sign-up" -H 'Content-Type: application/json' \
-d '{"name": "Dana Okafor", "email": "'"$EMAIL"'", "password": "'"$PASSWORD"'"}'
We email you a link to confirm it, https://app.videobricks.app/confirm?token=.... Copy the token, everything after token=, and send it back. That signs you in, in a workspace of your own:
export TOKEN=the_token_from_the_link
SESSION=$(curl -s "$API/email/confirm" -H 'Content-Type: application/json' \
-d '{"token": "'"$TOKEN"'"}' | jq -r .token)
You can sign up at app.videobricks.app instead, and make the key of the next step on its Keys page.
2. Make a test key
A test key reaches only the sample recordings, which every workspace shares, and the videos you make from them. Nothing it does is charged.
KEY=$(curl -s "$API/keys" -H "Authorization: Bearer $SESSION" -H 'Content-Type: application/json' \
-d '{"name": "Trying the API", "mode": "test", "scopes": ["footage.read", "edit.read", "edit.write"]}' | jq -r .secret)
echo $KEY
The key starts with sk_test_ and is shown only this once. Every call from here on sends it as a bearer token.
3. Find a sample
FOOTAGE=$(curl -s "$API/samples" -H "Authorization: Bearer $KEY" | jq -r '.data[0].footage.id')
curl -s "$API/footage/$FOOTAGE" -H "Authorization: Bearer $KEY" | jq .
A recording is ready once it is measured. Its seconds is how long it is.
4. Read its index
The index is what was found in the recording, in words an editor uses: every shot, sentence, speaker turn, pause and fault, with its times in seconds on the recording's own clock.
curl -s "$API/footage/$FOOTAGE/index?to=60&kinds=shot,sentence,pause" -H "Authorization: Bearer $KEY" | jq .
from and to pick a stretch, and kinds picks the kinds of event. Leave both out for the whole recording. summary adds up the stretch, and bars says where each kind of fault starts counting.
5. Ask for a video
A video is made from a spec: the stretches of footage to draw from, and the settings to cut it by. The solver places every cut, and the video renders at once.
REVISION=$(curl -s "$API/videos" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
-d '{"title": "My first clip", "spec": {"sources": [{"footage": "'"$FOOTAGE"'", "from": 0, "to": 30}], "settings": {"out.shape": "9:16"}, "pins": []}}' | jq -r .revision)
RENDER=$(curl -s "$API/revisions/$REVISION" -H "Authorization: Bearer $KEY" | jq -r .render)
Read the render until it has passed its checks or failed. It takes a minute or two:
STATE=queued
while [ "$STATE" != passed ] && [ "$STATE" != failed ]; do
sleep 5
STATE=$(curl -s "$API/renders/$RENDER" -H "Authorization: Bearer $KEY" | jq -r .state)
done
curl -s "$API/renders/$RENDER" -H "Authorization: Bearer $KEY" | jq .
link plays the finished video, and checks says how it measured against its spec. A failed render says why in problem.
Next
- The reference shows every call with its scope, its answer and examples in curl and TypeScript, and lets you try calls with your key.
- The TypeScript client is made from the same document:
npm install videobricks, thenclient.setConfig({ auth: "sk_test_..." })and call any operation by its name, such aslistSamples(). - The document itself is at /openapi.json and /openapi.yaml, for any other generator.
- An AI agent reaches the same calls through the MCP server at
https://api.videobricks.app/mcp, with a key sent as a bearer token. - When you are ready for your own footage, make a key with
"mode": "live". A live key is charged by the minute for what it measures, stores and renders.