kayetana
API

One API for every task.

Everything you try in the Playground is also available to your own apps. The REST API runs on your server, protected by API keys with their own monthly limits.

kayetana.local
API keys with name, creator, status, requests over the last 7 days and tokens this month
Endpoints

What the API offers under /v2.

EndpointTask
chatChat, including documents and sources, streaming with server-sent events
embed, rerankEmbed text and sort it by relevance
classifyAssign labels to text
tokenize, detokenizeSplit text into tokens and back
transcribeTurn speech recordings into text
parseRead documents
modelsList installed models
datasets, embed-jobsManage and embed datasets
finetuningTrain your own models and classifiers
API keys

One key per app, one limit per key.

Create a separate key for each app, like contract review, website search or your support bot. Every key gets a monthly limit. Once it's reached, the API returns status 429 instead of quietly running up usage.

  • Bearer key authentication
  • Monthly limit per key
  • Requests and tokens per key at a glance
For developers

What makes the work easier.

Streaming

Chat responses arrive word by word via server-sent events.

Sources included

With the documents parameter, chat returns the answer along with citations.

Sample code

The Playground shows every request as code in Python, TypeScript and curl.

Bearer keys

Every request authenticates with its own key, one per app.

Usage per key

Tokens and requests per day, key and model, plus response time and error rate.

On your network

The API runs on your server, over HTTPS with your own certificate.

Getting started

From the Playground to your own app.

Test in the Playground

Adjust the model and settings until the result looks right.

Copy the code

Click “Code” and copy the request in Python, TypeScript or curl.

Create a key

Create an API key for the app and set a monthly limit.

Watch usage

The usage page shows how many tokens the app consumes.

Build AI into your own tools.

In a demo, we'll walk you through the API and the right sample code for your use case.

FAQ

Frequently asked questions

How do I authenticate?

With an API key as a bearer token. You create keys in the web interface.

What happens when a key hits its limit?

The API returns status 429. That keeps load predictable, and you can see right away which app is affected.

Does the API support streaming?

Yes. Chat responses stream via server-sent events, including answers with sources.

Is there sample code?

Yes. The Playground shows working code in Python, TypeScript and curl for every request.

Does the API cost extra?

No. The API is part of the platform, with no per-token or per-request billing.