Authentication
On this page
Send the key
Put the key in the Authorization header as a bearer token, on every request. There is nothing else to sign or exchange, and keys do not expire.
curl https://app.kinema.cc/v1/usage \
-H "Authorization: Bearer $KINEMA_API_KEY"const res = await fetch("https://app.kinema.cc/v1/usage", {
headers: { Authorization: `Bearer ${process.env.KINEMA_API_KEY}` },
});
console.log(res.status, res.headers.get("X-Request-Id"), await res.json());import os
import requests
res = requests.get(
"https://app.kinema.cc/v1/usage",
headers={"Authorization": f"Bearer {os.environ['KINEMA_API_KEY']}"},
)
print(res.status_code, res.headers["X-Request-Id"], res.json()){
"mode": "test",
"balance": 25000,
"period_start": "2026-11-01T00:00:00.000Z",
"requests": 4,
"errors": 0,
"videos": 1,
"credits_charged": 0
}Warning: Keys are for servers
A key can spend your workspace's credits. Keep it on your servers, in an environment variable or a secret store. Never put it in a web page, a mobile app or anything else other people can download.
If a request is refused
Check the key, the workspace it belongs to and the permission the endpoint needs. For a rate limit, wait the number of seconds in Retry-After. Keep the X-Request-Id if you contact support.
A refused request answers with an error you can act on. The message of insufficient_scope names the permission the call needs:
{
"error": {
"code": "insufficient_scope",
"message": "This API key requires the usage:read permission."
},
"request_id": "5d1e0c2b9f6a4f0e8a3b7c21d4e9f611"
}Create a key
Open the API settings
In your workspace, open Settings, then API. The owner of a workspace and the managers of a team see this tab; editors do not. A key belongs to the workspace you are in when you create it, so switch to the right one first.
Name it and choose what it may do
Press Create key. Give it a name you will recognise later (up to 80 characters), choose Test or Live, and tick at least one permission. The dialog opens on Test. Live is offered only to a workspace with a plan.

A key can do only what you tick here. Its permissions cannot be changed later. Copy the secret
The secret appears once, right after you press Create key. Store it as a secret on your server, for example in an environment variable.

