MCP
The same API as tools for Claude, ChatGPT, Cursor, Codex and other agents: the same models, prices and orders, with previews to look at and progress while they wait.
Connect
The server is at https://mcp.tikiapi.com/mcp (Streamable HTTP). Send your key as Authorization: Bearer tk_…; a test key makes free sample results. The setup for each client and the ready-made scenarios are on the MCP page.
Tools
| Tool | What it does |
|---|---|
list_models | Models with prices and limits |
estimate_cost | The price of an order before it is placed |
list_scenarios | The ready-made scenarios and the fields each one asks for |
get_scenario | A scenario's step-by-step plan with your fields filled in |
generate | Makes an image, a video, a song or a sound effect and returns the links with a preview |
get_generation | The status and result of an order |
wait_for_generations | Up to 12 orders, one wait: the finished ones and the rest |
list_generations | Past orders with their links |
upload_media | Your own picture, clip or sound for an order: base64, a signed PUT link, or a public link |
create_character | Saves a person (a face close-up and a full body) to reuse by id |
list_characters | Your saved characters |
speak | A voice-over from your lines, with a voice direction |
transcribe | Speech to text, with an id that captions take |
edit_video | Reframes a clip, or assembles clips, a sound track and burned subtitles at -14 LUFS |
get_account | Your balance and where to top up |
report_problem | Tells our team about a stuck order or a charge that looks wrong |
Each tool lists its own fields. The order fields are the REST ones under MCP names: image_urls, video_urls, audio_urls (see Generations).
Your own files
upload_media takes a picture (PNG, JPEG, WebP up to 20 MB), a clip (MP4, MOV up to 50 MB) or a sound (MP3, WAV up to 15 MB) three ways. Each gives an id and a url; either one goes into image_urls, video_urls, audio_urls, create_character and edit_video. Files are kept 48 hours, and an id works only for the account that made it.
- prepare — for big files, and whenever the agent has a shell: the answer is a signed link to
PUTthe file to, with a readycurlcommand. The file never passes through the chat, so no tokens go on base64. - url — a public https link: we fetch the file ourselves. Private and local addresses are refused.
- data — the file as base64 inside the call, up to 20 MB. Fine for small pictures.
{ "mode": "prepare", "bytes": 18734212, "filename": "product.mp4" }{
"id": "put-9b1c4e0f2a7d6b3e8c5f1a20.mp4",
"object": "upload",
"status": "awaiting_file",
"kind": "video",
"content_type": "video/mp4",
"bytes": 18734212,
"url": "https://…/inputs/…/put-9b1c….mp4?…",
"upload": { "method": "PUT", "url": "https://…?X-Amz-Signature=…", "headers": { "content-type": "video/mp4" }, "expires_at": "…" },
"curl": "curl -sS -w \"HTTP %{http_code}\\n\" -X PUT -H \"content-type: video/mp4\" -T \"product.mp4\" \"https://…\""
}- The link takes exactly the type and the number of bytes it was made for, within 15 minutes.
HTTP 200means the file is stored. On Windows PowerShell, callcurl.exe. - We read what the file really is when an order first uses it: a file that isn't what it was sent as is refused there with
invalid_parameter, and nothing is charged. - Too big for its kind:
payload_too_large. Uploads count towards the limit of 60 files a minute per key.
Results and previews
generate and get_generation answer with the order as JSON, a link to every original (resource_link) and a small preview the assistant can look at: a picture at up to 1024 px, a clip as one sheet of four of its frames (the first, two from the middle and the last, so a white flash or grey blacks at the start show). The originals never go into the answer: a 4 MB picture would not fit what clients take. The preview's address is each output's preview_url, in REST too.
edit_video and get_edit show the finished cut the same way: a link to the video and one sheet of its frames, four for a short cut and nine for one of 8 seconds or more, so the assistant can check the cut before sending it on. get_edit takes wait_seconds (up to 50) to hold the call until a running edit is done.
list_models lists what these tools can make: video, image and audio models, each without its empty fields. Text (chat) models run over REST (POST /v1/chat/completions) and are listed only with kind: "text".
Captions by id
transcribe answers with the text, the timed segments and an id. Give that id to edit_video as captions: { "transcription_id": "…" } and the words are burned in with their timings: nobody copies them by hand. The transcript is kept 48 hours, for your account only. words: true also returns every word's start and end in the answer. POST /v1/edits takes the same transcription_id.
Several orders at once
generate with "wait": false places the order and answers at once with its id. Place several, then collect them with one wait_for_generations: it waits until all are done or the time is up, and returns the finished ones with their previews, the ones still running and poll_after_seconds. Videos are best made one at a time, each looked at before the next.
| Field | Type | Description |
|---|---|---|
ids | string[] | Up to 12 order ids from generate (or list_generations). |
timeout_seconds | integer | How long to wait at most, 0–50 (default 50). 0 just looks. |
{
"object": "generation_wait",
"finished": [{ "id": "…", "status": "succeeded", "outputs": [{ "url": "…", "preview_url": "…" }] }],
"running": [{ "id": "…", "status": "running", "eta_seconds": 40, "poll_after_seconds": 40 }],
"not_found": [],
"poll_after_seconds": 40,
"message": "1 of 2 finished. The rest are still running: call wait_for_generations again with their ids in about 40 seconds; don't order them again."
}Progress
While generate, edit_video and speak wait, a client that sends a progressToken gets notifications/progress every few seconds and on each change of status: what is happening and when it is likely ready (from this model's recent orders). progress counts the seconds so far; total adds the likely time left. wait_for_generations reports how many of its orders are done.
Your own skills
Bring any skill (a folder with a SKILL.md, from you or from GitHub) into your account, and it becomes your own scenario in every client connected with that account, even the ones that can't install skills. Import it on the Skills page or over REST. Up to 20 skills an account, 200 KB of text each; a file or ZIP up to 512 KB.
- Names. A skill named
brand-voiceis the scenariomy-brand-voice. None of ours starts withmy-, so the two never clash. - MCP.
list_scenarioslists it after ours with"yours": true;get_scenariowithmy-brand-voicegives itsSKILL.mdand the list of its files, andmy-brand-voice/references/tone.mdgives one file. The prompts menu lists it too. Before sign-in, and to any other account, only our scenarios show. - What is kept. Text files only (Markdown, text, JSON, YAML, scripts). HTML, hidden characters and pictures are left out; a ZIP with a path outside its folder is refused. Scripts are kept as text: nothing from a skill runs on our side.
- Who it speaks for. The assistant gets the text inside a short header: these are your own imported instructions. A skill can't change what our tools do or cost, or what needs your yes.
| Endpoint | What it does |
|---|---|
GET /v1/skills | Your skills, without their text. |
GET /v1/skills/{id} | One skill with skill_md and every file's text. {id} may also be its name or my-name. |
POST /v1/skills | Imports one: github_url, or skill_md (with optional files), or zip_base64. confirm_rights must be true. |
PATCH /v1/skills/{id} | Renames it: { "name": "brand-voice" }. MCP serves the new name at once. |
POST /v1/skills/{id}/sync | Reads a GitHub skill again from where it came from; its name stays. |
DELETE /v1/skills/{id} | Deletes it. Assistants stop seeing it at once. |
curl https://api.tikiapi.com/v1/skills \
-H "Authorization: Bearer $TIKIAPI_KEY" \
-H "content-type: application/json" \
-d '{ "github_url": "https://github.com/owner/repo/tree/main/skills/brand-voice", "confirm_rights": true }'{
"id": "…",
"object": "skill",
"name": "brand-voice",
"scenario": "my-brand-voice",
"description": "Writes copy in our brand's voice. Use for any ad line or caption.",
"source": "github",
"source_url": "https://github.com/owner/repo/tree/main/skills/brand-voice",
"license": "MIT",
"files": [{ "path": "references/tone.md", "bytes": 1840, "text": "…" }],
"skill_md": "# Brand voice …",
"skipped": ["assets/logo.png"],
"notes": []
}confirm_rights: true says you have the right to use the skill: you wrote it, or its licence allows it. Errors: invalid_skill (no SKILL.md, not text, over a cap, not a public GitHub address), skill_name_taken, too_many_skills, skill_not_found.
Retries without paying twice
An agent that calls generate, edit_video, speak or transcribe again after a timeout gets the same order or call back: the same request within 10 minutes is one, and is charged once. The answer then carries "repeated": true, so an earlier result is never taken for a new one. Send "run_again": true to make another one on purpose. An order that is still running is checked with get_generation or wait_for_generations, never placed again.
speak and transcribe hold a call for about 50 seconds. A long one that isn't done by then answers "status": "running": call it again with the same arguments and you get the same call's result, not a second charge.
Before sign-in
The handshake, the lists, list_models, estimate_cost and the scenarios need no key. A request without a key may be up to 100 KB; uploads need an account. Browser-based test tools on your own machine (MCP Inspector on localhost) may call the server directly.
