API reference
On this page
The API at a glance
https://app.kinema.cc/v1
One key, one workspace, one mode.
Videos
- Create, list and get
- Render, resume, cancel
- Approve and delete
- Download and renders
Uploads
- Create, then send the file
- Complete it
- List and delete
Channels, Styles, voices, avatars
- List what you can use
- Clone a voice, add an avatar
- Library files and copied Styles
Prices, usage, events
- Estimate a video first
- This month's usage
- Webhooks: signed events
Basics
Base URL
Every path below starts here. Requests and answers are JSON over HTTPS. A JSON request can be up to 512 KiB; send media as an upload instead.
Authentication
Send a key from Settings, then API, in your workspace as a bearer token. A key belongs to one workspace and one mode, and only sees that workspace's videos and uploads in that mode. Only the workspace's owner and managers can make keys and use them.

| Permission | In the app | Allows |
|---|---|---|
videos:read | Read videos | List and get videos, download them and list their renders |
videos:write | Make and edit videos | Create, render, resume, cancel, approve and delete videos, and delete renders |
assets:read | Read uploads | List uploads, voices, avatars, channels, Styles and the catalog, and read a copied Style |
assets:write | Upload files | Create, complete and delete uploads; clone voices, add avatars, add to the library, copy Styles, and make and change channels |
usage:read | Read usage and prices | Estimates and this month's usage |
Test keys start with kin_test_ and cost nothing: videos move through every status on their own and end with a sample file. Live keys start with kin_live_ and use your credits. More in Authentication.
Note: A live key needs a working workspace
A live key works only while its workspace has an active plan (else 402 plan_required) and full access (else 403 access_required), and while the person who made it is still an owner or a manager there (else 403 workspace_access_denied).
Idempotency
Every call below marked with an Idempotency-Key needs that header: 1 to 128 visible characters that name this one request. That is every call that creates, changes or deletes a video or a render, and every call that adds a voice, an avatar, a library file or a Style. Send the same request again with the same key and you get the same answer back, never a second video or a second voice. Without the header, the answer is 400 idempotency_key_required. See safe retries.
Warning: One key, one request
The same key with a different body is refused with 409 idempotency_conflict. Keys are kept, so never use one for two different requests: make a new one for each video, render or upload you add.
Paging
| List | Takes | Order |
|---|---|---|
| Videos, uploads | limit (1 to 100, default 20) and cursor | Videos newest first; uploads in no set order |
| Voices, avatars | search (up to 100 characters), and page (0 to 100) or cursor | Your own first, then the library |
| Channels, Styles | Nothing: one page | As in the app |
Each answer has data and next_cursor; pass next_cursor back as cursor for the next page. It is null on the last page. For voices and avatars the cursor is the next page's number, so cursor=2 and page=2 ask for the same page.
Rate limits
| Limit | Over it |
|---|---|
| 120 requests a minute in each mode, from all the workspace's keys together | 429 rate_limit_exceeded, with a Retry-After header in seconds |
20 API videos active (accepted, queued, generating or rendering) in each mode | 429 queue_full, with no Retry-After: wait for one to finish |
How many of those videos are made at the same time is set by the plan (how many at once). The catalog returns these limits, so your code does not have to hard-code them.
Errors
An error has a code to act on, a message for people, and the request's id. Every answer carries the id in the X-Request-Id header too; quote it when you ask for help.
This is what a create answers when the balance is short:
{
"error": {
"code": "insufficient_credits",
"message": "Insufficient credits for the initial estimate."
},
"request_id": "5d1e0c2b9f6a4f0e8a3b7c21d4e9f611"
}A 422 for a wrong field also lists the fields, each with its path and a message:
{
"error": {
"code": "invalid_request",
"message": "Check the request fields.",
"fields": [
{ "path": "body.voice.settings.speed", "message": "Input should be less than or equal to 1.2" }
]
},
"request_id": "0b7e51a6c3d94f2e9a18d4c07f2b6e35"
}| Status | Code | What to do |
|---|---|---|
| 400 | idempotency_key_required, invalid_request | Fix the request. Do not send it unchanged. |
| 401 | invalid_api_key | Check the key, its mode, and that it was not revoked. |
| 402 | insufficient_credits, plan_required | Add credits or a plan, then send it again. |
| 403 | insufficient_scope, workspace_access_denied, access_required, forbidden | Use a key with the permission, made by an owner or manager who has access; or leave out the option the message names. |
| 404 | not_found | Nothing with that id in this workspace and mode. |
| 409 | invalid_state, operation_pending, idempotency_conflict, not_complete, conflict, upload_in_use, upload_processing, submission_unconfirmed | Get the video or upload, then do what its status allows. |
| 413 | request_too_large, upload_too_large, storage_full | Send media as an upload, a smaller file, or free storage. |
| 422 | invalid_request, unsupported_media, size_mismatch | Fix the request or the file. Do not send it unchanged. |
| 429 | rate_limit_exceeded, queue_full | Wait for Retry-After, or for a video to finish. |
| 500 | internal_error | Retry with the same idempotency key. |
| 503 | unavailable, api_unavailable, output_unavailable, storage_unavailable, upload_unavailable, fixture_unavailable | Retry with the same idempotency key, waiting longer each time. |
What each code means, with retry code to copy, is on Errors and retries.
Videos
Create a video
POST/v1/videosNeeds videos:write and an Idempotency-Key
Starts a video from a script, an upload or an idea and answers at once with 202 and the video, status accepted. Send exactly one of script, upload_id and idea.
Name only what differs from the channel. Every field you leave out is the channel's preset, else the app's own default, the way Create video and AI Avatar videos make it in the app. So {"channel_id": 42, "idea": {"text": "..."}} is a whole request: the channel gives the maker, the voice, the Style, the footage, the music and the length. Without a channel, a video gets the standard maker, footage from the web without AI, music, sound effects and graphics on, captions off, the Style auto, 12 minutes for an idea, and finish render. The catalog lists these defaults.
Note: An AI Avatar video
Send "kind": "ai_avatar", a script or a voiceover (an audio upload), and a voice and an avatar, or an AI Avatar channel that keeps them. It is made as AI Avatar videos makes it in the app: a presenter on camera about a quarter of the time unless avatar.on_camera says half, with AI pictures and clips alone, music on, the modern look, no graphics and no maker. It refuses maker, footage, clips, played_clips, maker_notes, an idea and graphics true, each with 422.
Body
| Field | Type | Description |
|---|---|---|
channel_id | integer | The channel the video is made for, an id from List channels. Its presets fill every field you leave out: the kind of video, maker, voice, presenter, footage, look, Style, music, sound effects, graphics, captions and length. Omitted: no channel, and the app's defaults above. A channel this key cannot use is refused with 404. A member who may use only some channels must name one of them (403). |
kind | string | documentary, or ai_avatar for an AI Avatar video. Omitted: the channel's kind, else documentary. A kind the channel does not make is refused with 422. Both run 6 to 40 minutes. |
script | string | A finished narration script, up to 100,000 characters, that reads for at least 6 minutes at the voice's pace: in English about 5,850 spoken characters depending on the voice. A shorter one is refused with 422 and says how many spoken characters to add. Production notes in it, like [B-ROLL: ...] or [PAUSE], are followed, not read aloud, and do not count: see script_cues. Needs a voice: voice, or a channel that keeps one. |
script_cues | string | auto (default): production notes in the script are followed, not read aloud, and only the spoken words count toward the length and the price. off: every word is read aloud. |
upload_id | string | A ready audio or video upload. Its narration is the voice, so leave voice out. A video upload puts you on camera; an AI Avatar video takes an audio upload only. |
on_camera | integer | With a video upload only: about what percent of the finished video shows you. 15 keeps you to the opening, the main points and the close, 25 now and then, 50 about half, 75 mostly you. Omitted: the channel's, else 25. The price is the same for every value. Not with avatar. |
idea | object | Kinema writes the script from an idea, as Describe it does in the app, at no extra charge, and makes the video from it without stopping for you to read the script. Needs a voice: voice, or a channel that keeps one. Documentaries only. |
idea.text | string | The idea, at least 40 characters (each run of spaces counts as one) and three words. Needed. |
idea.length_minutes | number | How many minutes the video should run, within the length limits. Omitted: the channel's length, else 12. |
idea.script_type | string | The kind of script: documentary, listicle, news_recap, everything_we_know, explainer, story, mystery, comparison, biography, timeline, commentary, tutorial, iceberg, review or what_if. The catalog lists them with their names. |
idea.reference_links | array | Up to three links to videos whose type, structure and pace the script follows, never their words. A link that cannot be used is skipped and listed in reference_skips. |
idea.notes | string | Directions for the script, read with the idea. Together with the idea, up to 2,000 characters. The old name script_notes is still read. |
voice | object | Who narrates a script or an idea. Omitted: the channel's voice. Needed when there is no channel voice; refused with an upload, whose own sound narrates. |
voice.id, voice.owner_id | string | The voice_id from voices, and for a library voice its owner_id. |
voice.delivery | string | standard or expressive, only to change it for this video. Omitted: the channel's, else the voice's saved one, else standard. |
voice.settings | object | Only to change them for this video: stability 0 to 1 (0.5), similarity_boost 0 to 1 (0.75), style 0 to 1 (0), use_speaker_boost (true), speed 0.7 to 1.2 (1). Omitted: the settings saved for this voice in your workspace, else the recommended ones. |
avatar | object | A presenter on camera. Omitted: the channel's, when its presets put one on camera. An AI Avatar video always has one: this, or its channel's. Not with an uploaded video of yourself. A live key can use only avatars from its own workspace. |
avatar.id | string | The avatar_id from avatars. |
avatar.quality | string | low, standard or high. Omitted: the channel's, else standard. premium is still read, as standard. The channel's motion follows it: standard moves calm, medium or expressive, high calm or natural, and low has no motion setting; calm is the default, and a motion the quality does not have is calm. An AI Avatar video's price a minute, its presenter included, follows its quality and avatar.on_camera (prices.ai_avatar in the catalog). |
avatar.on_camera | string | How often the presenter is on camera: quarter (now and then) or half (often). Omitted: the channel's, else quarter. |
avatar.use_cast, avatar.use_product | boolean | Bring in the cast and the product saved with the avatar. True needs the avatar to have one (else 403). Omitted: the channel's. |
maker | string | fast for ready-made graphics, standard for custom graphics, or cinematic for custom graphics and edits. Omitted: the channel's, else standard. Each has its price a minute in the catalog's prices (14, 20 and 30 credits at the listed prices). Not for an AI Avatar video. |
maker_notes | string | Notes for a cinematic video from a script or an upload, one per line, up to 2,000 characters: the shots, the pace, the graphics, the music's mood. Refused with 403 on any other video. |
footage | object | Where the footage and pictures come from. Omitted: the channel's, else from the web without AI. Documentaries only: an AI Avatar video uses AI pictures and clips alone. |
footage.way | string | web: footage and pictures found anywhere online, edited like a normal YouTube video. safe, stock, Creative Commons and public domain only, is coming soon: until then it is refused with 422. The catalog's footage_ways lists the ways open now. |
footage.ai | boolean | Add AI pictures and clips made new for this video. Default false. |
look | string | An AI Avatar video only: how its AI pictures and clips look, vintage, archive, digicam or modern. Omitted: the channel's, else modern. Refused with 422 on a documentary. |
style | string | The Style, which sets how the graphics and captions look: an id from List Styles, or auto to let Kinema choose. Omitted: the channel's Style, else auto. A copied Style is used once it is ready (else 409); anything else is refused with 422. |
music | boolean | Background music. Omitted: the channel's, else true. |
sound_effects | boolean | Sound effects: whooshes, hits and ambience. Omitted: the channel's, else true. |
graphics | boolean | Motion graphics. Omitted: the channel's, else true. An AI Avatar video has none, and true is refused. |
captions | boolean | Captions. Omitted: the channel's, else false. |
caption_style | string | How the captions look, when captions is true: default (the captions of the video's Style), minimal, subtitle, karaoke, highlight or typewriter. Omitted: default. See Video makers and extras. |
clips | array | Your own clips, up to 20, each one a video in your library: media_id, a note on what it is (up to 300 characters), the slot it fills (the number in a cue such as [CLIP 2]; the clip's place in the list when left out; two clips cannot share one) and with_sound. A clip that plays with its sound can run up to 2 minutes. With a script or an idea a clip plays with its own sound, and under a video of yourself without it; with_sound (true) chooses only under a voiceover. Documentaries only. |
played_clips | boolean | Real clips found for the video play with their own sound. Omitted: off. For standard and cinematic only (else 403). |
source_credits | boolean | Show attribution on eligible pictures. Omitted: off. |
language | string | The language the video is narrated and captioned in: en English, es Spanish (Latin America), de German, pt Portuguese (Brazil), fr French, it Italian, ko Korean, id Indonesian, ar Arabic, tr Turkish, bn Bangla, th Thai, vi Vietnamese, hi Hindi, ru Russian, pl Polish or ta Tamil. A script in another language is translated at no extra charge. The catalog lists the languages. |
title | string | Up to 160 characters, shown in your workspace. |
finish | string | render (default): the video renders by itself once it is made, and that first render is in its price. editor: it stops at ready with its editor_url, to change and render in the editor or with Render a video. |
generate_later | string | The offer_id of the Generate later offer in an estimate of the same body: the video starts at the offer's time, at its lower price. An offer that has changed is refused with 409; ask for a new estimate. |
max_estimated_credits | integer | Refuse the video before it starts if its estimate is higher. It is not a cap on the final charge. |
Older names
For one release these older names are still read: video_kind as kind (persona is ai_avatar), output_mode as finish (video is render, draft is editor), theme, which picks a Style for you, and idea.script_notes as idea.notes. These are refused with 422 and a message that says what to send instead: sources (send footage), custom_visuals (the cinematic maker makes its own), avatar.model (send avatar.quality) and avatar.coverage (send avatar.on_camera).
An idea on a channel, its presets doing the rest. The answer comes at once; follow the video with Get a video or a webhook.
curl https://app.kinema.cc/v1/videos \
-H "Authorization: Bearer $KINEMA_API_KEY" \
-H "Idempotency-Key: apollo-11-way-home" \
-H "Content-Type: application/json" \
-d '{
"channel_id": 42,
"idea": { "text": "How the Apollo 11 crew got home, hour by hour" }
}'{
"clip_sounds": null,
"reference_skips": null,
"id": "3f9a1c07be",
"title": "",
"status": "accepted",
"mode": "live",
"kind": "documentary",
"channel_id": 42,
"maker": "standard",
"style": { "id": "history", "name": "Old masters" },
"finish": "render",
"made_in": "api",
"progress": { "percent": null, "stage": "Waiting in line", "time_left_minutes": null, "queue_position": null },
"scheduled_at": null,
"cancellable_until": null,
"duration_seconds": null,
"cancel_requested": false,
"created_at": "2026-11-26T14:02:11.408Z",
"updated_at": "2026-11-26T14:02:11.408Z",
"credits": { "estimated": 240, "reserved": 0, "charged": 0 },
"error": null,
"app_url": "https://app.kinema.cc/videos/3f9a1c07be",
"editor_url": null,
"script_cues": []
}More requests, a script opened in the editor and an AI Avatar video among them, are on Video workflows.
When a create is refused
Nothing starts and nothing is charged. These are the messages the API sends; a check on the body itself comes back in fields:
| Status | Message | What to do |
|---|---|---|
| 402 | Insufficient credits for the initial estimate. | Add credits, or ask the owner to, then send it again with the same key. |
| 422 | Add at least 1,234 spoken characters to your script. (with the real number) | Lengthen the script, or use a slower voice. |
| 422 | Video length must be between 6 and 40 minutes. | A live key only: shorten or lengthen the script, recording or length_minutes. |
| 422 | The script appears to contain repeated material. | Send the script once, without the same passage over and over. |
| 422 | The initial estimate exceeds max_estimated_credits. | Raise the ceiling, or make the video shorter or with a cheaper maker. |
| 422 | Choose a voice, or a channel that keeps one. | Send voice, or a channel_id whose channel has a voice. |
| 422 | This channel makes AI Avatar videos. (or documentaries) | Leave kind out, or pick a channel of that kind. |
| 422 | Choose a Style from GET /v1/styles, or auto. | Send an id from List Styles. |
| 422 | Stock and Creative Commons footage is coming soon. Choose web for now. | Send "way": "web" in footage, or leave it out. |
| 422 | An AI Avatar video takes no idea: it is made from a script or a voiceover, with AI pictures and clips alone. (or no maker, footage, clips, played_clips or maker_notes) | Leave the field out. |
| 422 | An AI Avatar video has no graphics. | Leave out graphics. |
| 422 | Choose an avatar for this AI Avatar video, or a channel that keeps one. | Send avatar, or an AI Avatar channel with a presenter. |
| 422 | look is for an AI Avatar video. | Send look only with "kind": "ai_avatar". |
| 422 | Choose an uploaded presenter video or an avatar, not both. | Send an audio upload with the avatar, or leave the avatar out. |
| 403 | Maker notes are available for Cinematic videos from scripts or recordings. | Send maker_notes only with "maker": "cinematic" and a script or an upload. |
| 403 | Real clips with their own sound are for Standard and Cinematic videos. | Leave out played_clips, or choose one of those makers. |
| 403 | This avatar has no cast to include. (or no product) | Add the cast or product to the avatar in the app, or leave the switch out. |
| 403 | Pick one of your channels for this video. | The key's maker may use only some channels: send one as channel_id. |
| 404 | Presenter not found in this workspace. | Use an avatar_id from List avatars with this key. |
| 404 | Channel not found in this workspace. | Use an id from List channels. |
| 404 | Clip not found in this workspace. | Add the file with Add to the library first, as a clip. |
| 409 | The matched Style is not ready. | Wait until the copied Style is ready. |
| 409 | The Generate later offer has changed. Check the price again. | Ask for a new estimate and send its offer_id. |
| 429 | This workspace already has 20 active API videos. | Wait for one to finish. |
List videos
GET/v1/videosNeeds videos:read
Every video of the workspace, made in the app or through the API, newest first, with the app's own access rights: a member who may use only some channels sees those channels' videos. made_in says where each one started. Takes limit (1 to 100, default 20) and cursor; answers with data, a list of videos, and next_cursor. In a list, progress holds only the stage, and cancellable_until is null: get the video for the rest. A test key lists its own sandbox videos. A deleted video leaves the list.
Get a video
GET/v1/videos/{video_id}Needs videos:read
Any video of the workspace, made in the app or through the API, by its id: its status, its progress in the app's words with the percent and the time left, its credits, its links, the production notes found in its script and, for an idea, the references that were skipped. Ask every 30 seconds or so, or use webhooks. A test video changes status automatically.
Render a video
POST/v1/videos/{video_id}/renderNeeds videos:write and an Idempotency-Key
Renders a video made through the API that is ready (one made with "finish": "editor"), or completed and changed in the editor since. The status moves to rendering at once, and the answer is 202 with the video. The first render of a video is included in its price; each later render costs the catalog's prices.rerender (25 credits at the listed prices), returned if that render fails. A video keeps up to 3 renders: delete one before you ask for another.
Refused with 409 invalid_state in any other status or once a cancel was asked for, and with operation_pending while another render or resume of it is still being sent on. A video made in the app is rendered in the app.
Resume a video
POST/v1/videos/{video_id}/resumeNeeds videos:write and an Idempotency-Key
Starts a failed video made through the API again from where it stopped, a paused one included. The status moves to queued at once. It costs nothing more while the video still holds its credits; one whose credits came back holds them again. Read its error first and fix the cause if it was on your side. Refused with 409 in any other status.
Cancel a video
POST/v1/videos/{video_id}/cancelNeeds videos:write and an Idempotency-Key
Stops a video made through the API that is accepted, scheduled, queued, generating, rendering or failed. cancel_requested turns true at once, and the status becomes cancelled when it has stopped. A video that never reached ready gets its held credits back; one scheduled with Generate later gets them all back before its time. A ready video has nothing running: delete it instead.
Warning: Cancel within 10 minutes of making
Once a live video has been in the making for more than 10 minutes, a cancel is refused with 409 invalid_state: "This video has been in the making for more than 10 minutes, so it can no longer be cancelled. You can delete it once it is ready." Its cancellable_until says when that is. A video waiting in line, scheduled or waiting for approval can be cancelled at any time.
Delete a video
DELETE/v1/videos/{video_id}Needs videos:write and an Idempotency-Key
Deletes the video for everyone in the workspace, as deleting it in the app does: a video still being made stops, and the credits it held for a video that never finished go back. With a live key it also takes a video made in the app, by its id. It answers {"ok": true}; the video then no longer shows in reads, and its usage stays in your history. The same 10-minute rule as a cancel applies: past 10 minutes of making it is refused with 409 invalid_state until the video is ready. Refused with 409 operation_pending while another call on the video is running: retry with the same key.
Warning: A finished video gives nothing back
Deleting a video that was made returns no credits, and cannot be undone.
Approve a team video
POST/v1/videos/{video_id}/approveNeeds videos:write and an Idempotency-Key
In a team workspace, starts a video an editor made in the app that is waiting for approval, by its id, and uses the workspace's credits as approving it in the app does. It answers {"ok": true}. A video that is not waiting is refused with 409. A team test key can try it on test_editor_video.
Download a video
GET/v1/videos/{video_id}/downloadNeeds videos:read
A url to the latest render, once the video is completed, its expires_at, an hour away, and the key's mode. A video made in the app can be downloaded the same way once it has a render. Fetch the file from that link without your key; when it expires, ask again for a new one. Before the video is completed the answer is 409 not_complete. With a test key it is always the same sample file, and the notice says so.
{
"url": "https://…",
"expires_at": "2026-11-22T15:40:02.118Z",
"mode": "live",
"notice": "Request another download URL when this link expires."
}List renders
GET/v1/videos/{video_id}/rendersNeeds videos:read
The renders the video keeps, up to 3, each with its id, when it was created (Unix seconds) and its size in bytes. With a live key it also lists a video made in the app.
{
"data": [
{ "id": "current", "created": 1795001019, "size": 40793 }
]
}Delete a render
DELETE/v1/videos/{video_id}/renders/{render_id}Needs videos:write and an Idempotency-Key
Deletes one render and its file, with the same rights as in the app; the video and its edits stay, so you can render again. It answers {"ok": true}. If storage cannot confirm the delete, the answer is 503: retry with the same key.
The video
What every video endpoint answers with, for a video made in the app or through the API.
| Field | Type | Description |
|---|---|---|
id | string | The video's id, the same as in the app. |
title | string | The title you sent, or the one the video has in the app. |
status | string | accepted, scheduled (a Generate later video waiting for its time), queued, generating, ready, rendering, completed, failed or cancelled. A paused video is failed, with the error code paused. What each one means is on Video workflows. |
mode | string | test or live, from the key. |
kind | string or null | documentary or ai_avatar. |
channel_id | integer or null | The channel the video is made for. |
maker | string or null | fast, standard or cinematic; null for an AI Avatar video, which has no maker. |
style | object or null | The Style, with its id and name. auto, Let Kinema choose, until the video picks one. |
finish | string | render: it renders by itself when it is made. editor: it waits in the editor to be rendered. A video made in the app reads editor. |
made_in | string | api or app: where the video was started. Render, resume and cancel are for api videos. |
progress | object | Where the video is: stage, what it is doing in the words the app shows (Waiting in line, Scheduled, Waiting for approval, Making, Being fixed, Script ready, Ready, Rendering, Exported, Paused, Stopped, Render failed or Cancelled); percent, how much is made from 0 to 100; time_left_minutes, about how many minutes until it is ready, when known; and queue_position, its place in line while it waits (1 is next). In a list only stage is filled. |
scheduled_at | string or null | When a Generate later video starts. |
cancellable_until | string or null | Until when a cancel or a delete is taken: 10 minutes after making starts. null when no clock runs (waiting in line, scheduled, waiting for approval, stopped, or made) and in a list. |
duration_seconds | number or null | How long the video is, once known. |
cancel_requested | boolean | True once you asked to cancel. |
credits | object | estimated: the estimate when it was created. reserved: the credits held while it is being made, else 0. charged: what it has cost so far, the hold included, so the three do not add up. Always 0 with a test key. See credits on a video. |
error | object or null | code and message when the video failed, or when a cancel could not be confirmed: for example paused (everything made so far is saved: resume it), render_failed (a video made in the app whose render did not finish) or generation_failed. |
app_url | string or null | The video's page in Kinema, for the people of your workspace. null for a test key's video. |
editor_url | string or null | Opens the video in the editor, for the people of your workspace, once its timeline is ready: set for live videos that are ready, rendering or completed. |
script_cues | array or null | The production notes found in the script, each with id, kind, text, whether it is spoken, and the word it follows; seconds for a pause and clip for a clip. Returned when the video is created or retrieved, empty for an upload; null in a list. |
clip_sounds | array or null | When retrieving a video, each separate clip sound has a shot_id linking it to its picture, start and end in timeline seconds, level from 0 to 1, and muted. A muted clip keeps its level. |
reference_skips | array or null | For a video made from an idea with references: each link that was skipped, by its link_index (counted from 1) and the reason. Returned when the video is retrieved. |
created_at, updated_at | string | Times in UTC. |
Uploads
Bring your own voiceover or a video of yourself talking, or a photo, music, a sound effect, an overlay or a clip: create the upload, send the file to the address you get back, then complete it. A completed upload is then used by a video, or added as a voice, an avatar or a library file. The steps, with code, are on Uploads.
Create
Its name, type and size.
- pending; a live key gets an address for an hour
Send
PUT the file to upload_url.
Complete
Kinema checks the file.
- ready, with kind and duration
Use
In a video, a voice, an avatar or the library.
Create an upload
POST/v1/uploadsNeeds assets:write
Send filename (up to 200 characters), the content_type that matches its extension, and size in bytes, up to 4 GB. It answers 201 with the upload, status pending, and an upload_url: PUT the file there before expires_at, an hour away. With a test key there is no address and nothing to send. A file that would take the workspace past its storage is refused with 413 storage_full; an extension not below, or a type that does not match it, with 422 unsupported_media.
| Extension | content_type | Kind |
|---|---|---|
.jpg, .jpeg | image/jpeg | image |
.png | image/png | image |
.webp | image/webp | image |
.gif | image/gif | image |
.mp4 | video/mp4 | video |
.webm | video/webm | video |
.mov | video/quicktime | video |
.m4v | video/x-m4v | video |
.mp3 | audio/mpeg | audio |
.wav | audio/wav | audio |
.m4a | audio/mp4 | audio |
.aac | audio/aac | audio |
curl https://app.kinema.cc/v1/uploads \
-H "Authorization: Bearer $KINEMA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "filename": "narration.mp3", "content_type": "audio/mpeg", "size": 9437184 }'
# then send the file to the upload_url from the answer
curl -X PUT --upload-file narration.mp3 -H "Content-Type: audio/mpeg" "$UPLOAD_URL"{
"id": "3f4226e7c59b487499c4992f9ed2cf9b",
"filename": "narration.mp3",
"content_type": "audio/mpeg",
"kind": "audio",
"size": 9437184,
"status": "pending",
"duration_seconds": 0.0,
"upload_url": "https://…",
"expires_at": "2026-11-22T15:02:11.408Z"
}Complete an upload
POST/v1/uploads/{upload_id}/completeNeeds assets:write
Checks the file you sent. Its status becomes ready, with kind and duration_seconds, and you can use it. A file of another size than you declared is refused with 422 size_mismatch; while another request is checking it, the answer is 409 upload_processing. Completing a ready upload again answers the same.
List uploads
GET/v1/uploadsNeeds assets:read
Your uploads in this mode, with limit and cursor. They are not in date order.
Delete an upload
DELETE/v1/uploads/{upload_id}Needs assets:write
Removes the upload and its file, and answers 204. Refused with 409 upload_in_use while any API video in this mode is active, or while the upload is being completed. A voice, avatar or library file made from it stays.
Channels, Styles, voices and avatars
List channels
GET/v1/channelsNeeds assets:read
Your channels, as the app lists them (a member who may use only some channels sees those), each with what a video on it gets for every field a request leaves out. Send a channel's id as channel_id and its presets do the rest. One page: next_cursor is always null. A test key gets two sandbox channels with the sandbox voice: 1, a documentary channel, and 2, an AI Avatar channel with the sandbox presenter.
id,name,kind(documentaryorai_avatar),is_default,picture_urlandlanguage.summary: what a video on it gets, in words, as an assistant can read it back.style: the channel's Style, with itsidandname;nulllets Kinema choose.presets:usual_start(idea,script,voiceoverorvideo, when it keeps one),maker,voice(id,name,delivery),avatar(id,name,quality,on_camera;nullwhen no presenter is on camera),footage(wayandai;stockfor an older preset with stock footage alone;nullfor an AI Avatar channel),look,length_minutes,on_camera,music,sound_effects,graphics,captions, andclips(usually,hint).- Beside
data,channels_usedandchannels_allowed: how many channels the workspace has and how many its plan allows, as the app counts them.channels_allowedisnullwhen there is no limit. A test key gets its channel count andnull. can_add_channel: whether a new channel can be saved now (the plan has room, and the key's person may add one).channel_required: the key's person may use only some channels, so every video needs one of them. A test key getstrueandfalse.
{
"id": 42,
"name": "Space history",
"kind": "documentary",
"summary": "A documentary; Standard maker; voice Harbor narrator; Style Old masters; footage Anywhere online; usually starts from an idea; an idea makes a 12 minute video.",
"is_default": true,
"picture_url": "https://…",
"language": "en",
"style": { "id": "history", "name": "Old masters" },
"presets": {
"usual_start": "idea",
"maker": "standard",
"voice": { "id": "kinema:41", "name": "Harbor narrator", "delivery": "standard" },
"avatar": null,
"footage": { "way": "web", "ai": false },
"look": null,
"length_minutes": 12,
"on_camera": 25,
"music": true,
"sound_effects": true,
"graphics": true,
"captions": false,
"clips": { "usually": false, "hint": "" }
}
}Get a channel
GET/v1/channels/{channel_id}Needs assets:read
One channel, by its id, with its presets. A channel this key cannot see is refused with 404 not_found.
Create a channel
POST/v1/channelsNeeds assets:write and an Idempotency-Key
Saves a channel as the app's new-channel steps save it, and answers 201 with the channel, as Get a channel reads it. It costs no credits. The body takes the channel's own names: name (required, up to 80 characters), kind (documentary, the default, or ai_avatar), style (an id from List Styles, or auto) and presets, with any of usual_start, maker, voice (id and name from List voices, owner_id, delivery), avatar (id, name, quality, on_camera), footage (way, ai), look, length_minutes, on_camera, music, sound_effects, graphics, captions and clips (usually, hint). What you leave out is Kinema's new-channel choice, the defaults of the catalog. A channel may be saved without a voice or an avatar.
- An AI Avatar channel takes what an AI Avatar video takes: no
style,maker,footageorclips, nographics, and its videos start from a script or a voiceover.lookis for an AI Avatar channel only. Each is refused with422and says why. - A voice, an avatar or a copied Style is checked as a video request checks it (
404when it is not this workspace's), andlength_minutesmust be a length an idea takes (422). - When the plan's channels are all used, the answer is
422with the plan's own words, for example "The Starter plan allows up to 5 channels." A member who may use only some channels cannot add one (403). - The same
Idempotency-Keywith the same body answers the first answer again and saves nothing more; with another body it is refused with409idempotency_conflict. - A test key saves nothing: it answers a stand-in channel, which then shows in its own channel list and can make its test videos.
{
"name": "Space history",
"kind": "documentary",
"style": "history",
"presets": {
"voice": { "id": "kinema:41", "name": "Harbor narrator" },
"maker": "standard",
"length_minutes": 12,
"footage": { "way": "web", "ai": false }
}
}Change a channel
PATCH/v1/channels/{channel_id}Needs assets:write and an Idempotency-Key
Changes what you send and nothing else: name, style, or any field of presets, with the same names, values and checks as Create a channel. A voice, avatar, footage or clips you send replaces the one the channel keeps. Its kind cannot change (422): make a new channel for the other kind. Answers the channel. A channel this key cannot see is refused with 404 not_found. A test key's change is answered and not kept.
List channels (old path)
GET/v1/brand-profilesNeeds assets:read. Deprecated
The old path of List channels, with the same answer, kept for one release. Use GET /v1/channels.
List Styles
GET/v1/stylesNeeds assets:read
The Styles a video can be made with, as the app's Style library lists them: Let Kinema choose (auto), the premade Styles, the six classic looks, then the Styles your workspace copied. Each has its id, to send as style, a name, a kind (auto, premade, classic or copied), a status (queued, matching, ready or failed) and usable, true when a video can be made with it now. One page. A test key's copied Styles are its stand-ins. Shortened:
{
"data": [
{ "id": "auto", "name": "Let Kinema choose", "kind": "auto", "status": "ready", "usable": true },
{ "id": "gaming-neon", "name": "Neon", "kind": "premade", "status": "ready", "usable": true },
{ "id": "legacy-obsidian", "name": "Obsidian", "kind": "classic", "status": "ready", "usable": true },
{ "id": "c_7495218290a1", "name": "Harbor nights", "kind": "copied", "status": "matching", "usable": false }
],
"next_cursor": null
}List voices
GET/v1/voicesNeeds assets:read
In the order the app's voice picker shows them: your saved voices and cloned voices, then the library's most used. Takes search (up to 100 characters: a name, or words for the sound), language (a code a video's language takes, for library voices in that language), and page or cursor (see paging). Your saved and cloned voices come on the first page, those whose name has the search in it when you search. Each voice has voice_id and name; what it sounds like where Kinema has it (gender, age, accent, use_case, description, and a library voice's owner_id and language; null otherwise); and sample_url, a link on Kinema's own address that plays its sample with no sign-in ("" when it has none; a cloned voice's link works for a few minutes). Send voice_id as voice.id, with owner_id for a library voice. A test key gets test_voice and the stand-ins it cloned.
{
"data": [
{ "voice_id": "kinema:41", "name": "Harbor narrator", "owner_id": null, "language": null, "gender": null, "age": null,
"accent": null, "use_case": null, "description": null, "sample_url": "https://app.kinema.cc/api/catalog-media/…" },
{ "voice_id": "vN3x8QeLr2TfP0aYk7Hd", "name": "Morgan", "owner_id": "a1b2c3d4e5", "language": "en",
"gender": "male", "age": "middle_aged", "accent": "american", "use_case": "narrative_story",
"description": "Warm and steady.", "sample_url": "https://app.kinema.cc/api/voices/sample/…" }
],
"next_cursor": "1"
}Clone a voice
POST/v1/voicesNeeds assets:write and an Idempotency-Key
Clones a voice from a completed audio or video upload of up to 25 MB: upload_id, a name, and consent, which must be the JSON value true. Before you send it, show the person this sentence and have them agree to it: "This is my voice, or I have the speaker's permission to clone it." Kinema keeps a record of the confirmation, as it does in the app. Answers 201 with the new voice_id, ready to use as voice.id. A test key makes a stand-in that appears in its own voice list.
{
"upload_id": "3f4226e7c59b487499c4992f9ed2cf9b",
"name": "Harbor narrator",
"consent": true
}{
"voice_id": "test_de6f37b31c5048468294ce377f584a3f",
"name": "Harbor narrator"
}List avatars
GET/v1/avatarsNeeds assets:read
The avatars your workspace can put on camera, with avatar_id and name. Takes search (up to 100 characters), and page or cursor. Send avatar_id as avatar.id. A test key gets test_avatar and the stand-ins it added.
Add an avatar
POST/v1/avatarsNeeds assets:write and an Idempotency-Key
Makes an avatar from a completed photo upload (JPG or PNG, up to 20 MB): upload_id, a name, and consent as the JSON value true, once the person has agreed to: "This is me, or this person has agreed to have their face and likeness used in AI-generated video." Answers 201 with the new avatar_id. If a retry finds the first request's outcome unknown, it answers 409 submission_unconfirmed with a reference: send that reference to support before you try again, so the avatar is not made twice.
{
"upload_id": "1e8efbd1b4e149bdadb1af6427aa1647",
"name": "Guide",
"consent": true
}{
"avatar_id": "test_07994f82fa45468ca89c39ec2e89d220",
"name": "Guide"
}Get the catalog
GET/v1/catalogNeeds assets:read
The options a request can use, the prices and the limits, so your code does not have to hard-code them: the video makers, kinds of video, finishes, the footage ways open now, languages, avatar qualities and how often an avatar is on camera, how much of a video of yourself can show you, the looks and script types with their names, the caption styles, the defaults a request without a channel gets (with those of an AI Avatar video under ai_avatar), and where the voices, avatars, channels and Styles are listed.
prices are your workspace's: per_minute for each maker and for an AI Avatar video (its standard quality presenter on camera a quarter of the time, included), before add-ons; ai_avatar, an AI Avatar video's minute for each quality, with its presenter on camera a quarter or half of the time; rerender, each render after a video's first; and style_copy, a Style copied from a YouTube video. An estimate gives the exact price of one video. limits holds the requests a minute, active API videos, the shortest and longest video in minutes for your workspace, the shortest idea in characters, the minutes a script must read for, and the largest upload in bytes.
{
"makers": ["fast", "standard", "cinematic"],
"kinds": ["documentary", "ai_avatar"],
"finishes": ["render", "editor"],
"footage_ways": ["web"],
"languages": ["en", "es", "de", "pt", "fr", "it", "ko", "id", "ar", "tr", "bn", "th", "vi", "hi", "ru", "pl", "ta"],
"avatar_qualities": ["low", "standard", "high"],
"avatar_on_camera": ["quarter", "half"],
"on_camera": [15, 25, 50, 75],
"looks": [
{ "id": "vintage", "name": "Vintage" }, { "id": "archive", "name": "Archive" },
{ "id": "digicam", "name": "Digicam" }, { "id": "modern", "name": "Modern" }
],
"script_types": [
{ "id": "documentary", "name": "Documentary" }, { "id": "listicle", "name": "Countdown list" },
{ "id": "news_recap", "name": "News recap" }, { "id": "everything_we_know", "name": "Everything we know" },
{ "id": "explainer", "name": "Explainer" }, { "id": "story", "name": "Story" },
{ "id": "mystery", "name": "Mystery" }, { "id": "comparison", "name": "Comparison" },
{ "id": "biography", "name": "Biography" }, { "id": "timeline", "name": "History timeline" },
{ "id": "commentary", "name": "Opinion essay" }, { "id": "tutorial", "name": "Tips and tutorial" },
{ "id": "iceberg", "name": "Iceberg" }, { "id": "review", "name": "Review" }, { "id": "what_if", "name": "What if" }
],
"caption_styles": ["default", "minimal", "subtitle", "karaoke", "highlight", "typewriter"],
"defaults": {
"kind": "documentary", "maker": "standard", "style": "auto", "finish": "render",
"footage": { "way": "web", "ai": false },
"music": true, "sound_effects": true, "graphics": true, "captions": false,
"length_minutes": 12, "on_camera": 25,
"avatar": { "quality": "standard", "on_camera": "quarter" },
"ai_avatar": {
"avatar": { "quality": "standard", "on_camera": "quarter" },
"look": "modern", "music": true, "captions": false, "graphics": false
}
},
"prices": {
"per_minute": { "fast": 14, "standard": 20, "cinematic": 30, "ai_avatar": 9 },
"rerender": 25,
"style_copy": 200,
"ai_avatar": {
"low": { "quarter": 7, "half": 8 },
"standard": { "quarter": 9, "half": 12 },
"high": { "quarter": 10, "half": 14 }
}
},
"limits": {
"requests_per_minute": 120,
"active_api_videos": 20,
"minimum_minutes": 6,
"maximum_minutes": 40,
"describe_min_chars": 40,
"script_min_minutes": 6,
"maximum_upload_bytes": 4294967296
},
"resources": { "voices": "/v1/voices", "avatars": "/v1/avatars", "channels": "/v1/channels", "styles": "/v1/styles" }
}Add to the library
POST/v1/libraryNeeds assets:write and an Idempotency-Key
Adds a completed upload to the workspace's library, where the editor finds it, as a kind. It answers 201 with the library id, its kind (audio, video or image), filename and size. It counts toward your storage; the upload itself stays usable. A file of the wrong type is refused with 422, one too large with 413.
| kind | For | Takes |
|---|---|---|
music, sound_effect | The editor's Audio tool | MP3, WAV, M4A or AAC, up to 100 MB |
overlay | A picture or a clip laid over the video | JPG, PNG, WebP, MP4, WebM or MOV |
clip | clips in a create request | A video |
{
"kind": "clip",
"upload_id": "311bac1adb7141fbb12464caab2674c7"
}{
"id": 75970697061708,
"kind": "video",
"filename": "harbor.mp4",
"size": 1234
}Copy a Style
POST/v1/styles/matchNeeds assets:write and an Idempotency-Key
Makes a Style of your own from a YouTube video link (url, up to 500 characters), with optional notes on what to change (up to 600 characters) and a channel_id to make it for. Answers 202 with the Style's id, its status (queued, matching, ready or failed), eta_s, about how many seconds are left, and credits_charged. A channel link or another unsupported link returns 422. Use the id as style once it is ready. A test key's Style is ready at once and costs nothing.
Warning: A Style copy is paid when it starts
A live copy costs the catalog's prices.style_copy (200 credits at the listed prices), taken when the copy starts, as in the app; a short balance is refused with 402 insufficient_credits. There is no refund for a result you do not like. A copy Kinema cannot make gives its credits back by itself.
{
"url": "https://youtu.be/abcdefghijk",
"notes": "Use quiet colors."
}{
"id": "c_7495218290a1",
"status": "queued",
"eta_s": 180,
"credits_charged": 200
}Get a copied Style
GET/v1/styles/{style_id}Needs assets:read
The copied Style's id, status and eta_s. Ask every minute or so until it is ready or failed.
Estimates and usage
Estimate a video
POST/v1/estimatesNeeds usage:read
Takes the same body as Create a video, fills it from the channel the same way, runs the same checks, and starts nothing. It gives the app's own quote: an estimate is where the price starts, and the final charge follows what the video measures. The answer has the estimated_minutes and estimated_credits; the lines the price is made of, each with its key, label and credits, as the app shows them; eta_minutes, about how long the video takes to make, or null when that cannot be told yet; notes, what to know about this price, each with a key and a message (for example ai_video_off, or needs_approval when a manager approves the video first); your balance (with a test key always 25,000); the mode; the minimum_minutes and maximum_minutes for your workspace; and a notice. For a script it also has spoken_characters, the length that is priced, and the script_cues it found.
It always carries generate_later, the offer to make the video at a set later time for less. available is false, with null in place of the later figures, when nothing is offered. When it is true: the discount_percent, when it would start (scheduled_at, and wait_label in words), the video's credits_now and credits_later, the total_now and total_later, and the offer_id to send as generate_later when you create it. See Generate later.
{
"generate_later": {
"available": true,
"discount_percent": 10,
"scheduled_at": "2026-11-23T14:00:00Z",
"wait_label": "in about 2 hours",
"credits_now": 128,
"credits_later": 115,
"offer_id": "<offer_id from the estimate>",
"total_now": 128,
"total_later": 115
},
"estimated_minutes": 6.4,
"estimated_credits": 128,
"lines": [
{ "key": "base", "label": "Video", "credits": 128 }
],
"eta_minutes": null,
"notes": [],
"balance": 2810,
"mode": "live",
"minimum_minutes": 6,
"maximum_minutes": 40,
"notice": "An initial estimate, not a final-charge cap. Final credits follow measured usage. Test keys never spend credits.",
"spoken_characters": 6240,
"script_cues": []
}Get usage
GET/v1/usageNeeds usage:read
This month, from the first of the month in UTC, for the key's mode: the requests sent, how many were errors, the videos created through the API, the credits_charged for them, the balance and period_start.
{
"mode": "live",
"balance": 2810,
"period_start": "2026-11-01T00:00:00.000Z",
"requests": 412,
"errors": 9,
"videos": 14,
"credits_charged": 1876
}Webhooks
Add an endpoint in Settings, then API: an HTTPS address, the events it listens for, and test or live. A workspace can have 10. The endpoint's signing secret starts with whsec_ and is shown once. Send test sends a sample event, and Deliveries shows the latest attempts, with a way to send a failed one again. Events are sent for videos made through the API. The whole story is on Webhooks.
| Event | Sent when |
|---|---|
video.ready | The video is made. One made with "finish": "editor" waits to be edited and rendered; any other renders by itself next. |
video.completed | The video is rendered and can be downloaded. |
video.failed | The video stopped. You can resume it. |
video.cancelled | The video stopped because you cancelled it. |
Each event is a POST with ids and status only, never a script or a download link. Get the video for the rest.
{
"id": "evt_3f9a1c07be_7_completed",
"type": "video.completed",
"api_version": "v1",
"mode": "live",
"created_at": "2026-11-22T14:31:40Z",
"data": {
"id": "3f9a1c07be",
"status": "completed",
"credits_charged": 128,
"updated_at": "2026-11-22T14:31:39.871Z"
}
}Check the signature
Every event has a Kinema-Signature header, t=<unix seconds>,v1=<hex>, and a Kinema-Event-Id. Sign t, a full stop and the raw body with your secret using HMAC SHA-256, compare it with v1 in constant time, and turn away events whose time is more than five minutes old.
import crypto from "node:crypto";
// rawBody: the request body exactly as received, before any JSON parsing
export function verify(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const expected = crypto.createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
const a = Buffer.from(expected), b = Buffer.from(parts.v1 || "");
return fresh && a.length === b.length && crypto.timingSafeEqual(a, b);
}import hashlib
import hmac
import time
# raw_body: the request body exactly as received, as bytes
def verify(raw_body: bytes, header: str, secret: str) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
signed = parts["t"].encode() + b"." + raw_body
expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
fresh = abs(time.time() - int(parts["t"])) < 300
return fresh and hmac.compare_digest(expected, parts.get("v1", ""))Delivery
- Answer with any
2xxwithin 10 seconds. Do the work after you answer. - An event can arrive more than once. Keep the
Kinema-Event-Idof each one you handled and skip repeats. - A failed delivery is tried again for up to 3 days. Open Deliveries in Settings to see its result or send a failed event again.
Need a hand?
Ask on Discord, or write to hello@kinema.cc.