Cookies on Kinema

We use cookies only to keep you signed in, keep Kinema secure and remember this choice. Visits and page speed are counted in aggregate, without cookies or ads. You can turn that off in Preferences.

Kinema Studio 2 is here!

Read more

Authentication

Updated Nov 26, 2026

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"
Response
{
  "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:

403
{
  "error": {
    "code": "insufficient_scope",
    "message": "This API key requires the usage:read permission."
  },
  "request_id": "5d1e0c2b9f6a4f0e8a3b7c21d4e9f611"
}

Create a key

  1. 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.

  2. 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.

    The Create an API key dialog in Settings, API: the name Publishing server, Test mode selected with the note that test keys return sample videos and never use credits, and five permissions, four of them ticked: Read videos, Make and edit videos, Read uploads and Read usage and prices. Upload files is not ticked. Cancel and Create key at the bottom.
    A key can do only what you tick here. Its permissions cannot be changed later.
  3. 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.

    The Your new key dialog: Publishing server, test mode. The Secret key box holds the whole secret, a sample that starts kin_test_ExampleOnly, with a Copy button beside it. Under it the line This is the only time it is shown. Keep it somewhere safe, and the Done button.
    Copy the secret now. Nobody can show it to you again.
    Shell
    export 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.

PermissionIn the appLets the key call
videos:readRead videosGET /v1/videos, a video, its download and its renders
videos:writeMake and edit videosPOST /v1/videos; render, resume, cancel, approve and delete a video; delete a render
assets:readRead uploadsGET /v1/uploads, voices, avatars, channels, Styles, the catalog and a copied Style
assets:writeUpload filesCreate, complete and delete an upload; clone a voice, add an avatar, add to the library, copy a Style; make or change a channel
usage:readRead usage and pricesPOST /v1/estimates and GET /v1/usage
A key thatNeeds
Makes videos from scriptsvideos: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 channelsAll of the above and assets:write
Only follows videos, for a status pagevideos:read
Only reports spendingusage: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_.

    1. Every field is checked
    2. Nothing is made and no credits are used
    3. You can follow the sample video through its statuses
    4. Its download is a sample file
  • A live key

    Starts with kin_live_.

    1. Every field, the length and your own voices and avatars are checked
    2. The price is held from your balance as it starts
    3. The video is made like any video in the app
    4. Its download is your video
Test keyLive key
NeedsAn owner or a manager of the workspaceThe same, a workspace with an active plan, and a maker whose account has full access, not one still waiting for review
CreditsNever used. Estimates and usage show a balance of 25,000.Your workspace's credits, at your workspace's prices
VideosNothing 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, channelsOne 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.
UploadsNothing 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, rendersThe 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 renderYour workspace's own, as in the app
Generate laterA scheduled video waits in accepted until its timeA scheduled video holds its lower price and waits in queued until its time
ChecksEvery 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

ReachWhat it means
One workspaceYour personal workspace or one team. To work in two, make a key in each.
The workspace's videosA 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 limitEvery 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.

The Keys list in Settings, API: Publishing server, live, kin_live_Q7mR2xVbP followed by an ellipsis, all permissions, last used today; Staging tests, test, Read videos and Make and edit videos; Usage dashboard, live, Read usage and prices. Each row ends in Revoke.
Each key shows the start of its secret, so you can tell which one a server uses.
  1. Make the new key first

    Create a key with the same mode and permissions, and put its secret on your servers.

  2. 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.

  3. 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 401 invalid_api_key.

    The confirm that opens from Revoke: Revoke Publishing server?, the line Anything using this key stops working right away. This cannot be undone., then Cancel and Revoke key in red.
    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

StatusCodeWhyWhat to do
401invalid_api_keyNo 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.
402plan_requiredA live key, and the workspace has no active plan.Choose a plan.
403insufficient_scopeThe key lacks the permission this call needs. The message names it.Use a key with that permission.
403workspace_access_deniedThe key's maker is no longer an owner or manager of the workspace.Make a new key with someone who is.
403access_requiredA live key, and its maker's account is still waiting for review.Use a test key until the account has full access.
429rate_limit_exceededThe workspace sent 120 requests this minute in this mode.Wait the seconds in Retry-After.
A video's errorjob_access_revokedThe 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.

On this page

Cookie preferences

Choose what Kinema may use on this site. You can change this at any time from Cookie preferences at the bottom of every page.

Strictly necessary

Sign-in, security and remembering this choice.

Always on

Visit counting

Counts visits and page speed in aggregate, without cookies. No ads, and no tracking across other sites.

More in the Privacy Policy.