Copy the secret now. Nobody can show it to you again. Shellexport KINEMA_API_KEY="kin_live_your_secret"
Permissions
Give each key only the permissions its job needs. A request outside them is refused with 403 and insufficient_scope.
| Permission | In the app | Lets the key call |
|---|---|---|
videos:read | Read videos | GET /v1/videos, a video, its download and its renders |
videos:write | Make and edit videos | POST /v1/videos; render, resume, cancel, approve and delete a video; delete a render |
assets:read | Read uploads | GET /v1/uploads, voices, avatars, channels, Styles, the catalog and a copied Style |
assets:write | Upload files | Create, complete and delete an upload; clone a voice, add an avatar, add to the library, copy a Style; make or change a channel |
usage:read | Read usage and prices | POST /v1/estimates and GET /v1/usage |
| A key that | Needs |
|---|---|
| Makes videos from scripts | videos:read, videos:write, assets:read to find a voice, usage:read to check the price |
| Also sends recordings, adds voices, avatars or Styles, or makes channels | All of the above and assets:write |
| Only follows videos, for a status page | videos:read |
| Only reports spending | usage:read |
Test keys and live keys
Build against a test key, then swap in a live key. The requests are the same; what happens behind them is not.
The same request
Same address, same body, same answers.
A test key
Starts with kin_test_.
- Every field is checked
- Nothing is made and no credits are used
- You can follow the sample video through its statuses
- Its download is a sample file
A live key
Starts with kin_live_.
- Every field, the length and your own voices and avatars are checked
- The price is held from your balance as it starts
- The video is made like any video in the app
- Its download is your video
| Test key | Live key | |
|---|---|---|
| Needs | An owner or a manager of the workspace | The same, a workspace with an active plan, and a maker whose account has full access, not one still waiting for review |
| Credits | Never used. Estimates and usage show a balance of 25,000. | Your workspace's credits, at your workspace's prices |
| Videos | Nothing is made. The statuses change automatically and the download is a sample file. | Made like any video in the app, and opened in the editor from editor_url |
| Voices, avatars, channels | One sandbox voice, test_voice, one sandbox avatar, test_avatar, and two sandbox channels: 1 for documentaries and 2 for AI Avatar videos, with that voice and that avatar. A voice or an avatar you add with the test key is a stand-in that joins its list. | Your own voices, avatars and channels. A voice or an avatar you add is cloned or made, with a record of the permission you confirmed. |
| Uploads | Nothing is stored and there is no file to send; completing an upload makes it ready at once. | The file goes to storage and is checked when you complete it |
| Library, Styles, renders | The premade and classic Styles as live, and stand-ins: a copied Style is ready at once and costs nothing, and a completed video lists one render | Your workspace's own, as in the app |
| Generate later | A scheduled video waits in accepted until its time | A scheduled video holds its lower price and waits in queued until its time |
| Checks | Every field and the script's minimum length. Not the longest a video may be, and not whether a voice or an avatar exists in your workspace. | Everything, including the length and that the voice and the avatar are yours |
The two modes never mix. A test key sees only test videos and uploads, and a live key only live ones; asking one for the other's video is answered with 404 not_found. Webhook endpoints have a mode too, and get only the events of their own mode. The rate limit is counted apart for each mode, so testing never slows your live traffic.
What a key can reach
| Reach | What it means |
|---|---|
| One workspace | Your personal workspace or one team. To work in two, make a key in each. |
| The workspace's videos | A live key lists and reads every video of its workspace, made in the app or through the API, with the app's own access rights, and can download, approve or delete one and list its renders. Render, resume and cancel are for videos made through the API. A test key sees only its own sandbox videos. A live API video is a video in your workspace like any other and opens in the same editor. |
| A shared rate limit | Every key of a workspace counts toward the same 120 requests a minute for its mode. See rate limits. |
Rotate and revoke
The Keys list in Settings, API shows each key's name, mode, the start of its secret, its permissions, when it was made and when it was last used. A revoked key leaves the list.

Make the new key first
Create a key with the same mode and permissions, and put its secret on your servers.
Let the old key's videos finish
A video keeps the key that created it. Its next step, being sent on to be made or rendering on its own once it is ready, runs with that key. Wait until the videos it started are
completed, or resume them with the new key after you revoke.Then revoke the old one
Press Revoke beside it, then Revoke key. It stops at once and for good: the next request with it gets
401invalid_api_key.
Revoke key stops the key at once, and it cannot be undone.
Warning: Revoking stops the key's waiting videos
Any of its videos that still has a step to start fails at that step with job_access_revoked. Resume it with a working key. If a secret has leaked, revoke it straight away all the same.
A key also stops working when the person who made it can no longer use the API: they leave the team, or become an editor (workspace_access_denied). A live key pauses while the workspace has no active plan (plan_required) and works again once it has one. If a key belongs to someone who is leaving, rotate it before they go.
When a key is refused
| Status | Code | Why | What to do |
|---|---|---|---|
| 401 | invalid_api_key | No key, a key that is not a Kinema key, or a revoked one. The answer has a WWW-Authenticate: Bearer header. | Check the header and the key in Settings, API. |
| 402 | plan_required | A live key, and the workspace has no active plan. | Choose a plan. |
| 403 | insufficient_scope | The key lacks the permission this call needs. The message names it. | Use a key with that permission. |
| 403 | workspace_access_denied | The key's maker is no longer an owner or manager of the workspace. | Make a new key with someone who is. |
| 403 | access_required | A live key, and its maker's account is still waiting for review. | Use a test key until the account has full access. |
| 429 | rate_limit_exceeded | The workspace sent 120 requests this minute in this mode. | Wait the seconds in Retry-After. |
| A video's error | job_access_revoked | The key used to start the video was revoked. | Resume it with a working key. |
Every other code is on Errors and retries.
Need a hand?
Ask on Discord, or write to hello@kinema.cc.